Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why config set user: "472" but not user: "root" in example/monitor/grafana/docker-compose.yml #15

Open
luojiyin1987 opened this issue Oct 19, 2022 · 0 comments

Comments

@luojiyin1987
Copy link

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 .

the docker-compose.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant