-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Conversation
/assign unguiculus |
- chown | ||
- -R | ||
- 472:472 | ||
- /var/lib/grafana |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use command: ["chown", "-R", "472:472", "/var/lib/grafana"]
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sylr Assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
#5386 updated Grafana to 5.1.2. I think this PR is now obsolete. |
It's not if you think about upgrading your helm installed grafana from anything below 5.1.0. If the permissions are wrong grafana will crash. It's why I did this. |
I wanted to deploy grafana with clean persistent volume and encountered this issue. I made one-run Job, based on init container in this PR, to fix ownerhip. This PR is still needed. |
Could we merge this ASAP for people like @OndroNR that are going to upgrade grafana and be stuck. |
I was doing clean install with enabled persistence. |
/ok-to-test |
subPath: {{ .Values.persistence.subPath }} | ||
{{- /* Since grafana 5.1.0 the files need to be owned by user id 472 */ -}} | ||
{{- /* http://docs.grafana.org/installation/docker/#migration-from-a-previous-version-of-the-docker-container-to-5-1-or-later */ -}} | ||
{{- if semverCompare ">= 5.1.0" .Values.image.tag }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not ideal. If you use a custom image that has a different versioning scheme, this won't work. I think it would be best to make this optional with a flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to let it like this, if you want to use custom images you should tag them correctly.
As I mentioned in #5635, I also just ran into the permission problem with persistent volumes. |
When upgrading to 5.1.x we need to chown the whole /var/lib/grafana dir in order to comply with the new grafana user id used in the latest docker image.
Hi everyone, after a Charts maintainers conversation, the root of the problem appears to be that semver was not properly followed in #5386 in a way that was non-obvious:
Given that we accidentally missed this in #5386, we should change this PR from attempting to automatically handle this change, to adding a note to the user that if upgrading from < Additionally this PR should address the earlier oversight by properly bumping the MAJOR version (to Let's use #5657 for tracking creating and documenting the charts-wide policy for handling cases like this. Practically, the question for this PR now is where to communicate the above info to upgrading users so that they're less likely to miss it? I'm thinking maybe a new |
Would setting the fsGroup in securitycontext of the pod fix this for new installs? |
currently stable/grafana is broken when doing a clean install with a persistent volume. This pr fixes the issue. Any update on merging? |
@scottrigby Not sure the semver reasoning applies to this issue. This is broken for fresh installs, where backwards compatibility consideration do not apply (there is no previous install to be compatible with). For the sake of anyone encountering this issue, the following workaround can be applied:
Note that |
@sylr |
@monotek AFAIU This is not going to be merged. |
ok, thanks for the info anyway :-) |
This was a real pain to get to the bottom of and is still broken on fresh installs as outlined above. I independently came up with the same Any chance of a revisit @scottrigby? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Activing will cause the issue to no longer be considered stale. Thank you for your contributions. |
When upgrading to 5.1.x we need to chown the whole /var/lib/grafana dir in order to comply with the new grafana user id used in the latest docker image.