You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ kubectl get poNAME READY STATUS RESTARTS AGEsandbox-5d94b5db7d-8jvxl 0/1 Init:CrashLoopBackOff 5 5m7s
kubectl describe shows the following events:
Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 18m default-scheduler Successfully assigned save-cloud/sandbox-5d94b5db7d-8jvxl to 172.16.0.52 Normal SuccessfulMountVolume 18m kubelet Successfully mounted volumes for pod "sandbox-5d94b5db7d-8jvxl_save-cloud(a062adeb-26e6-4997-9449-48924e32f498)" Normal Pulled 18m kubelet Successfully pulled image "alpine/git" in 1.627665011s Normal Pulling 17m (x2 over 18m) kubelet Pulling image "alpine/git" Normal Pulled 17m kubelet Successfully pulled image "alpine/git" in 1.62917293s Normal SuccessfulCreate 17m (x2 over 18m) kubelet Created container git-cloner Normal Started 17m (x2 over 18m) kubelet Started container git-cloner Normal SuccessfulCreate 15m (x3 over 15m) kubelet Created container liquibase-runner Normal Started 15m (x3 over 15m) kubelet Started container liquibase-runner Warning BackOffStart 15m (x3 over 15m) kubelet Back-off restarting failed container Normal Pulled 14m (x4 over 15m) kubelet Container image "liquibase/liquibase:4.20" already present on machine Warning BackOffStart 3m4s (x57 over 15m) kubelet the failed container exited with ExitCode: 1
Indeed, liquibase-runner doesn't start:
liquibase-runner: Container ID: containerd://b09bc690ddfed811f589f8afd8645c49231388b10c7ed41d2ae8f3f83d685162 Image: liquibase/liquibase:4.20 Image ID: docker.io/liquibase/liquibase@sha256:09e1b050e025cb1790eea7c67eef6910fbe528698a65b4cf2aeeef405477a73f Port: <none> Host Port: <none> Args: --url=$(DB_URL)?createDatabaseIfNotExist=true --changeLogFile=save-sandbox/db/db.changelog-sandbox.xml --username=$(DB_USERNAME) --password=$(DB_PASSWORD) --log-level=info --contexts=prod update State: Waiting Reason: CrashLoopBackOff Last State: Terminated Reason: Error Exit Code: 1 Started: Wed, 30 Oct 2024 13:40:25 +0300 Finished: Wed, 30 Oct 2024 13:40:28 +0300 Ready: False Restart Count: 7 Limits: memory: 300M Requests: memory: 100M Environment: INSTALL_MYSQL: true DB_URL: <set to the key 'spring.datasource.sandbox-url' in secret 'db-secrets'> Optional: false DB_USERNAME: <set to the key 'spring.datasource.username' in secret 'db-secrets'> Optional: false DB_PASSWORD: <set to the key 'spring.datasource.password' in secret 'db-secrets'> Optional: false Mounts: /home/cnb/secrets/db_secrets from database-secret (rw) /liquibase/changelog from migrations-data (rw) /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-dlmrs (ro)
Looking at the log file, Liquibase fails to find save-sandbox/db/db.changelog-sandbox.xml:
$ kubectl logs sandbox-5d94b5db7d-8jvxl --container=liquibase-runner --follow=trueChecksum verified. Installing mysql-connector-java-8.0.30.jar to /liquibase/lib/mysql-connector-java-8.0.30.jar successfully installed in classpath.###################################################### _ _ _ _ #### | | (_) (_) | #### | | _ __ _ _ _ _| |__ __ _ ___ ___ #### | | | |/ _` | | | | | '_ \ / _` / __|/ _ \ #### | |___| | (_| | |_| | | |_) | (_| \__ \ __/ #### \_____/_|\__, |\__,_|_|_.__/ \__,_|___/\___| #### | | #### |_| #### ## ## Get documentation at docs.liquibase.com #### Get certified courses at learn.liquibase.com ## ## Free schema change activity reports at #### https://hub.liquibase.com #### ######################################################Starting Liquibase at 10:40:28 (version 4.20.0 #7837 built at 2023-03-07 16:25+0000)Liquibase Version: 4.20.0Liquibase Open Source 4.20.0 by Liquibase[2024-10-30 10:40:28] INFO [liquibase.integration] Starting command execution.[2024-10-30 10:40:28] SEVERE [liquibase.integration] The file save-sandbox/db/db.changelog-sandbox.xml was not found in the configured search path: - /liquibase - /liquibase/changelog - /liquibase/classpath - /liquibase/internal/lib/liquibase-core.jar - /liquibase/lib/mysql-connector-java-8.0.30.jar - /liquibase/lib - /liquibase/internal/lib/jaxb-api.jar - /liquibase/internal/lib/mariadb-java-client.jar - /liquibase/internal/lib/commons-lang3.jar - /liquibase/internal/lib/sqlite-jdbc.jar - /liquibase/internal/lib/mssql-jdbc.jar - /liquibase/internal/lib/commons-collections4.jar - /liquibase/internal/lib/liquibase-commercial.jar - /liquibase/internal/lib/postgresql.jar - /liquibase/internal/lib/ojdbc8.jar - /liquibase/internal/lib/commons-text.jar - /liquibase/internal/lib/opencsv.jar - /liquibase/internal/lib/snakeyaml.jar - /liquibase/internal/lib/jaybird.jar - /liquibase/internal/lib/jaxb-core.jar - /liquibase/internal/lib/picocli.jar - /liquibase/internal/lib/jcc.jar - /liquibase/internal/lib/hsqldb.jar - /liquibase/internal/lib/h2.jar - /liquibase/internal/lib/snowflake-jdbc.jar - /liquibase/internal/lib/jaxb-runtime.jar - /liquibase/internal/libMore locations can be added with the 'searchPath' parameter.liquibase.exception.CommandExecutionException: liquibase.exception.ChangeLogParseException: The file save-sandbox/db/db.changelog-sandbox.xml was not found in the configured search path: - /liquibase - /liquibase/changelog - /liquibase/classpath - /liquibase/internal/lib/liquibase-core.jar - /liquibase/lib/mysql-connector-java-8.0.30.jar - /liquibase/lib - /liquibase/internal/lib/jaxb-api.jar - /liquibase/internal/lib/mariadb-java-client.jar - /liquibase/internal/lib/commons-lang3.jar - /liquibase/internal/lib/sqlite-jdbc.jar - /liquibase/internal/lib/mssql-jdbc.jar - /liquibase/internal/lib/commons-collections4.jar - /liquibase/internal/lib/liquibase-commercial.jar - /liquibase/internal/lib/postgresql.jar - /liquibase/internal/lib/ojdbc8.jar - /liquibase/internal/lib/commons-text.jar - /liquibase/internal/lib/opencsv.jar - /liquibase/internal/lib/snakeyaml.jar - /liquibase/internal/lib/jaybird.jar - /liquibase/internal/lib/jaxb-core.jar - /liquibase/internal/lib/picocli.jar - /liquibase/internal/lib/jcc.jar - /liquibase/internal/lib/hsqldb.jar - /liquibase/internal/lib/h2.jar - /liquibase/internal/lib/snowflake-jdbc.jar - /liquibase/internal/lib/jaxb-runtime.jar - /liquibase/internal/libMore locations can be added with the 'searchPath' parameter. at liquibase.command.CommandScope.execute(CommandScope.java:209) at liquibase.integration.commandline.Main.handleUpdateException(Main.java:2290) at liquibase.integration.commandline.Main.doMigration(Main.java:1760) at liquibase.integration.commandline.Main$1.lambda$run$0(Main.java:415) at liquibase.Scope.lambda$child$0(Scope.java:187) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:186) at liquibase.Scope.child(Scope.java:165) at liquibase.integration.commandline.Main$1.run(Main.java:414) at liquibase.integration.commandline.Main$1.run(Main.java:231) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:172) at liquibase.integration.commandline.Main.run(Main.java:231) at liquibase.command.AbstractCliWrapperCommandStep.run(AbstractCliWrapperCommandStep.java:32) at liquibase.command.CommandScope.execute(CommandScope.java:195) at liquibase.integration.commandline.CommandRunner.call(CommandRunner.java:55) at liquibase.integration.commandline.CommandRunner.call(CommandRunner.java:24) at picocli.CommandLine.executeUserObject(CommandLine.java:2041) at picocli.CommandLine.access$1500(CommandLine.java:148) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461) at picocli.CommandLine$RunLast.handle(CommandLine.java:2453) at picocli.CommandLine$RunLast.handle(CommandLine.java:2415) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273) at picocli.CommandLine$RunLast.execute(CommandLine.java:2417) at picocli.CommandLine.execute(CommandLine.java:2170) at liquibase.integration.commandline.LiquibaseCommandLine.lambda$null$2(LiquibaseCommandLine.java:367) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:172) at liquibase.integration.commandline.LiquibaseCommandLine.lambda$execute$3(LiquibaseCommandLine.java:332) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:172) at liquibase.integration.commandline.LiquibaseCommandLine.execute(LiquibaseCommandLine.java:330) at liquibase.integration.commandline.LiquibaseCommandLine.main(LiquibaseCommandLine.java:91) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at liquibase.integration.commandline.LiquibaseLauncher.main(LiquibaseLauncher.java:107)Caused by: liquibase.exception.ChangeLogParseException: The file save-sandbox/db/db.changelog-sandbox.xml was not found in the configured search path: - /liquibase - /liquibase/changelog - /liquibase/classpath - /liquibase/internal/lib/liquibase-core.jar - /liquibase/lib/mysql-connector-java-8.0.30.jar - /liquibase/lib - /liquibase/internal/lib/jaxb-api.jar - /liquibase/internal/lib/mariadb-java-client.jar - /liquibase/internal/lib/commons-lang3.jar - /liquibase/internal/lib/sqlite-jdbc.jar - /liquibase/internal/lib/mssql-jdbc.jar - /liquibase/internal/lib/commons-collections4.jar - /liquibase/internal/lib/liquibase-commercial.jar - /liquibase/internal/lib/postgresql.jar - /liquibase/internal/lib/ojdbc8.jar - /liquibase/internal/lib/commons-text.jar - /liquibase/internal/lib/opencsv.jar - /liquibase/internal/lib/snakeyaml.jar - /liquibase/internal/lib/jaybird.jar - /liquibase/internal/lib/jaxb-core.jar - /liquibase/internal/lib/picocli.jar - /liquibase/internal/lib/jcc.jar - /liquibase/internal/lib/hsqldb.jar - /liquibase/internal/lib/h2.jar - /liquibase/internal/lib/snowflake-jdbc.jar - /liquibase/internal/lib/jaxb-runtime.jar - /liquibase/internal/libMore locations can be added with the 'searchPath' parameter. at liquibase.parser.core.xml.XMLChangeLogSAXParser.parseToNode(XMLChangeLogSAXParser.java:114) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:15) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:607) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:591) at liquibase.Liquibase$16.run(Liquibase.java:2290) at liquibase.Scope.lambda$child$0(Scope.java:187) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:186) at liquibase.Scope.child(Scope.java:165) at liquibase.Liquibase.runInScope(Liquibase.java:2639) at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:2286) at liquibase.Liquibase.isUpToDateFastCheck(Liquibase.java:506) at liquibase.Liquibase.lambda$update$1(Liquibase.java:237) at liquibase.Scope.lambda$child$0(Scope.java:187) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:186) at liquibase.Scope.child(Scope.java:165) at liquibase.Liquibase.runInScope(Liquibase.java:2639) at liquibase.Liquibase.update(Liquibase.java:236) at liquibase.Liquibase.update(Liquibase.java:221) at liquibase.integration.commandline.Main.lambda$doMigration$1(Main.java:1757) at liquibase.Scope.lambda$child$0(Scope.java:187) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:186) at liquibase.Scope.child(Scope.java:165) at liquibase.integration.commandline.Main.doMigration(Main.java:1756) ... 35 moreUnexpected error running Liquibase: The file save-sandbox/db/db.changelog-sandbox.xml was not found in the configured search path: - /liquibase - /liquibase/changelog - /liquibase/classpath - /liquibase/internal/lib/liquibase-core.jar - /liquibase/lib/mysql-connector-java-8.0.30.jar - /liquibase/lib - /liquibase/internal/lib/jaxb-api.jar - /liquibase/internal/lib/mariadb-java-client.jar - /liquibase/internal/lib/commons-lang3.jar - /liquibase/internal/lib/sqlite-jdbc.jar - /liquibase/internal/lib/mssql-jdbc.jar - /liquibase/internal/lib/commons-collections4.jar - /liquibase/internal/lib/liquibase-commercial.jar - /liquibase/internal/lib/postgresql.jar - /liquibase/internal/lib/ojdbc8.jar - /liquibase/internal/lib/commons-text.jar - /liquibase/internal/lib/opencsv.jar - /liquibase/internal/lib/snakeyaml.jar - /liquibase/internal/lib/jaybird.jar - /liquibase/internal/lib/jaxb-core.jar - /liquibase/internal/lib/picocli.jar - /liquibase/internal/lib/jcc.jar - /liquibase/internal/lib/hsqldb.jar - /liquibase/internal/lib/h2.jar - /liquibase/internal/lib/snowflake-jdbc.jar - /liquibase/internal/lib/jaxb-runtime.jar - /liquibase/internal/libMore locations can be added with the 'searchPath' parameter.liquibase.exception.CommandExecutionException: liquibase.exception.ChangeLogParseException: The file save-sandbox/db/db.changelog-sandbox.xml was not found in the configured search path: - /liquibase - /liquibase/changelog - /liquibase/classpath - /liquibase/internal/lib/liquibase-core.jar - /liquibase/lib/mysql-connector-java-8.0.30.jar - /liquibase/lib - /liquibase/internal/lib/jaxb-api.jar - /liquibase/internal/lib/mariadb-java-client.jar - /liquibase/internal/lib/commons-lang3.jar - /liquibase/internal/lib/sqlite-jdbc.jar - /liquibase/internal/lib/mssql-jdbc.jar - /liquibase/internal/lib/commons-collections4.jar - /liquibase/internal/lib/liquibase-commercial.jar - /liquibase/internal/lib/postgresql.jar - /liquibase/internal/lib/ojdbc8.jar - /liquibase/internal/lib/commons-text.jar - /liquibase/internal/lib/opencsv.jar - /liquibase/internal/lib/snakeyaml.jar - /liquibase/internal/lib/jaybird.jar - /liquibase/internal/lib/jaxb-core.jar - /liquibase/internal/lib/picocli.jar - /liquibase/internal/lib/jcc.jar - /liquibase/internal/lib/hsqldb.jar - /liquibase/internal/lib/h2.jar - /liquibase/internal/lib/snowflake-jdbc.jar - /liquibase/internal/lib/jaxb-runtime.jar - /liquibase/internal/libMore locations can be added with the 'searchPath' parameter. at liquibase.command.CommandScope.execute(CommandScope.java:209) at liquibase.integration.commandline.Main.handleUpdateException(Main.java:2290) at liquibase.integration.commandline.Main.doMigration(Main.java:1760) at liquibase.integration.commandline.Main$1.lambda$run$0(Main.java:415) at liquibase.Scope.lambda$child$0(Scope.java:187) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:186) at liquibase.Scope.child(Scope.java:165) at liquibase.integration.commandline.Main$1.run(Main.java:414) at liquibase.integration.commandline.Main$1.run(Main.java:231) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:172) at liquibase.integration.commandline.Main.run(Main.java:231) at liquibase.command.AbstractCliWrapperCommandStep.run(AbstractCliWrapperCommandStep.java:32) at liquibase.command.CommandScope.execute(CommandScope.java:195) at liquibase.integration.commandline.CommandRunner.call(CommandRunner.java:55) at liquibase.integration.commandline.CommandRunner.call(CommandRunner.java:24) at picocli.CommandLine.executeUserObject(CommandLine.java:2041) at picocli.CommandLine.access$1500(CommandLine.java:148) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461) at picocli.CommandLine$RunLast.handle(CommandLine.java:2453) at picocli.CommandLine$RunLast.handle(CommandLine.java:2415) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273) at picocli.CommandLine$RunLast.execute(CommandLine.java:2417) at picocli.CommandLine.execute(CommandLine.java:2170) at liquibase.integration.commandline.LiquibaseCommandLine.lambda$null$2(LiquibaseCommandLine.java:367) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:172) at liquibase.integration.commandline.LiquibaseCommandLine.lambda$execute$3(LiquibaseCommandLine.java:332) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:172) at liquibase.integration.commandline.LiquibaseCommandLine.execute(LiquibaseCommandLine.java:330) at liquibase.integration.commandline.LiquibaseCommandLine.main(LiquibaseCommandLine.java:91) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at liquibase.integration.commandline.LiquibaseLauncher.main(LiquibaseLauncher.java:107)Caused by: liquibase.exception.ChangeLogParseException: The file save-sandbox/db/db.changelog-sandbox.xml was not found in the configured search path: - /liquibase - /liquibase/changelog - /liquibase/classpath - /liquibase/internal/lib/liquibase-core.jar - /liquibase/lib/mysql-connector-java-8.0.30.jar - /liquibase/lib - /liquibase/internal/lib/jaxb-api.jar - /liquibase/internal/lib/mariadb-java-client.jar - /liquibase/internal/lib/commons-lang3.jar - /liquibase/internal/lib/sqlite-jdbc.jar - /liquibase/internal/lib/mssql-jdbc.jar - /liquibase/internal/lib/commons-collections4.jar - /liquibase/internal/lib/liquibase-commercial.jar - /liquibase/internal/lib/postgresql.jar - /liquibase/internal/lib/ojdbc8.jar - /liquibase/internal/lib/commons-text.jar - /liquibase/internal/lib/opencsv.jar - /liquibase/internal/lib/snakeyaml.jar - /liquibase/internal/lib/jaybird.jar - /liquibase/internal/lib/jaxb-core.jar - /liquibase/internal/lib/picocli.jar - /liquibase/internal/lib/jcc.jar - /liquibase/internal/lib/hsqldb.jar - /liquibase/internal/lib/h2.jar - /liquibase/internal/lib/snowflake-jdbc.jar - /liquibase/internal/lib/jaxb-runtime.jar - /liquibase/internal/libMore locations can be added with the 'searchPath' parameter. at liquibase.parser.core.xml.XMLChangeLogSAXParser.parseToNode(XMLChangeLogSAXParser.java:114) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:15) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:607) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:591) at liquibase.Liquibase$16.run(Liquibase.java:2290) at liquibase.Scope.lambda$child$0(Scope.java:187) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:186) at liquibase.Scope.child(Scope.java:165) at liquibase.Liquibase.runInScope(Liquibase.java:2639) at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:2286) at liquibase.Liquibase.isUpToDateFastCheck(Liquibase.java:506) at liquibase.Liquibase.lambda$update$1(Liquibase.java:237) at liquibase.Scope.lambda$child$0(Scope.java:187) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:186) at liquibase.Scope.child(Scope.java:165) at liquibase.Liquibase.runInScope(Liquibase.java:2639) at liquibase.Liquibase.update(Liquibase.java:236) at liquibase.Liquibase.update(Liquibase.java:221) at liquibase.integration.commandline.Main.lambda$doMigration$1(Main.java:1757) at liquibase.Scope.lambda$child$0(Scope.java:187) at liquibase.Scope.child(Scope.java:196) at liquibase.Scope.child(Scope.java:186) at liquibase.Scope.child(Scope.java:165) at liquibase.integration.commandline.Main.doMigration(Main.java:1756) ... 35 more
The text was updated successfully, but these errors were encountered:
0.2.1+1056
..0.2.1+1179
0.4.0-alpha.0.379-70423bd
..0.4.0-alpha.0.413-620a3ea
kubectl describe
shows the following events:Indeed,
liquibase-runner
doesn't start:Looking at the log file, Liquibase fails to find
save-sandbox/db/db.changelog-sandbox.xml
:The text was updated successfully, but these errors were encountered: