that is strange, we have no other reports like it . Try adding Rename table user to user_v1 - v1 to migration log table manually to flag it as executed
Just to add some more context here, using a k8s deployment and running a similar upgrade I ran into the same error.
In testing, I was able to reproduce the error in a vanilla deployment by changing the org name from “Main Org.” to “Something Else” and then restarting the services.
On startup, the same errors are logged.
Additionally, I didn’t see any ini options to set this value.
@tobbe666 are you deploying in a similar way, using k8s and updating something like the org name?
@torkel if i wanted to manually change the org name/id back to default, where would I look to do that?
So far i’ve been unable to find where that’s mapped.
Any help here is appreciated - my deployment is perfectly fine and I can restore easily enough, but I’d imagine some others might have some data/settings that’s not ephemeral.
I run it on a normal server. Also exported the postgres and tried to run it locally on my laptop but ran into the same problem. I haven’t touched the Org name.
Seems happen only with postgres backend.
Still working on to fix this issue:
drop table "user";
alter table user_v1 rename TO "user";
alter table "user" rename COLUMN org_id to account_id;
DROP INDEX grafana."IDX_dashboard_org_id";
DROP INDEX grafana."IDX_dashboard_provisioning_dashboard_id";
DROP INDEX grafana."IDX_dashboard_account_id";
DROP INDEX grafana."IDX_dashboard_gnet_id";
DROP INDEX grafana."IDX_dashboard_org_id_plugin_id";
DROP INDEX grafana."UQE_dashboard_account_id_slug";
DROP INDEX grafana."UQE_dashboard_org_id_folder_id_title";
DROP INDEX grafana."UQE_dashboard_org_id_uid";
alter table dashboard rename COLUMN org_id to account_id;
DROP TABLE dashboard_provisioning_tmp_qwerty;
DROP INDEX grafana."IDX_dashboard_provisioning_dashboard_id_name";
DROP INDEX grafana."IDX_data_source_org_id";
ALTER TABLE data_source rename COLUMN org_id to account_id;
DROP INDEX grafana."IDX_data_source_org_id";
DROP INDEX grafana."UQE_data_source_org_id_name";
DROP INDEX grafana."IDX_data_source_account_id";
ALTER TABLE api_key rename COLUMN org_id to account_id;
DROP INDEX grafana."IDX_api_key_org_id";
DROP INDEX grafana."UQE_api_key_org_id_name";
alter table plugin_setting drop column plugin_version;
alter table alert_notification drop column is_default;
alter table alert_notification drop column frequency;
alter table alert_notification drop column send_reminder;
alter table alert_notification drop column disable_resolve_message;
alter table alert drop column "for";
alter table alert_notification drop column "uid";
Today no, I’ve rollbacked the grafana version and backup database and watch each release note to see if a fix appear. A github issue is now open https://github.com/grafana/grafana/issues/16720