Page 1 of 2

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

Posted: Tue Mar 24, 2015 9:14 am
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

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

Posted: Tue Mar 24, 2015 9:39 am
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?

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

Posted: Thu Mar 26, 2015 6:41 am
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!

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

Posted: Thu Mar 26, 2015 10:42 am
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

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

Posted: Sat Mar 28, 2015 9:10 am
by WillemDH

Code: Select all

lsattr /etc/sysconfig/network-scripts/ifup-post
----i--------e- /etc/sysconfig/network-scripts/ifup-post

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

Posted: Mon Mar 30, 2015 9:48 am
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

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

Posted: Thu Apr 02, 2015 6:03 am
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

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

Posted: Thu Apr 02, 2015 9:22 am
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.

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

Posted: Thu Apr 02, 2015 3:23 pm
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.

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

Posted: Thu Apr 02, 2015 3:27 pm
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.