Open rda0 opened 1 week ago
Hey @rda0 , what database and database version are you running?
Hey @rda0 , what database and database version are you running?
Still the same as in the previous issue https://github.com/grafana/grafana/issues/95219#issuecomment-2431348901
@Jguer Consider reopening #95219. I do not have permission to reopen.
I'm personally not using v10.4 (but on v11.2.2, unable to upgrade further).
v10.4.12 seems to be just 1 week old, while the fix (PR) was merged 3 weeks ago: https://github.com/grafana/grafana/pull/95228
Looking at the output:
AS p WHERE p.kind = 'serviceaccounts' AND p.identifier IN(?,?,?)' at line 1" sql="code migration"
OR:
OR...
https://github.com/grafana/grafana/commits/v10.4.12/ https://github.com/grafana/grafana/commits/v10.4.x
10.4.12 doesn't include this fix, this probably means it did not make into this particular release cycle
Why not (as a workaround) execute the orphaned permission removal statements manually? I've looked at the code at orphaned.go:35 and at orphaned.go:89 and it seems in my case it would be:
MariaDB [grafana]> SELECT DISTINCT p.identifier FROM permission AS p WHERE p.kind = 'serviceaccounts' AND NOT p.identifier = '*';
+------------+
| identifier |
+------------+
| 365 |
+------------+
and then just delete this with correct syntax?
DELETE FROM permission WHERE kind = 'serviceaccounts' AND identifier IN(365)
And then the migration and startup should work I believe? Or am I missing something and I shouldn't do this?
I upgraded to 11.3.1 this morning and this issue has been fixed. thumbup
What happened?
Grafana fails to start after upgrade to v10.4.12.
Error with db migrations (
Executing migration failed
,You have an error in your SQL syntax;
):I was able to downgrade to v10.4.10 again.
What did you expect to happen?
No error
Did this work before?
How do we reproduce it?
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
Grafana: 10.4.12 OS: Debian GNU/Linux 12 (bookworm) Browser: FF
Grafana platform?
A package manager (APT, YUM, BREW, etc.)
Datasource(s)?
No response