The file * was not found in the configured search path

Screenshot 2024-09-11 at 10.43.42

my liquibase.properties file content is:

changelog-file: db-changelog-master.yaml
driver: com.mysql.cj.jdbc.Driver
search-path: ./changelog/
url: jdbc:mysql://localhost:3306/stock?useSSL=false
username: user1
password: mypass
classpath: …/mysql-connector-j-8.2.0.jar

‘db-changelog-master.yaml’ file content is:

databaseChangeLog:

  • include:
    file: 2024/09/09-04-st-sto-122-changelog.yaml
    relativeToChangelogFile: true
  • include:
    file: 2024/09/09-04-st-sto-123-changelog.yaml
    relativeToChangelogFile: true

I tried to change “relativeToChangelogFile: false” thats also not work!

when i run ‘liquibase update’ command it gives

Unexpected error running Liquibase: Error parsing db-changelog-master.yaml : The file 2024/09/09-04-st-sto-123-changelog.yaml was not found in the configured search path:
- /Users/hasandag/my_project/db/changelog
More locations can be added with the ‘searchPath’ parameter.
error
master file found by liquibase but How can I show my sub chage file?

I don’t use search-path, but looking at the documentation, it needs to be “liquibase.searchPath: ” in the Liquibase properties file:

Actually the name of second change file was wrong.
2024/09/09-04-st-sto-123-changelog.yaml
instead of
2024/09/10-04-st-sto-123-changelog.yaml

2 Likes