• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Can't install Grafana extension update

Daveo

Basic Pleskian
Server operating system version
Debian 11.8
Plesk version and microupdate number
18.0.56 Update 1
Update listed in Updates in Extensions, click to update and get the following...

[2023-10-26 01:49:14.319] 15375:6539b781a7c0e ERR [extension/grafana] The execution of post-install.php has failed with the following message:
[2023-10-26 01:49:14.302] 15543:6539b78a491ff ERR [extension/grafana] Execution repository has failed with exit code 1, stdout: , stderr: gpg: keybox '/tmp/tmps9lxv3xe.plesk.gpg.home/pubring.kbx' created
gpg: /tmp/tmps9lxv3xe.plesk.gpg.home/trustdb.gpg: trustdb created
gpg: key BD11A6AA914BDF7E: public key "Plesk Team <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1
ERROR:root:Unable to create repository configuration: apt-get failed to perform update.
E: Failed to fetch https://autoinstall.plesk.com/grafana/deb/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (1631 != 1078). Mirror sync in progress? [IP: 89.187.167.6 443]
Hashes of expected file:
- Filesize:1078 [weak]
- SHA512:8f33082833b361a99a6033bf9d016bbec2ad61c069e1ba856fbb8aa0dd3a06e71f839056f2c5b094249857d556dc9064e7ac63eb3c07aa1d6a8184cb617412f1
- SHA256:a45a94c63bcfa8ace6f2eef402eb1f6dd4ed1d1fac4c68e141b8218cff627a13
- SHA1:a1b3768c9e94919f25fe66bd4a3b6c0c4e6f5e87 [weak]
- MD5Sum:b403b1e01dd75bd68515782ecbe23b0c [weak]
Release file created at: Wed, 25 Oct 2023 13:06:53 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
The execution of post-install.php has failed with the following message:
[2023-10-26 01:49:14.302] 15543:6539b78a491ff ERR [extension/grafana] Execution repository has failed with exit code 1, stdout: , stderr: gpg: keybox '/tmp/tmps9lxv3xe.plesk.gpg.home/pubring.kbx' created
gpg: /tmp/tmps9lxv3xe.plesk.gpg.home/trustdb.gpg: trustdb created
gpg: key BD11A6AA914BDF7E: public key "Plesk Team " imported
gpg: Total number processed: 1
gpg: imported: 1
ERROR:root:Unable to create repository configuration: apt-get failed to perform update.
E: Failed to fetch https://autoinstall.plesk.com/grafana/deb/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (1631 != 1078). Mirror sync in progress? [IP: 89.187.167.6 443]
Hashes of expected file:
- Filesize:1078 [weak]
- SHA512:8f33082833b361a99a6033bf9d016bbec2ad61c069e1ba856fbb8aa0dd3a06e71f839056f2c5b094249857d556dc9064e7ac63eb3c07aa1d6a8184cb617412f1
- SHA256:a45a94c63bcfa8ace6f2eef402eb1f6dd4ed1d1fac4c68e141b8218cff627a13
- SHA1:a1b3768c9e94919f25fe66bd4a3b6c0c4e6f5e87 [weak]
- MD5Sum:b403b1e01dd75bd68515782ecbe23b0c [weak]
Release file created at: Wed, 25 Oct 2023 13:06:53 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

exit status 1
 
same issue here:
Grund: Update utility stdout:
Loading mirror speeds from cached hostfile
* base: mirror.eu.oneandone.net
* epel: mirror.imt-systems.com
* extras: mirror.eu.oneandone.net
* updates: mirror.23m.com
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
Public key for grafana-10.1.5-1.x86_64.rpm is not installed
Retrieving key from https://autoinstall.plesk.com/grafana/rpm/gpg.key
Update utility stderr:
2023-10-27 03:33:43 INFO: pum is called with arguments: ['--update', '--json']
2023-10-27 03:33:50 INFO: updating packages: grafana
warning: /var/cache/yum/x86_64/7/plesk-ext-grafana/packages/grafana-10.1.5-1.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 10458545: NOKEY
Importing GPG key 0x10458545:
Userid : "Grafana Labs <[email protected]>"
Fingerprint: b53a e77b adb6 30a6 8304 6005 963f a277 1045 8545
From : https://autoinstall.plesk.com/grafana/rpm/gpg.key
2023-10-27 03:33:53 ERROR: Didn't install any keys
2023-10-27 03:33:53 ERROR: Exited with returncode 1.

On differnt servers (debian, centos). I think thats a problem from grafana!!
 
We'll have a look soon.

On my CentOS 7.9 I see the key issue, too, but was able to run yum update grafana and confirm the key manually, but then still needed to run the system updates tool in GUI to clear the message that an update is available. It's not alright this way, but will need to be checked what the issue with Grafana is here.
 
According to staff it is supposed to be some sync issue of keys and Grafana update that is allegedly already solved. I just can't test it. So maybe you can try to do the update again?
 
on the debian system the same failure:
  • Update utility stdout:
  • Loading mirror speeds from cached hostfile
  • * base: mirror.eu.oneandone.net
  • * epel: ftp.plusline.net
  • * extras: mirror.eu.oneandone.net
  • * updates: ftp.antilo.de
  • Retrieving key from https://autoinstall.plesk.com/grafana/rpm/gpg.key
  • Update utility stderr:
  • 2023-10-27 14:40:13 INFO: pum is called with arguments: ['--update', '--json', '--', 'grafana']
  • 2023-10-27 14:40:18 INFO: updating packages: grafana
  • warning: /var/cache/yum/x86_64/7/plesk-ext-grafana/packages/grafana-10.1.5-1.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 10458545: NOKEY
  • Importing GPG key 0x10458545:
  • Userid : "Grafana Labs <[email protected]>"
  • Fingerprint: b53a e77b adb6 30a6 8304 6005 963f
 
I had the same issue but I managed to have the Grafana update installed following the @Peter Debik advice from this old post (i.e. )

Anyway, there is still something VERY ODD going on:
  • The Extension catalog (/modules/catalog/index.php/catalog/featured) gives me an "Internal server error"
  • Monitoring (/modules/monitoring/index.php/index/main?context=extNavButton_monitoring_1) is unresponsive (sad face emoticon with a "<myservernamehere> redirected you too many times" message displayed when hovering on it
I'm not sure the two above are related, but, anecdotally, I never had this issues before this (botched ?) update.
 
After importing the key I have now managed to update Grafana on both my Debian 10 & 11 servers without any issues.
 
Update failed.

Update utility stdout:
Loading mirror speeds from cached hostfile
* epel: mirrors.hostiserver.com
Retrieving key from https://autoinstall.plesk.com/grafana/rpm/gpg.key
Update utility stderr:
2023-10-28 12:46:27 INFO: pum is called with arguments: ['--update', '--json', '--', 'grafana']
2023-10-28 12:46:30 INFO: updating packages: grafana
warning: /var/cache/yum/x86_64/7/plesk-ext-grafana/packages/grafana-10.1.5-1.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 10458545: NOKEY
Importing GPG key 0x10458545:
Userid : "Grafana Labs <[email protected]>"
Fingerprint: b53a e77b adb6 30a6 8304 6005 963f a277 1045 8545
From : https://autoinstall.plesk.com/grafana/rpm/gpg.key
 
@Dork the log excerpt lets me think you are on a RHEL OS like CentOS, Rocky, Alma? If so, could you maybe just run dnf update grafana (or, if it's an older system, yum update grafana)? You'd then be prompted for the key and can press y to finish the update.
 
OK - grafana update has been installed now.
But I wonder why this long way of user activities was needed.
 
Back
Top