Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

V1.4.0 Failed to parse /etc/grafana/grafana.ini, open /etc/grafana/grafana.ini: no such file or directory #1709

Closed
Robbilie opened this issue Jun 30, 2017 · 29 comments

Comments

@Robbilie
Copy link

Failed to parse /etc/grafana/grafana.ini, open /etc/grafana/grafana.ini: no such file or directory

there is no such file in there since the config dir is in /usr/share/grafana
theres at least a defaults file…

@andyxning
Copy link
Contributor

andyxning commented Jul 1, 2017

@Robbilie there is a PR will add a default and empty grafana.ini if not exist already. See this diff for more info.

BTW, you can mount a configuration file into /etc/grafana/grafana.ini at runtime.

@Robbilie
Copy link
Author

Robbilie commented Jul 1, 2017

i know that i can mount a config file into it but i would rather not.
i have no idea why the config file is missing and this was really annoying when i tried to upgrade to 1.4.

any eta when a release with the fix is expected?

@andyxning
Copy link
Contributor

@Robbilie The fix can only add an empty grafana.ini which may not be what you want. The desired way is to mount a customized grafana.ini. :)

@Robbilie
Copy link
Author

Robbilie commented Jul 2, 2017

thats not the desired way. the official grafana and previous versions of heapsters grafana had a grafana.ini and i dont see why the 1.4.0 release shouldnt have one

@andyxning
Copy link
Contributor

@Robbilie Having not know that we have a grafana.ini in previous release. Will check this later.

@Robbilie
Copy link
Author

Robbilie commented Jul 2, 2017

lol theres literally no reason to not have one, 1.3 aswell as official grafana releases had one

@andyxning
Copy link
Contributor

@Robbilie You mean gcr.io/google_containers//heapster-grafana-amd64:v4.0.2

@Robbilie
Copy link
Author

Robbilie commented Jul 4, 2017

@andyxning with one less slash yeah, thats the previous one which had the ini, https://hub.docker.com/r/grafana/grafana/ has the ini aswell

@trunet
Copy link

trunet commented Jul 5, 2017

any workaround? trying to deploy a brand new heapster and having problems

@Robbilie
Copy link
Author

Robbilie commented Jul 5, 2017

mount the file into the pod…
although this should imo be fixed ASAP in a 4.2.1 release bc this is just annoying and breaking…

@DirectXMan12
Copy link
Contributor

I believe @piosz is working on it, and it's marked as high priority. We should have a fix soon.

@loburm
Copy link
Contributor

loburm commented Jul 6, 2017

/assign @loburm

@doubaokun
Copy link

Change the image to be gcr.io/google_containers/heapster-grafana-amd64:v4.0.2 will fix this issue.

@Robbilie
Copy link
Author

Robbilie commented Jul 6, 2017

thats not a fix, i used to use a newer grafana image while waiting for heapster 1.4 because i need certain grafana notification channels

@piosz
Copy link
Contributor

piosz commented Jul 10, 2017

Apologies for the problems. @loburm is investigating this.

@trunet
Copy link

trunet commented Jul 12, 2017

any news?

@loburm
Copy link
Contributor

loburm commented Jul 12, 2017

Sorry for the delay, I'm looking at this problem now. I will post update as soon as will find a root cause of issue.

@loburm
Copy link
Contributor

loburm commented Jul 14, 2017

This commit on the side of grafana is the root cause of the issue:
grafana/grafana@b191638

Shortly: previously they have been always creating grafana.ini file but in January this part was moved to the postinst script which is executed only when we actually install package on the system (in our case we just extracting files, so script is not executed).

I'll try to find workaround. Maybe we can use official grafana image for this.

@loburm
Copy link
Contributor

loburm commented Jul 17, 2017

Unfortunately, solution with docker image officially provided by the grafana is not going to work. This image is built only for amd64 (we support different arch) and image size almost 2 times bigger.

So I have prepared PR that just manually copies configuration files to /etc/grafana/: #1728

@ffahri
Copy link

ffahri commented Jul 17, 2017

check this #1722
v4.0.2
change to --> image: gcr.io/google_containers/heapster-grafana-amd64:v4.0.2

@loburm
Copy link
Contributor

loburm commented Jul 17, 2017

@ffahri this is not a fix of problem. Some users need features that have been released in 4.2.0 or later we just can't stuck with version 4.0.2 forever.

@loburm
Copy link
Contributor

loburm commented Jul 17, 2017

PR was merged. Tomorrow I'll push a new image to the gcr.

@loburm
Copy link
Contributor

loburm commented Jul 18, 2017

Image is pushed. In #1731 updates deploy file.

@discostur
Copy link

@loburm just tested the new image and it works without any problems ;)

@loburm loburm marked this as a duplicate of #1702 Jul 18, 2017
@loburm
Copy link
Contributor

loburm commented Jul 18, 2017

@discostur thanks for checking it.

Considering that last PR was merged, I'm closing this issue.

@loburm loburm closed this as completed Jul 18, 2017
@emansom
Copy link

emansom commented Jul 18, 2017

It works again. Thanks guys. 👍
screen shot 2017-07-18 at 11 26 58

@jpds
Copy link

jpds commented Aug 23, 2017

As a heads-up, this is still broken in the https://github.com/kubernetes/heapster/tree/release-1.4 branch

@andyxning
Copy link
Contributor

@DirectXMan12 @piosz @loburm we should cherrypick #1728 to release-1.4.

@jpds As a workaround, give v1.4.1 a try.

@BruceShenC
Copy link

@andyxning I have tried but it still fail

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

No branches or pull requests