Page 1 of 1

Upgrade fails with GPG key error

Posted: Wed Jan 01, 2025 9:24 am
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]

Re: Upgrade fails with GPG key error

Posted: Wed Jan 01, 2025 10:40 pm
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.

Re: Upgrade fails with GPG key error

Posted: Thu Jan 02, 2025 10:23 am
by DoubleDoubleA
Hi @Prashant23,

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

Aaron

Re: Upgrade fails with GPG key error

Posted: Fri Jan 03, 2025 9:12 am
by Prashant23
we already imported "GPG-KEY-NAGIOS-V3 " on server

Re: Upgrade fails with GPG key error

Posted: Fri Jan 03, 2025 12:36 pm
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?

Re: Upgrade fails with GPG key error

Posted: Sat Jan 04, 2025 9:59 pm
by kg2857
Post
ls -l /etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V3

Re: Upgrade fails with GPG key error

Posted: Mon Jan 06, 2025 12:35 pm
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]#

Re: Upgrade fails with GPG key error

Posted: Mon Jan 06, 2025 2:12 pm
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!