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
coppied the grafana.ini defaults into a folder and modified the database portion of it to contain my database that I just made, specifically the DB and making the DB be postgres
[Database]
type = postgres
host = HOSTNAME
name = grafana
user = grafanaadmin@HOSTNAME
password = ******
max_idle_conn = 2
conn_max_lifetime = 14400
use kubectl to create a secret from my grafana.ini file kubectl create secret generic grafana.ini --from-file=grafana.ini
edit the grafana deployment to use my secret (under spec volumes)
the pod would restart and use the new database information I posted
What happened instead?
the pod errored out grafana-grafana-6556b4f569-86p7d 1/2 CrashLoopBackOff
when I look at the grafana pods logs I see the follewing error lvl=eror msg="Fail to initialize orm engine" logger=sqlstore error="Sqlstore::Migration failed err: unable to open database file\n"
here is the whole logs from the pod . (notice 3rd line from the end is says the db type is sqlite3 despite being told that its to use postgres
What Grafana version are you using?
5.4.0
What datasource are you using?
a postgres database being stored in azure
What OS are you running grafana on?
alpine
What did you do?
kubectl create secret generic grafana.ini --from-file=grafana.ini
What was the expected result?
the pod would restart and use the new database information I posted
What happened instead?
the pod errored out
grafana-grafana-6556b4f569-86p7d 1/2 CrashLoopBackOff
when I look at the grafana pods logs I see the follewing error
lvl=eror msg="Fail to initialize orm engine" logger=sqlstore error="Sqlstore::Migration failed err: unable to open database file\n"
here is the whole logs from the pod . (notice 3rd line from the end is says the db type is sqlite3 despite being told that its to use postgres
I thought that it wasnt using my custom grafana.ini at first so I made changes to it to beak it and then I recieved errors that it couldnt be parsed.
The text was updated successfully, but these errors were encountered: