Page 1 of 2

Upgrade from 2014R2.7 to 5.4.13 unsuccessful

Posted: Tue Mar 13, 2018 5:22 pm
by Dave Ryan
Hi,

I just attempted to upgrade my Nagios XI instance from 2014R2.7 to 5.4.13 from the nagiosxi/admin page and it did not complete successfully. It seems that the dependencies it attempts it download are not found on any of the mirror sites as they all error out with [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404". Does anyone know what might be going on here? Attached is the upgrade log.

Thanks,
Dave.

Re: Upgrade from 2014R2.7 to 5.4.13 unsuccessful

Posted: Tue Mar 13, 2018 5:33 pm
by scottwilkerson
there are a couple possible problems, one would be you could be behind a proxy but this error is glaring at me about the machine not being updated

Code: Select all

Loaded plugins: aliases, changelog, downloadonly, product-id, rhnplugin,
              : security, subscription-manager, tmprepo, verify, versionlock
Updating certificate-based repositories.
Unable to read consumer identity
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.

Error Message:
    Service not enabled for system profile: "bktsfnoc01.dynarand.com"
Error Class Code: 31
Error Class Info: 
     This system does not have a valid entitlement for Red Hat Network.
     Please visit https://rhn.redhat.com/rhn/systems/SystemEntitlements.do
     or login at https://rhn.redhat.com, and from the "Your RHN" tab,
     select "Subscription Management" to enable RHN service for this system.
Explanation:
    Your organization does not have enough Management entitlements to register this
    system to Red Hat Network. Please notify your organization administrator of this error. 
    You should be able to register this system after your organization frees existing 
    or purchases additional entitlements. Additional entitlements may be purchased by your
    organization administrator by logging into Red Hat Network and visiting
    the 'Subscription Management' page in the 'Your RHN' section of RHN.
    
    A common cause of this error code is due to having mistakenly setup an
    Activation Key which is set as the universal default.  If an activation key is set
    on the account as a universal default, you can disable this key and retry to avoid
    requiring a Management entitlement.
Can you run the following from the command line without error?

Code: Select all

yum update epel-release -y
If so did it update a package?

Re: Upgrade from 2014R2.7 to 5.4.13 unsuccessful

Posted: Tue Mar 13, 2018 5:39 pm
by Dave Ryan
Thanks for the reply! Yep, it seemed to do something. Log attached.

Re: Upgrade from 2014R2.7 to 5.4.13 unsuccessful

Posted: Tue Mar 13, 2018 5:53 pm
by scottwilkerson
Not that this is updated, you may have a better list of mirrors to find the items it needs, so you can try the upgrade again

However you may need to resolve that issue with Redhat if a package is needed from the base repo.

Re: Upgrade from 2014R2.7 to 5.4.13 unsuccessful

Posted: Wed Mar 14, 2018 4:34 pm
by Dave Ryan
I resolved the issue with RHEL and downloading from mirrors. I kicked off another upgrade attempt, it got much further but was unsuccessful. Can you review the attached log and advise?

Re: Upgrade from 2014R2.7 to 5.4.13 unsuccessful

Posted: Wed Mar 14, 2018 4:38 pm
by scottwilkerson
Somehow your machine doesn't have another required package

Code: Select all

yum install 'perl(Math::Calc::Units)' -y

Re: Upgrade from 2014R2.7 to 5.4.13 unsuccessful

Posted: Wed Mar 14, 2018 4:50 pm
by Dave Ryan
Thanks for the response. I ran the command and below is the output. It seems like the package isn't available. Any idea?

Code: Select all

[root@bktsfnoc01 ~]# yum install 'perl(Math::Calc::Units)' -y
Loaded plugins: aliases, changelog, downloadonly, product-id, security,
              : subscription-manager, tmprepo, verify, versionlock
Setting up Install Process
No package perl(Math::Calc::Units) available.
Error: Nothing to do
[root@bktsfnoc01 ~]# 

Re: Upgrade from 2014R2.7 to 5.4.13 unsuccessful

Posted: Wed Mar 14, 2018 5:56 pm
by Dave Ryan
I downloaded the rpm files manually and installed them per below.

Code: Select all

[root@bktsfnoc01 rpms]# rpm -ivh perl-Class-Accessor-0.34-1.el6.rfx.noarch.rpm
Preparing...                ########################################### [100%]
   1:perl-Class-Accessor    ########################################### [100%]
[root@bktsfnoc01 rpms]# rpm -ivh perl-Config-Tiny-2.12-1.el6.rfx.noarch.rpm
Preparing...                ########################################### [100%]
   1:perl-Config-Tiny       ########################################### [100%]
[root@bktsfnoc01 rpms]# rpm -ivh perl-Math-Calc-Units-1.07-1.el6.rf.noarch.rpm
Preparing...                ########################################### [100%]
   1:perl-Math-Calc-Units   ########################################### [100%]
[root@bktsfnoc01 rpms]# rpm -ivh perl-Number-Format-1.72a-1.el5.rf.noarch.rpm
Preparing...                ########################################### [100%]
   1:perl-Number-Format     ########################################### [100%]
[root@bktsfnoc01 rpms]# 
I then kicked off another install but I'm not sure what went wrong now. Can you take another look? A new log has been attached. Thx!

Re: Upgrade from 2014R2.7 to 5.4.13 unsuccessful

Posted: Wed Mar 14, 2018 6:03 pm
by Dave Ryan
So it seems that maybe it did upgrade to the latest version but had some errors in the process. See screenshot attached showing latest version is installed but update shows that it was not successful. Please advise. Thx!

Re: Upgrade from 2014R2.7 to 5.4.13 unsuccessful

Posted: Thu Mar 15, 2018 8:55 am
by scottwilkerson
It's trying to update php-ldap but the php-ldap that is available to your repos doesn't have all the dependencies required to match your version.

Unfortunately you would need to resolve these with RedHat