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]
Upgrade fails with GPG key error
Re: Upgrade fails with GPG key error
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.
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
Hi @Prashant23,
You can find the Nagios v3 public key here https://repo.nagios.com/GPG-KEY-NAGIOS-V3.
Aaron
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
we already imported "GPG-KEY-NAGIOS-V3 " on server
Re: Upgrade fails with GPG key error
@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?
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.
Re: Upgrade fails with GPG key error
Post
ls -l /etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V3
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
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]#
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
I recommend snapshotting your server before trying this, but give this a go:
Let us know how if it works.
Thank you!
Code: Select all
yum -y remove nagios-repo && yum -y install https://repo.nagios.com/nagios/9/nagios-repo-9-2.el9.noarch.rpmThank you!