Solved

plugins on centos7 update problem : error: unpacking of archive failed: cpio: Bad magic

  • 6 July 2023
  • 3 replies
  • 143 views

Userlevel 3
Badge +8

Hi,

I have installed a new AlmaLinux 8 poller to continue OS migration from Centos7 to Alma8.

I have 1 central+1 poller on CentOS7 and 2 pollers on Alma8, all 22.04.12 version

The new poller is installed but not integrated. It’s a fresh install, so it’s in 22.04.14 version.

Before add the new poller to the platform, I want to update other servers from 22.04.12 to 22.04.14.

 

First on my TEST platform ( centos7 ):

Update of centreon-web, broker….:=> OK

Update of all centreon-plugins => FAILED, all with the same error.

 

Ex with this plugin:

First I thought it was caused by new repos packages.centreon.com ( TEST server have new repos, PROD servers have old ones, yum.centreon.com ).

So I tried on the TEST platform with old repos. Same error.

 

Test with a Centos7 prod poller:

I have tried the update of an unused plugin on a Centos7 prod poller ( with old repos )

Same error !!

 

Test with a Alma8 prod poller, with the same plugin ( old repos ):

Update OK, with the same plugin

 

So I’m stuck with this problem, I can’t add my new poller before update the others serveurs.

 

Someone has an idea ??

Thanks

icon

Best answer by ponchoh 6 July 2023, 18:30

View original

3 replies

Userlevel 3
Badge +8

I have tested with the plugin :

centreon-plugin-Applications-ActiveMQ-Jmx

Version installed on my Centos servers : 

centreon-plugin-Applications-ActiveMQ-Jmx-20230511-111529.el7.noarch

2 more recent versions available on the old and new repos:

centreon-plugin-Applications-ActiveMQ-Jmx-20230608-122119.el7.noarch.rpm
centreon-plugin-Applications-ActiveMQ-Jmx-20230706-100638.el7.noarch.rpm

When I want to update with one version or another, same error.

I have tried to remove the May version, and install newer versions, same error !

Then I have reinstalled the May version, and it’s OK.

It seems that new plugins are compiled with a newer version of RPM that cause an incompatibility with centos 7 version.

 

Centos7 : rpm version 4.11.3 ( ALL plugins update KO )

Alma8 : rpm version 4.14.3 ( ALL plugins update OK )

Userlevel 4
Badge +13

👋👋

 

https://github.com/centreon/centreon-plugins/pull/4537/commits

Userlevel 3
Badge +8

Hi,

It’s working now, thanks for the fix 😁

Reply