Username: Visnet
TITLE
Grafana extension database rights too broad and cannot load unsigned backend plugin
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.33.0
CentOS 7.9.2009 x86_64
PROBLEM DESCRIPTION
After having updated Grafana from Plesk's Grafana repo, I'm seeing the following errors in the Grafana log:
STEPS TO REPRODUCE
1. Update to
2. See the following error:
3. Checks the log file in
4. Stat
ACTUAL RESULT
Permissions for
Backend plugin
EXPECTED RESULT
Permissions for
(according to the logs)
Deprecated backend plugin
ANY ADDITIONAL INFORMATION
Thanks guys (and gals)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Grafana extension database rights too broad and cannot load unsigned backend plugin
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.33.0
CentOS 7.9.2009 x86_64
PROBLEM DESCRIPTION
After having updated Grafana from Plesk's Grafana repo, I'm seeing the following errors in the Grafana log:
Code:
t=2021-02-04T19:28:28+0100 lvl=warn msg="SQLite database file has broader permissions than it should" logger=sqlstore path=/var/lib/grafana/grafana.db mode=-rw-r--r-- expected=-rw-r-----
t=2021-02-04T19:28:29+0100 lvl=warn msg="Running an unsigned backend plugin" logger=plugins pluginID=grafana-simple-json-backend-datasource pluginDir=/var/lib/grafana/plugins/grafana-simple-json-backend-datasource/dist
t=2021-02-04T19:28:29+0100 lvl=eror msg="Failed to read plugin provisioning files from directory" logger=provisioning.plugins path=/etc/grafana/provisioning/plugins error="open /etc/grafana/provisioning/plugins: no such file or directory"
t=2021-02-04T19:28:29+0100 lvl=warn msg="Plugin uses a deprecated version of Grafana's backend plugin system which will be removed in a future release. Consider upgrading to a newer plugin version or reach out to the plugin repository/developer and request an upgrade." logger=plugins.backend pluginId=grafana-simple-json-backend-datasource
STEPS TO REPRODUCE
1. Update to
grafana-7.4.0-1.x86_64
from the plesk-ext-grafana
repo.2. See the following error:
Code:
Updating : grafana-7.4.0-1.x86_64 2/4
Job for grafana-server.service failed because the control process exited with error code. See "systemctl status grafana-server.service" and "journalctl -xe" for details.
warning: %post(grafana-7.4.0-1.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package grafana-7.4.0-1.x86_64
3. Checks the log file in
/var/log/grafana/grafana.log
, and find the message quoted above.4. Stat
/var/lib/grafana/grafana.db
to find that it's readable by other users.ACTUAL RESULT
Permissions for
/var/lib/grafana/grafana.db
are too broad.Backend plugin
grafana-simple-json-backend-datasource
is unsigned and deprecated.EXPECTED RESULT
Permissions for
/var/lib/grafana/grafana.db
should be -rw-r-----(according to the logs)
Deprecated backend plugin
grafana-simple-json-backend-datasource
should be removed or replaced.ANY ADDITIONAL INFORMATION
Thanks guys (and gals)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug