Plesk for Windows
Plesk for Linux
kb: technical
Applicable to:
- Plesk for Linux
- Plesk for Windows
Symptoms
-
Advanced Monitoring in Plesk shows:
PLESK_ERROR: The tab content cannot be loaded because the Grafana service is stopped. Start the service?
-
Fixing Grafana looks correct until the first refresh
Cause
An incorrect Grafana package is installed (e.g. grafana-enterprise
).
Resolution
For Linux:
-
Connect to the server via SSH
-
Find out the name of the package:
# rpm -qa | grep grafana
grafana-enterprise -
Remove the package found on the step 2:
# rpm -e --nodeps grafana-enterprise
-
Remove the extension:
# plesk bin extension -u grafana
-
Install it back:
# plesk bin extension -i grafana
For Windows:
- Log into the server via RDP.
- Start a command prompt as an Administrator.
- Run the commands below one be one to uninstall incorrect packages and install a correct one:
C:\> plesk bin extension -u grafana
C:\> plesk bin extension -u monitoring
C:\> plesk bin extension -i monitoring
Comments
15 comments
I performed the resolution for Linux and received the following errors:
rpm -e --nodeps grafana-enterprise-7.0.0-1.x86_64
error: package grafana-enterprise-7.0.0-1.x86_64 is not installed
plesk bin extension -u grafana
The extension was successfully removed.
plesk bin extension -i grafana
[2021-04-21 23:21:15.417] ERR [extension/grafana] The execution of post-install.php has failed with the following message:
[2021-04-21 23:21:15.405] ERR [extension/grafana] Execution filemng has failed with exit code 1, stdout: filemng: Unable to find uid for user grafana: Success
filemng: Unable to getpwnam for user grafana
filemng: User grafana not found
, stderr: filemng: Unable to find uid for user grafana: Success
filemng: Unable to getpwnam for user grafana
filemng: User grafana not found
The execution of post-install.php has failed with the following message:
[2021-04-21 23:21:15.405] ERR [extension/grafana] Execution filemng has failed with exit code 1, stdout: filemng: Unable to find uid for user grafana: Success
filemng: Unable to getpwnam for user grafana
filemng: User grafana not found
, stderr: filemng: Unable to find uid for user grafana: Success
filemng: Unable to getpwnam for user grafana
filemng: User grafana not found
exit status 1
Hello @Scott Boulanger,
The first step did not complete as the package must be named differently on your server. Please send the output of this command:
# rpm -qa | grep grafana
grafana-7.5.4-1.x86_64
@Scott Boulanger,
In that case, the package name has to be replaced in the 2nd step of this article:
rpm -e --nodeps grafana-7.5.4-1.x86_64
If it does not help to solve the issue, please submit a support request to Plesk directly or to a reseller, depending on where the license was purchased.
After executing: rpm -e --nodeps grafana-7.5.4-1.x86_64
I was able to re-execute: plesk bin extension -i grafana
Which installed the extension successfully!
Hi, I m an Ubuntu user, should I install RPM to fix this issue ?
I tried to do it using the "update and upgrade" "Install or upgrade Plesk" web tool on port 8447, here is the result when I re-installed the monitoring component :
Installation started in background
Checking whether the package dependencies are resolved.
Installing packages
Installing the package Monitoring
Launching component and product checkers...
Downloading file report-update: 0%
Downloading file report-update: 100% was finished.
Downloading file pool/PSA_18.0.38_7167/examiners/py_launcher.sh: 0%
Downloading file pool/PSA_18.0.38_7167/examiners/py_launcher.sh: 100% was finished.
Error: Failed to install the extension 'Monitoring' (package: monitoring):
[2021-10-10 17:41:07.067] 21957:6163093d9be25 ERR [extension/monitoring] The execution of post-install.php has failed with the following message:
[2021-10-10 17:41:07.034] 23220:6163094295dcb ERR [extension/monitoring] Execution extension has failed with exit code 3, stdout: , stderr: Grafana service failed to start
The execution of post-install.php has failed with the following message:
[2021-10-10 17:41:07.034] 23220:6163094295dcb ERR [extension/monitoring] Execution extension has failed with exit code 3, stdout: , stderr: Grafana service failed to start
Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try to install the packages again.
Visit https://support.plesk.com/ to search for a solution.
Hello @Sylvio,
On Ubuntu server, use the following command to locate the grafana package:
dpkg -l | grep grafana
By default, the correct package should be:
ii grafana 8.2.0 amd64 Grafana
Please send me the command execution results on your side.
Hello. I did one more time the installation using the web tool. Then here is the result :
# dpkg -l | grep grafana
ii grafana 8.2.0 amd64 Grafana
and here is the detailled installation log :
Getting bootstrapper packages to installation list:
[2021-10-11 07:19:17.366439] skip package 'pp18.0.38-bootstrapper-18.0-v.ubuntu.18.04+p18.0.38.3+t211001.1903.amd64' from component panel - same or newer version of this package is already installed (in system pp18.0.38-bootstrapper-18.0-v.ubuntu.18.04+p18.0.38.3+t211001.1903.amd64)
[2021-10-11 07:19:17.366439] skip package 'sw-engine-cli-3.38-3.38.0-ubuntu.18.04.210809.1937.amd64' from component panel - same or newer version of this package is already installed (in system sw-engine-cli-3.38-3.38.0-ubuntu.18.04.210809.1937.amd64)
[2021-10-11 07:19:17.366439] Following bootstrapper packages will be installed: (empty)
[2021-10-11 07:19:17.366439] ----------------
[2021-10-11 07:19:17.366717] Getting packages to installation list:
[2021-10-11 07:19:17.366775] Following packages will be installed: ext-monitoring-no_versioning_data.noarch
[2021-10-11 07:19:17.366775] ----------------
[2021-10-11 07:19:17.366894] Checking whether the package dependencies are resolved.
[2021-10-11 07:19:17.976595] (regen obsoletes cache)
[2021-10-11 07:19:17.976873] Check package set before installation
[2021-10-11 07:19:17.978212] The following packages from not selected components will be installed because they are required by other components' packages you selected for installation:
[2021-10-11 07:19:18.127120] Installing packages
[2021-10-11 07:19:18.158418] Bootstrapper has finished action (exec time: 0 sec.): parent_name='PLESK_18_0_38', sequence='prep', stage='execute', sequence_order='-2', operation='install', exec_cmd='touch /var/lock/plesk-report-update.flag; :'', m_arch='', exit code: 0, output: ~empty
[2021-10-11 07:19:18.201631] Bootstrapper has finished action (exec time: 0 sec.): parent_name='PLESK_18_0_38', sequence='prep', stage='execute', sequence_order='-1', operation='install', exec_cmd='touch /tmp/pp-bootstrapper-mode.flag; touch /var/lock/parallels-panel-maintenance-mode.flag; rm -f /var/lock/parallels-panel-upgrade-failure.flag; :'', m_arch='', exit code: 0, output: ~empty
[2021-10-11 07:19:18.251565] Bootstrapper has finished action (exec time: 0 sec.): parent_name='PLESK_18_0_38', sequence='post', stage='execute', sequence_order='9990', operation='install', exec_cmd='test ! -x /opt/psa/admin/sbin/packagemng || /opt/psa/admin/sbin/packagemng --set-dirty-flag'', m_arch='', exit code: 0, output: ~empty
[2021-10-11 07:19:19.734493] Bootstrapper has finished action (exec time: 1 sec.): parent_name='PLESK_18_0_38', sequence='post', stage='execute', sequence_order='9991', operation='install', exec_cmd='/opt/psa/bootstrapper/pp18.0.38-bootstrapper/bootstrapper.sh perform-deferred-actions'', m_arch='', exit code: 0, output: ~empty
[2021-10-11 07:19:20.816982] Bootstrapper has finished action (exec time: 1 sec.): parent_name='PLESK_18_0_38', sequence='post', stage='execute', sequence_order='9998', operation='install', exec_cmd='/opt/psa/admin/sbin/update_history'', m_arch='', exit code: 0, output: ~empty
[2021-10-11 07:19:20.853534] Bootstrapper has finished action (exec time: 0 sec.): parent_name='PLESK_18_0_38', sequence='post', stage='commit', sequence_order='1', operation='install', exec_cmd='rm -f /tmp/pp-bootstrapper-mode.flag; rm -f /var/lock/parallels-panel-maintenance-mode.flag; :'', m_arch='', exit code: 0, output: ~empty
[2021-10-11 07:19:20.854149] Installing the package Monitoring
[2021-10-11 07:20:13.025780] Extension package ext-monitoring installation failed with code 1, stdout: ~empty
stderr: [2021-10-11 07:20:12.157] 27694:6163c95e92f1f ERR [extension/monitoring] The execution of post-install.php has failed with the following message:
[2021-10-11 07:20:12.118] 28490:6163c9658bee2 ERR [extension/monitoring] Execution extension has failed with exit code 3, stdout: , stderr: Failed to update the Grafana state in turn.
The execution of post-install.php has failed with the following message:
[2021-10-11 07:20:12.118] 28490:6163c9658bee2 ERR [extension/monitoring] Execution extension has failed with exit code 3, stdout: , stderr: Failed to update the Grafana state in turn.
[2021-10-11 07:20:13.041954] Launching component and product checkers...
[2021-10-11 07:20:13.042067] FileFetcher: get file (~empty)/report-update
[2021-10-11 07:20:13.042414] Downloading file report-update: 0%
[2021-10-11 07:20:13.193215] Downloading file report-update: 100% was finished.
[2021-10-11 07:20:13.195507] FileFetcher: get file (~empty)/pool/PSA_18.0.38_7167/examiners/py_launcher.sh
[2021-10-11 07:20:13.195637] Downloading file pool/PSA_18.0.38_7167/examiners/py_launcher.sh: 0%
[2021-10-11 07:20:13.237537] Downloading file pool/PSA_18.0.38_7167/examiners/py_launcher.sh: 100% was finished.
[2021-10-11 07:20:14.248610] Examination executed ["/root/parallels/pool/PSA_18.0.38_7167/examiners/py_launcher.sh" "/root/parallels/report-update" --op update --rc 1 --start-flag /var/lock/plesk-report-update.flag --to=18.0.38.3 --from=18.0.38] with code 0
Output:
~empty
Error:
~empty
[2021-10-11 07:20:14.249549] Execute command /opt/psa/admin/bin/send-error-report install --version 18.0.38
[2021-10-11 07:20:14.278543] Warning: Failed to attach to cgroup /sys/fs/cgroup/systemd/user/root/tasks, installer might be unexpectedly killed later by the system
[2021-10-11 07:20:14.293512] Error: Failed to install the extension 'Monitoring' (package: monitoring):
[2021-10-11 07:20:12.157] 27694:6163c95e92f1f ERR [extension/monitoring] The execution of post-install.php has failed with the following message:
[2021-10-11 07:20:12.118] 28490:6163c9658bee2 ERR [extension/monitoring] Execution extension has failed with exit code 3, stdout: , stderr: Failed to update the Grafana state in turn.
The execution of post-install.php has failed with the following message:
[2021-10-11 07:20:12.118] 28490:6163c9658bee2 ERR [extension/monitoring] Execution extension has failed with exit code 3, stdout: , stderr: Failed to update the Grafana state in turn.
Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try to install the packages again.
Visit https://support.plesk.com/ to search for a solution.
Hi,
we have the same issue on all our servers running Ubuntu 18.04 and Plesk (Obsidian 18.0.38 Update #3, latest version as of now).
The installed version of grafana is 8.2.0.
On 18.04, i also get the error regarding post-install.php when installing the package.
I did a downgrade to grafana 8.1.7 , which installed without error and grafana-server starts, but in Plesk, the graphs are not displayed in the Monitoring extension.
On all our servers running Ubuntu 20.04 , the package installs without error, and grafana-server is running correctly (same version of Plesk as above). Also, the Advanced Monitoring extension displays the server graphs as intended.
Hi
I noticed this morning that an update 8.2.1 is now available, I first just executed apt-get update then apt-get upgrade but then in plesk interface the graphs were displayed as "no data" - access denied... so I de-installed and re-installed the plesk monitoring option and now it seems to work correctly !
@extro-media GbR
This installation error is not reproduced on our test servers: the extension can be re-installed without issues, so there must be the technical issue specific to your environment that is causing the issue. Try updating the extension to 8.2.1 as @Sylvio informed it fixed the issue.
Hello
i also use an Ubuntu server and have the same problem, my result for dpkg -l | grep grafana is
ii grafana 8.2.2 amd64 Grafana
I uninstalled Grafana and then reinstalled it, but that didn't solve the problem
It always prompts the error
"2021-10-29 08:08:08.706] 3235997:617b8fc699454 ERR [extension/monitoring] Execution extension has failed with exit code 1, stdout: , stderr: It seems that the extension installation is still in progress, so the "update-module-state" command cannot be performed."
Hi all,
I am running Debian 10.11 , Plesk Obsidian Version 18.0.39.
Removing and reinstalling the Grafana extension also gave me empty results.... dashboard not found.
I just removed the extension, and then reinstalled, BUT, now through the Monitoring extension (this will install Grafana automatically).
It works fine now, and, It's a lot quicker this way ... ;-)
Hello @Clemens Moosbrugger,
Try reinstalling the extension
Please sign in to leave a comment.