Upgrade fails with GPG key error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
Prashant23
Posts: 7
Joined: Sat Nov 16, 2024 6:00 am

Upgrade fails with GPG key error

Post by Prashant23 »

Hi All,

I am trying to upgrade NagiosXI from 5.9.1 to 5.11.3 but upgrade is failed with below error. Please help.

Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V3 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V3]
kg2857
Posts: 499
Joined: Wed Apr 12, 2023 5:48 pm

Re: Upgrade fails with GPG key error

Post by kg2857 »

What OS is this on? The issue looks like its due to local software repositories not being available. It has nothing to do with nagios.
Its helpful to provide relevant info info in posts.
DoubleDoubleA
Posts: 286
Joined: Thu Feb 09, 2017 5:07 pm

Re: Upgrade fails with GPG key error

Post by DoubleDoubleA »

Hi @Prashant23,

You can find the Nagios v3 public key here https://repo.nagios.com/GPG-KEY-NAGIOS-V3.

Aaron
Prashant23
Posts: 7
Joined: Sat Nov 16, 2024 6:00 am

Re: Upgrade fails with GPG key error

Post by Prashant23 »

we already imported "GPG-KEY-NAGIOS-V3 " on server
bbahn
Posts: 385
Joined: Thu Jan 12, 2023 5:42 pm

Re: Upgrade fails with GPG key error

Post by bbahn »

@Prashant23,

It seems to me like a permissions error on your GPG key. Can you check the permissions on your GPG key to ensure the installer can read it?
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
kg2857
Posts: 499
Joined: Wed Apr 12, 2023 5:48 pm

Re: Upgrade fails with GPG key error

Post by kg2857 »

Post
ls -l /etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V3
Prashant23
Posts: 7
Joined: Sat Nov 16, 2024 6:00 am

Re: Upgrade fails with GPG key error

Post by Prashant23 »

Ran below command on servers and its completed but RPMGPG-KEY-NAGIOS-V3 not showing on server. What needs to do, please suggest.

wget https://repo.nagios.com/GPG-KEY-NAGIOS-V3
rpm --import GPG-KEY-NAGIOS-V3

OS: RHEL 9.2

[root@XXXXXXX tmp]# ls -lrt /etc/pki/rpm-gpg/
total 32
-rw-r--r-- 1 root root 3109 Oct 28 2017 RPM-GPG-KEY-NAGIOS-V2
-rw-r--r--. 1 root root 12807 Nov 17 2020 rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
-rw-r--r-- 1 root root 1656 Dec 1 2021 RPM-GPG-KEY-EPEL-9
-rw-r--r--. 1 root root 3682 Mar 28 2023 RPM-GPG-KEY-redhat-release
-rw-r--r--. 1 root root 1669 Mar 28 2023 RPM-GPG-KEY-redhat-beta
[root@XXXXXXX tmp]#
gwesterman
Posts: 269
Joined: Wed Aug 23, 2023 11:29 am

Re: Upgrade fails with GPG key error

Post by gwesterman »

I recommend snapshotting your server before trying this, but give this a go:

Code: Select all

yum -y remove nagios-repo && yum -y install https://repo.nagios.com/nagios/9/nagios-repo-9-2.el9.noarch.rpm
Let us know how if it works.

Thank you!
Post Reply