-
Notifications
You must be signed in to change notification settings - Fork 34
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
upgrade_59.sql fails on existing servers #558
Comments
Hi @NavidSassan, due to the potential issues, we have decided not to add the primary key. A solution can already be found in PR #559. Best regards, |
After discussing with @Thomas-Gelf we have decided to proceed differently and empty the table before adding the primary key (PR #560). I apologize for the back and forth. |
no worries. can the fix be merged into master, or do you know when it will be? thanks :) |
Expected Behavior
Migrations should run through.
Current Behavior
The upgrade_59.sql migration fails, resulting in
[db] component changed from idle to failed
.The migration tries to add a new primary key to the
instance_uuid
andts_create
columns of thevspheredb_daemonlog
table.The problem is that existing databases can already contain entries where those columns are not unique - since
ts_create
was handled differently before e14d363.For example:
Steps to Reproduce (for bugs)
ExecStart=/usr/bin/icingacli vspheredb daemon run --trace --debug
viasystemctl edit --full icinga-vspheredb.service
systemctl daemon-reload
systemctl restart icinga-vspheredb.service
journalctl -feu icinga-vspheredb.service
Manually try to execute the migration:
Your Environment
The text was updated successfully, but these errors were encountered: