Details
-
Bug
-
Status: Done
-
Medium
-
Resolution: Fixed
-
None
Description
In the rootless container the dashboard-upgrade program was seen looping due to:
* Preferences set: 200 '{"message":"Preferences updated"}' * Copying '/usr/share/pmm-server/landing-page/img/pmm-logo.svg' to grafana directory '/usr/share/grafana/public/img/' Traceback (most recent call last): File "/usr/share/percona-dashboards/import-dashboards.py", line 436, in <module> main() File "/usr/share/percona-dashboards/import-dashboards.py", line 423, in main set_home_dashboard(api_key) File "/usr/share/percona-dashboards/import-dashboards.py", line 384, in set_home_dashboard shutil.copy(LOGO_FILE, GRAFANA_IMG_DR) File "/usr/lib64/python2.7/shutil.py", line 119, in copy copyfile(src, dst) File "/usr/lib64/python2.7/shutil.py", line 83, in copyfile with open(dst, 'wb') as fdst: IOError: [Errno 13] Permission denied: '/usr/share/grafana/public/img/pmm-logo.svg' grafana: stopped
This is where it tries to update the logo, but instead causes Grafana to loop with it and so the GUI becomes unusable.
Suggestions:
- handle the exception and do not cause a loop (good idea anyway)
- disable the dashboard-upgrade program if it is not expected to work in the rootless container
- add /usr/share/grafana to the list of paths modified by chown in the Dockerfile
Attachments
Issue Links
- is triggering
-
MSP-1323 Loading...