Project

General

Profile

Bug #11206

Error when uninstalling rudder-webapp and ncf-api-virtualenv

Added by Benoît PECCATTE over 1 year ago. Updated 12 days ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
0

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

Related to Rudder - Bug #13893: User & group Rudder are not correctly removed when removing Rudder 5.0 on SLES12New

Associated revisions

Revision 6149a62e (diff)
Added by Benoît PECCATTE 23 days ago

Fixes #11206: Postrm fails on rudder-webapp and ncf-api-virtualenv

History

#1 Updated by Benoît PECCATTE over 1 year 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

#2 Updated by François ARMAND over 1 year 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 :)

#3 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.23 to 3.1.24

#4 Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 3.1.24 to 3.1.25
  • Priority changed from 52 to 50

#5 Updated by Benoît PECCATTE about 1 year ago

  • Effort required set to Small
  • Priority changed from 50 to 65

#6 Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 3.1.25 to 387
  • Priority changed from 65 to 64

#7 Updated by Vincent MEMBRÉ 12 months ago

  • Target version changed from 387 to 4.1.10
  • Priority changed from 64 to 63

#8 Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 4.1.10 to 4.1.11
  • Priority changed from 63 to 61

#9 Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 4.1.11 to 4.1.12
  • Priority changed from 61 to 59

#10 Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 4.1.12 to 4.1.13
  • Priority changed from 59 to 58

#11 Updated by Benoît PECCATTE 7 months ago

  • Target version changed from 4.1.13 to 411

#12 Updated by Benoît PECCATTE 7 months ago

  • Target version changed from 411 to 4.1.13

#13 Updated by Vincent MEMBRÉ 5 months ago

  • Target version changed from 4.1.13 to 4.1.14
  • Priority changed from 58 to 57

#14 Updated by Benoît PECCATTE 4 months ago

  • Target version changed from 4.1.14 to 4.1.15
  • Priority changed from 57 to 56

#15 Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 4.1.15 to 4.1.16

#16 Updated by Vincent MEMBRÉ about 1 month ago

  • Target version changed from 4.1.16 to 4.1.17

#17 Updated by Benoît PECCATTE 23 days ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE
  • Priority changed from 56 to 0

#18 Updated by Benoît PECCATTE 23 days ago

  • Target version changed from 4.1.17 to 5.0.3

#19 Updated by Benoît PECCATTE 23 days 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

#20 Updated by Benoît PECCATTE 19 days ago

  • Status changed from Pending technical review to Pending release

#21 Updated by Nicolas CHARLES 17 days 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

#22 Updated by Nicolas CHARLES 17 days ago

  • Related to Bug #13893: User & group Rudder are not correctly removed when removing Rudder 5.0 on SLES12 added

#23 Updated by Vincent MEMBRÉ 13 days ago

  • Subject changed from Postrm fails on rudder-webapp and ncf-api-virtualenv to Error when uninstalling rudder-webapp and ncf-api-virtualenv

#24 Updated by Vincent MEMBRÉ 12 days ago

  • 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