why config set ` user: "472" ` but not `user: "root"` in example/monitor/grafana/docker-compose.yml
luojiyin1987 opened this issue · 0 comments
luojiyin1987 commented
I get error
grafana | t=2022-10-19T15:19:17+0000 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3
grafana | t=2022-10-19T15:19:17+0000 lvl=info msg="Creating SQLite database file" logger=sqlstore path=/data/grafana.db
grafana | Failed to start grafana. error: failed to connect to database: failed to create SQLite database file "/data/grafana.db": open /data/grafana.db: permission denied
grafana | failed to connect to database: failed to create SQLite database file "/data/grafana.db": open /data/grafana.db: permission denied
grafana exited with code 1
grafana git:(master) ✗ ll
total 12K
drwxr-xr-x 4 root root 4.0K Oct 19 15:23 data
drwxr-xr-x 2 root root 4.0K Oct 19 15:21 datasources
-rw-rw-r-- 1 moitor moitor 592 Oct 19 15:21 docker-compose.yml
so I change user: "472"
to user: "root"
to run docker image .