Bug #11206
closedError when uninstalling rudder-webapp and ncf-api-virtualenv
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
Updated by Benoît PECCATTE over 7 years ago
- 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
Updated by François ARMAND over 7 years ago
- Target version changed from 4.2.0~rc1 to 3.1.23
It is very hightly extremely unlikely to happen only in 4.2 :)
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.23 to 3.1.24
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.24 to 3.1.25
- Priority changed from 52 to 50
Updated by Benoît PECCATTE about 7 years ago
- Effort required set to Small
- Priority changed from 50 to 65
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.25 to 387
- Priority changed from 65 to 64
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 387 to 4.1.10
- Priority changed from 64 to 63
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 4.1.10 to 4.1.11
- Priority changed from 63 to 61
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.11 to 4.1.12
- Priority changed from 61 to 59
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.12 to 4.1.13
- Priority changed from 59 to 58
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.13 to 411
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 411 to 4.1.13
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.14
- Priority changed from 58 to 57
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.14 to 4.1.15
- Priority changed from 57 to 56
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.15 to 4.1.16
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.16 to 4.1.17
Updated by Benoît PECCATTE about 6 years ago
- Status changed from New to In progress
- Assignee set to Benoît PECCATTE
- Priority changed from 56 to 0
Updated by Benoît PECCATTE about 6 years ago
- Target version changed from 4.1.17 to 5.0.3
Updated by Benoît PECCATTE about 6 years ago
- 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
Updated by Benoît PECCATTE about 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-packages|6149a62e73661f8c47ac66276d05176d931d39fc.
Updated by Nicolas CHARLES about 6 years ago
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
Updated by Nicolas CHARLES about 6 years ago
- Related to Bug #13893: User & group Rudder are not correctly removed when removing Rudder 5.0 on SLES12 added
Updated by Vincent MEMBRÉ about 6 years ago
- Subject changed from Postrm fails on rudder-webapp and ncf-api-virtualenv to Error when uninstalling rudder-webapp and ncf-api-virtualenv
Updated by Vincent MEMBRÉ about 6 years ago
- Status changed from Pending release to Released
Changelog