Applicable to:
- Plesk for Linux
Symptoms
Advanced Monitoring doesn't show any data but one of the error messages below instead:
PLESK_ERROR: Dashboard not found
CONFIG_TEXT: *If you're seeing this Grafana has failed to load its application files*
1. This could be caused by your reverse proxy settings.
2. If you host grafana under subpath make sure your grafana.ini root_url
setting includes subpath
3. If you have a local dev build make sure you build frontend using:
yarn start, yarn start:hot, or yarn build
4. Sometimes restarting grafana-server can help
Cause
Incorrect permissions inside sw-cp-server
proxy directory.
Corrupted installation of the extensions Grafana and Advanced Monitoring.
Resolution
-
Connect to the server via SSH.
-
Make sure that subdirectories of
/var/lib/sw-cp-server/proxy
are owned bysw-cp-server:sw-cp-server
:# ls -la /var/lib/sw-cp-server/proxy
total 48
drwx------ 12 sw-cp-server root 4096 Jun 16 13:55 .
drwx------ 7 sw-cp-server sw-cp-server 4096 Jun 14 18:00 ..
drwx------ 5 sw-cp-server sw-cp-server 4096 Jun 16 14:22 0
...
drwx------ 6 sw-cp-server sw-cp-server 4096 Jun 16 14:23 3 -
In case permissions/ownership are different, remove the proxy directory:
# rm -rf /var/lib/sw-cp-server/proxy
In case the issue is not resolved,
-
Remove the following extensions:
-
Extensions > My Extensions > Grafana > More > Remove and,
-
Extensions > My Extensions > Advanced Monitoring > More > Remove.
Warning: Please note all the customization to Advanced Monitoring will be lost.
Note: The following error message can be safely ignored:
PLESK_ERROR: The extension Grafana was removed with errors: Error: GraphQL error: Internal server error
-
-
Reinstall Extensions > Extensions Catalog > Categories > Monitoring > Advanced Monitoring > Get it free
Note: Grafana will be installed automatically as a dependency.
Comments
8 comments
still does't working after this procedure.
latest obsidian 18.0.32 / Ubuntu 20.04.1 LTS
I have found an explanation for my Plesk installation, leading to a workaround (not that great but it works).
If I open the browser console in the Network tab when I load the Advanced Monitoring page, it attempts to load the following URL: https://:8443/modules/grafana/service/login/generic_oauth, which fails due to the domain name being absent.
If I open a new tab with the URL after adding the correct domain name, it displays the Grafana page and all dashboards are available and working correctly.
So for me, and maybe for "dufresne", there is a problem with the Advanced Monitoring module where it is not able to get the domain name and inject it while building the redirection to the Grafana authentication URL.
Note: Reinstalling both Grafana and Advanced Monitoring extensions do not fix the problem.
After following these instructions the 'Advanced Monitoring' side bar disappears. If I then access Grafana from my extensions it sas "Looks Like there's nothing here".
Clicking the "Open Application" button does open Grafana in a separate tab.
Some clarity on this help article as to if this is the expected behavior would be appreciated. As the article is written, it makes it seem like after the 'uninstall/reinstall' it would appear back in a 'Advanced Monitoring' sidebar.
did not help.. same error
In my case Disk and Memory dashboards were not showing. To fix:
Go to Extensions > Grafana where an exclamation mark symbol will show - click Restart Integration and you should be good
When reinstalling as per procedure, on a vanilla cloud instance:
"An error occurred while fixing the installation: The execution of post-install.php has failed with the following message: [2022-07-04 23:22:07.253] 23324:62c359ff3db79 ERR [extension/grafana] Execution package has failed with exit code 1, stdout: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. , stderr: Not using downloaded plesk-ext-grafana/repomd.xml because it is older than what we have: Current : Tue Jun 28 16:29:27 2022 Downloaded: Mon Feb 21 08:56:55 2022 https://autoinstall.plesk.com/grafana/rpm/grafana-9.0.2-1.x86_64.rpm: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror. To address this issue please refer to the below wiki article https://wiki.centos.org/yum-errors If above article doesn't help to resolve this issue please use https://bugs.centos.org/. Error downloading packages: grafana-9.0.2-1.x86_64: [Errno 256] No more mirrors to try. ERROR:__main__:Command '['yum', '-y', '-q', 'install', 'grafana']' returned non-zero exit status 1 None"
In Plesk logs at /var/log/sw-cp-server/error_log:
2022/07/05 07:44:11 [error] 9514#0: *1467 directory index of "/usr/local/psa/admin/htdocs/modules/grafana/relogin/" is forbidden, client: 93.32.76.52, server: , request: "GET /modules/grafana/relogin/ HTTP/1.1", host: "cloud4.nineproofsolutions.com:8443", referrer: "https://cloud4.nineproofsolutions.com:8443/modules/monitoring/index.php/index/main?context=extNavButton_monitoring_1"
Trying yum update shows the following error:
Error downloading packages:
grafana-9.0.2-1.x86_64: [Errno 256] No more mirrors to try.
It is an image from my hosting provider freshly installed.
Please sign in to leave a comment.