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

grafana does not boot #1783

Closed
anthonyvancauwenberghe opened this issue Sep 6, 2018 · 6 comments
Closed

grafana does not boot #1783

anthonyvancauwenberghe opened this issue Sep 6, 2018 · 6 comments
Labels

Comments

@anthonyvancauwenberghe
Copy link

Info:

  • Docker version 18.06.1-ce:
  • Laradock commit: 2e2cb6d
  • System info: Linux
  • System info disto/version: Ubuntu 18.04.1

Issue:

When i start up the container (docker-compose up -d grafana) it doesn't get started. No error message is displayed


Expected behavior:

The container should have started and grafana running


Reproduce:

docker-compose up -d grafana and go to localhost:3000


@anthonyvancauwenberghe
Copy link
Author

docker logs:
GF_PATHS_DATA='/var/lib/grafana' is not writable.
You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migration-from-a-previous-version-of-the-docker-container-to-5-1-or-later
mkdir: cannot create directory '/var/lib/grafana/plugins': Permission denied

@bestlong
Copy link
Member

bestlong commented Sep 18, 2018

need more info:
at host os run:
$ diff .env env-example
post result let we know your config.

then go into container
$ docker-compose exec grafana bash
and in container run:
$ ls -la /var/lib
$ ls -la /var/lib/grafana
check owner and permissions

@bestlong bestlong reopened this Sep 18, 2018
@amorZhu
Copy link
Contributor

amorZhu commented Dec 12, 2018

打开 laradock/grafana/Dockerfile
增加 USER 和 RUN
FROM grafana/grafana:latest
USER root
RUN chown -R root:root /etc/grafana &&
chmod -R a+r /etc/grafana &&
chown -R grafana:grafana /var/lib/grafana &&
chown -R grafana:grafana /usr/share/grafana
EXPOSE 3000
执行 docker-composer build
如果失败,请删除旧的镜像(有两个,一个是laradock_grafana,一个是grafana/grafana)执行 docker-composer build

@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@bestlong
Copy link
Member

try docker-compose build --no-cache --pull grafana
i run Grafana 6.6.1 is works normally.

@jhoanborges
Copy link

Solved changing the grafana Dockerfile.

FROM grafana/grafana:latest

USER root
RUN chown -R root:root /etc/grafana && chmod -R a+r /var/lib/grafana

EXPOSE 3535

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

No branches or pull requests

4 participants