New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
H2 DB corruption prevents server startup #11276
Comments
Unfortunately, this points to H2 database corruption (which you have worked around with the export+import). If your H2 database has been corrupted somehow, there's not a lot GoCD can do to recover it automatically. So the key here is to figure out what caused the corruption in the first place and whether there's anything GoCD can do about it. I would check
|
This issue has been automatically marked as stale because it has not had activity in the last 90 days. |
Issue Type
Summary
When we restarted the GoCD server as part of regular patching of our underlying EKS worker nodes, there were some problems migrating the h2 database, hence preventing GoCD server from starting up properly. In order to mitigate this db migration error, we had to manually export and import the db data by using the steps mentioned in the below link
https://gist.github.com/arvindsv/c7934bee26ce1c47e9d24f0a493d3c87
Environment
Basic environment details
GoCD Version: 22.3.0-15301
17.0.5
Linux(5.4.228-131.415.amzn2.x86_64)
Chrome/Firefox
Expected Results
GoCD server should restart successfully
Actual Results
ERROR [WrapperJarAppMain] DatabaseMigrator:65 - Unable to create database upgrade script for database. The problem was: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLNonTransientException: General error: "General error: ""java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0"" [50000-200]"; SQL statement:
Possible Fix
Log snippets
The text was updated successfully, but these errors were encountered: