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 ignores grafana.env #131

Open
Roberto6969 opened this issue Jan 15, 2020 · 4 comments
Open

Grafana ignores grafana.env #131

Roberto6969 opened this issue Jan 15, 2020 · 4 comments

Comments

@Roberto6969
Copy link

Hello,

is there any way to diagnose why Grafana ignores every change in grafana.env?
When I change parameter in grafana.env and recreate container (docker-compose up -d), I get:
nodered is up-to-date
portainer is up-to-date
influxdb is up-to-date
Recreating grafana ...
Recreating grafana ... done

OK, it seems recreaction process found out i had made a change to grafana.env. But why Grafana does not take any new parameter (for example new admin password: GF_SECURITY_ADMIN_PASSWORD=whatever)?

Thank You!

@Slyke
Copy link
Collaborator

Slyke commented Jan 15, 2020

I don't have this problem... But does docker-compose build before running up fix it?

@Roberto6969
Copy link
Author

Do you mean if I run docker-compose build before docker-compose up -d? Yes, but the message is:
"grafana uses an image, skipping"

@Slyke
Copy link
Collaborator

Slyke commented Jan 19, 2020

I had a weird bug with Grafana. It was actually ignoring the env file, but only changes I had made to it after I initially started it up. Try removing the container and image, and starting it again that way. It seems like the container isn't picking up changes to the env file once instantiated.

@Roberto6969
Copy link
Author

From my experience:

  1. check if all the entries in grafana.env has correct syntax (!)
  2. docker-compose up -d is enough to implement changes but if not
  3. @Slyke's solution works if nothing else no

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

2 participants