NOTE: IF YOU WISH TO REPORT A NEW BUG, PLEASE POST A NEW QUESTION AND TAG AS "BUG REPORT". THANK YOU.
The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

[Issue] Grafana Yaml is broken (fixed) and the docker image has permissions issues

NikouyNikouy Member Posts: 22 Contributor II
edited April 2020 in Product Feedback
Hello, I have found that the Grafana template provided in https://docs.rapidminer.com/latest/deployment/templates/prod/multiple.html is corrupt, due to some indents in the text. Docker/Kubernetes fail to convert it to json. I'm attaching the yaml file amended.
Also, I'd like to report that there are permissions issue with the image provided by Rapidminer, and therefore the pod/docker won't start.

<div><code><div>Normal&nbsp;&nbsp; Created&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 17s (x3 over 36s)&nbsp;&nbsp;&nbsp;&nbsp; kubelet, ip-1xxxxxxxxx.eu-west-1.compute.internal&nbsp; Created container rm-grafana-svc<br>Normal&nbsp;&nbsp; Started&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 17s (x3 over 36s)&nbsp;&nbsp;&nbsp;&nbsp; kubelet, ip-xxxxxxx2.eu-west-1.compute.internal&nbsp; Started container rm-grafana-svc<br>Warning&nbsp; BackOff&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5s (x4 over 34s)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kubelet, ip-xxxxxxxxxx.eu-west-1.compute.internal&nbsp; Back-off restarting failed container</div><div><br></div><div><br></div><div>ec2-user:~/environment $ kubectl logs rm-grafana-svc-78ccdf5bd5-mrrrw rm-grafana-svc<br>GF_PATHS_DATA='/var/lib/grafana' is not writable.<br>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<br>mkdir: cannot create directory '/var/lib/grafana/plugins': Permission denied<br>ec2-user:~/environment $ </div>
It looks like you would need to change the folders permissions and push a new image to the repo.

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
Is rapidminer/rapidminer-grafana:9.6.0 a stock grafana image or you made any  other changes?
Regards,
Nicolas

0
0 votes

Sent to Engineering · Last Updated

DEVOPS-1022

Comments

  • ZSzatmariZSzatmari Employee-RapidMiner, Member Posts: 13 RM Engineering
    Hello Nikolas!

    thanky you very much for your feedback, that was absolutely helpful and pointed out a bug in our docker image. The behaviour of the image was different at simple docker delpoyments and at K8S deployments because of the /var/lib/grafana content initialization. Now we fixed the image and released a 9.6.1 tag for it.

    We ship a customized Grafana docker image, because we add the plugins to it that are required to connect to Rapidminer Server. Nothing else is changed, but some RapidMiner-specific plugins are added.

    Additionally the K8S yaml template indentation is also fixed, thanks again for this comment.

    Zoltán
Sign In or Register to comment.