Bug #16521

Rudder agent 5.x package not compatible with Centos8

Added by Romain Brucker 9 months ago. Updated 5 months ago.

Target version:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Effort required:


Latest Centos8 installed using CentOS-8-x86_64-1905-dvd1.iso.

Ran install script with :

[root@template-packer ~]# curl | bash -s setup-agent 5.0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 29260  100 29260    0     0   621k      0 --:--:-- --:--:-- --:--:--  621k
Rudder 5.0 Repository                                                                                  18 kB/s |  38 kB     00:02    
 Problem: conflicting requests
  - nothing provides /usr/bin/python needed by rudder-agent-1398866025:5.0.15.release-1.EL.8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

[root@template-packer ~]# dnf install python2 python3
Last metadata expiration check: 0:01:29 ago on Fri 10 Jan 2020 03:11:56 PM CET.
Package python2-2.7.15-24.module_el8.0.0+193+7850e68f.x86_64 is already installed.
Package python36-3.6.8-2.module_el8.0.0+33+0a10c0e1.x86_64 is already installed.
Dependencies resolved.
Nothing to do.

[root@template-packer ~]# cat /etc/centos-release
CentOS Linux release 8.0.1905 (Core) 

This is due to /usr/bin/python not being installable anymore through dnf (can install either python2 or python3, and create an alternative instead).
Setting up the alternative doesn't help to install rudder-agent.


ncf - Bug #16751: NCF python script should not be forced to python2ReleasedBenoît PECCATTEActions
ncf - Bug #17080: Python 2 vs 3 error on centos8 for package installReleasedFélix DALLIDETActions
ncf - Bug #17149: Syntax error in Python based package modules headerReleasedAlexis MOUSSETActions

Updated by Romain Brucker 9 months ago

  • Description updated (diff)

Updated by Alexis MOUSSET 9 months ago

Thanks for reporting. As a workaround before the fix, you can use the 6.0 package that should work and is compatible with 5.0 servers.


Updated by Alexis MOUSSET 7 months ago

  • Target version changed from 5.0.16 to 5.0.17

Updated by Félix DALLIDET 7 months ago

This is most likely due to the lib auto-detection done by the rpm packaging which triggers on the python files in the agent.
Backporting our support for python3 scripts to 5.0 should fix the issue.


Updated by Félix DALLIDET 7 months ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET

Updated by Félix DALLIDET 7 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Benoît PECCATTE
  • Pull Request set to

Updated by Félix DALLIDET 7 months ago

  • Status changed from Pending technical review to Pending release

Updated by Vincent MEMBRÉ 5 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.17 and 6.0.5 which were released today.

Also available in: Atom PDF