Unable to update yum package initscripts.x86_64 0:9.03.31-2.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Unable to update yum package initscripts.x86_64 0:9.03.31-2.

Post by WillemDH »

Hello,

I'm unable to update yum package initscripts.x86_64 0:9.03.31-2 on my Nagios XI production server, which is on a the Nagios 'default' XI 64bit image. Put this same question on CentOS support forum, but I was wondering if this was a known issue?

https://www.centos.org/forums/viewtopic ... 13&t=51736

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to update yum package initscripts.x86_64 0:9.03.3

Post by lmiltchev »

Is there an available "updated" package? What is the output of the following command?

Code: Select all

yum check-update | grep initscripts
Can you show us the errors that you got while trying to update the package?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Unable to update yum package initscripts.x86_64 0:9.03.3

Post by WillemDH »

yes there is:

Code: Select all

 yum check-update | grep initscripts
initscripts.x86_64                   9.03.46-1.el6.centos.1              updates

Code: Select all

yum update
Loaded plugins: fastestmirror, security
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: centos.mirror.nucleus.be
 * epel: mirror.kinamo.be
 * extras: centos.mirror.nucleus.be
 * rpmforge: mirror.ate.info
 * updates: centos.mirror.nucleus.be
Resolving Dependencies
--> Running transaction check
---> Package initscripts.x86_64 0:9.03.31-2.el6.centos will be updated
---> Package initscripts.x86_64 0:9.03.46-1.el6.centos.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================================================================================================================
 Package                                                 Arch                                               Version                                                             Repository                                           Size
==========================================================================================================================================================================================================================================
Updating:
 initscripts                                             x86_64                                             9.03.46-1.el6.centos.1                                              updates                                             943 k

Transaction Summary
==========================================================================================================================================================================================================================================
Upgrade       1 Package(s)

Total download size: 943 k
Is this ok [y/N]: y
Downloading Packages:

initscripts-9.03.46-1.el6.centos.1.x86_64.rpm                                                                                                                                                                      | 943 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction

  Updating   : initscripts-9.03.46-1.el6.centos.1.x86_64 [                                                                                                                                                                          ] 1/2
  Updating   : initscripts-9.03.46-1.el6.centos.1.x86_64 [#                                                                                                                                                                         ] 1/2
  Updating   : initscripts-9.03.46-1.el6.centos.1.x86_64 [###                                                                                                                                                                       ] 1/2
  Updating   : initscripts-9.03.46-1.el6.centos.1.x86_64 [#####                                                                                                                                                                     ] 1/2
  Updating   : initscripts-9.03.46-1.el6.centos.1.x86_64                                                                                                                                                                              1/2 
Error unpacking rpm package initscripts-9.03.46-1.el6.centos.1.x86_64
error: unpacking of archive failed on file /etc/sysconfig/network-scripts/ifup-post: cpio: rename
initscripts-9.03.31-2.el6.centos.x86_64 was supposed to be removed but is not!

  Verifying  : initscripts-9.03.31-2.el6.centos.x86_64                                                                                                                                                                                1/2 

  Verifying  : initscripts-9.03.46-1.el6.centos.1.x86_64                                                                                                                                                                              2/2 

Failed:
  initscripts.x86_64 0:9.03.31-2.el6.centos                                                                          initscripts.x86_64 0:9.03.46-1.el6.centos.1                                                                         

Complete!
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to update yum package initscripts.x86_64 0:9.03.3

Post by lmiltchev »

Is the ifup-post's immutable bit set? Can you show us the output of the following command?

Code: Select all

lsattr /etc/sysconfig/network-scripts/ifup-post
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Unable to update yum package initscripts.x86_64 0:9.03.3

Post by WillemDH »

Code: Select all

lsattr /etc/sysconfig/network-scripts/ifup-post
----i--------e- /etc/sysconfig/network-scripts/ifup-post
Nagios XI 5.8.1
https://outsideit.net
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unable to update yum package initscripts.x86_64 0:9.03.3

Post by tgriep »

Remove the immutable bit from that file and try to update again. Run this to clear the bit.

Code: Select all

chattr -i /etc/sysconfig/network-scripts/ifup-post
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Unable to update yum package initscripts.x86_64 0:9.03.3

Post by WillemDH »

Hey Tom,

I'll do this beginning next week. Just noticed there is a yum update of postgresql. Is it safe to update on XI?

Code: Select all

postgresql.x86_64                                                                                                 8.4.20-2.el6_6                                                                                                   updates
postgresql-devel.x86_64                                                                                           8.4.20-2.el6_6                                                                                                   updates
postgresql-libs.x86_64                                                                                            8.4.20-2.el6_6                                                                                                   updates
postgresql-server.x86_64                                                                                          8.4.20-2.el6_6          
Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to update yum package initscripts.x86_64 0:9.03.3

Post by lmiltchev »

Just noticed there is a yum update of postgresql. Is it safe to update on XI?
I updated postgres on one of my test boxes and I haven't seen any issues so far. Having said that, I cannot guarantee that you wouldn't have any issues in your environment. I would recommend trying the update on your test server. There is a reason why with each XI license we offer three installations - one primary monitoring/production, one backup/failover, and one test environment.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Unable to update yum package initscripts.x86_64 0:9.03.3

Post by WillemDH »

Ok, thanks Ludmill. I will update Postgresql on my qa server next week. It would be nice though if we could get a 'go' from Nagios support for certain updates like postgresql / mysql /gearman.
Nagios XI 5.8.1
https://outsideit.net
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Unable to update yum package initscripts.x86_64 0:9.03.3

Post by cmerchant »

Willem, let us know when you have a chance next week to test your postgres upgrade. I will keep this thread open. Keep us updated.
Locked