Bug #11206
closed
Error when uninstalling rudder-webapp and ncf-api-virtualenv
Added by Benoît PECCATTE over 7 years ago.
Updated almost 6 years ago.
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Description
I found this bug in Rudder version 4.2, on ubuntu
This bug happens:
- During removal of Rudder server
Description:
INFO: Removing group rudder...groupdel: cannot remove the primary group of user 'rudder'
dpkg: error processing package rudder-webapp (--purge):
subprocess installed post-removal script returned error exit status 8
INFO: Removing the ncf-api-venv user...dpkg: error processing package ncf-api-virtualenv (--purge):
subprocess installed post-removal script returned error exit status 8
You can reproduce it with the following steps:
apt-get install rudder-server-root
apt-get remove --purge rudder-agent rudder-inventory-endpoint rudder-inventory-ldap rudder-jetty rudder-reports rudder-server-relay rudder-server-root rudder-techniques rudder-webapp ncf ncf-api-virtualenv
You can workaround this issue by doing likewise: Remove manually the affected user and group and rerun remove
Related issues
1 (1 open — 0 closed)
- Category set to Packaging
- Target version set to 4.2.0~rc1
- Severity set to Major - prevents use of part of Rudder | no simple workaround
- User visibility set to Operational - other Techniques | Technique editor | Rudder settings
- Priority changed from 0 to 52
- Target version changed from 4.2.0~rc1 to 3.1.23
It is very hightly extremely unlikely to happen only in 4.2 :)
- Target version changed from 3.1.23 to 3.1.24
- Target version changed from 3.1.24 to 3.1.25
- Priority changed from 52 to 50
- Effort required set to Small
- Priority changed from 50 to 65
- Target version changed from 3.1.25 to 387
- Priority changed from 65 to 64
- Target version changed from 387 to 4.1.10
- Priority changed from 64 to 63
- Target version changed from 4.1.10 to 4.1.11
- Priority changed from 63 to 61
- Target version changed from 4.1.11 to 4.1.12
- Priority changed from 61 to 59
- Target version changed from 4.1.12 to 4.1.13
- Priority changed from 59 to 58
- Target version changed from 4.1.13 to 411
- Target version changed from 411 to 4.1.13
- Target version changed from 4.1.13 to 4.1.14
- Priority changed from 58 to 57
- Target version changed from 4.1.14 to 4.1.15
- Priority changed from 57 to 56
- Target version changed from 4.1.15 to 4.1.16
- Target version changed from 4.1.16 to 4.1.17
- Status changed from New to In progress
- Assignee set to Benoît PECCATTE
- Priority changed from 56 to 0
- Target version changed from 4.1.17 to 5.0.3
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-packages/pull/1724
- Status changed from Pending technical review to Pending release
this still fails (at least on SLES12)
( 2/11) Removing rudder-webapp-1398866025:5.0.3.rc1.git201811220103-1.SLES.12 ..........................................................................................................................................................[done]
Additional rpm output:
warning: /opt/rudder/etc/rudder-web.properties saved as /opt/rudder/etc/rudder-web.properties.rpmsave
warning: /opt/rudder/etc/rudder-passwords.conf saved as /opt/rudder/etc/rudder-passwords.conf.rpmsave
INFO: Removing group rudder...groupdel: cannot remove the primary group of user 'rudder'
Done
...
Additional rpm output:
warning: /opt/rudder/etc/rudder-networks-policy-server-24.conf saved as /opt/rudder/etc/rudder-networks-policy-server-24.conf.rpmsave
warning: /opt/rudder/etc/rudder-networks-24.conf saved as /opt/rudder/etc/rudder-networks-24.conf.rpmsave
Job for apache2.service failed. See "systemctl status apache2.service" and "journalctl -xn" for details.
INFO: Removing the rudder group ... Done
INFO: Removing the rudder-policy-reader group ... Done
INFO: Removing the rudder user... Done
# cat /etc/group | grep rudder
...
rudder:x:491:
# cat /etc/password | grep rudder
- Related to Bug #13893: User & group Rudder are not correctly removed when removing Rudder 5.0 on SLES12 added
- Subject changed from Postrm fails on rudder-webapp and ncf-api-virtualenv to Error when uninstalling rudder-webapp and ncf-api-virtualenv
- Status changed from Pending release to Released
This bug has been fixed in Rudder 5.0.3 which was released today.
Changelog
Also available in: Atom
PDF