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
migration 0009_drop_orphaned_messages_and_fill_in_missing_team_identity_values failed due to the alerts_alertgroup table still referencing slack_message_ids that the migration attempts to delete in the slack_slackmessages table.
What did you expect to happen:
The migration should have succeeded - it likely should have NULLed out the slack_message_ids in the alerts_alertgroup table before attempting to delete the slack messages, similar to the way it does it for the shift swap requests table.
How do we reproduce it?
Perform this migration while there are alert groups that reference slack_message_ids corresponding to messages in the slack_slackmessages table that are about to be deleted because their channel_id is NULL (likely because their channel has been deleted, but its easy enough to mock by just nulling it yourself).
Grafana OnCall Version
Migrating from v1.11.0 to v1.14.1
Product Area
Chatops
Grafana OnCall Platform?
Kubernetes
User's Browser?
No response
Anything else to add?
I got past this manually by running the following against the database:
UPDATE alerts_alertgroup SET slack_message_id = NULL WHERE slack_message_id IN (SELECT id FROM slack_slackmessage WHERE channel_id IS NULL);
The text was updated successfully, but these errors were encountered:
What went wrong?
What happened:
What did you expect to happen:
How do we reproduce it?
Perform this migration while there are alert groups that reference slack_message_ids corresponding to messages in the slack_slackmessages table that are about to be deleted because their channel_id is NULL (likely because their channel has been deleted, but its easy enough to mock by just nulling it yourself).
Grafana OnCall Version
Migrating from v1.11.0 to v1.14.1
Product Area
Chatops
Grafana OnCall Platform?
Kubernetes
User's Browser?
No response
Anything else to add?
I got past this manually by running the following against the database:
The text was updated successfully, but these errors were encountered: