Project

General

Profile

Actions

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.

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

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 open0 closed)

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

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
Actions #2

Updated by François ARMAND about 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 :)

Actions #3

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.23 to 3.1.24
Actions #4

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
Actions #5

Updated by Benoît PECCATTE about 7 years ago

  • Effort required set to Small
  • Priority changed from 50 to 65
Actions #6

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 3.1.25 to 387
  • Priority changed from 65 to 64
Actions #7

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 387 to 4.1.10
  • Priority changed from 64 to 63
Actions #8

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
Actions #9

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
Actions #10

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
Actions #11

Updated by Benoît PECCATTE over 6 years ago

  • Target version changed from 4.1.13 to 411
Actions #12

Updated by Benoît PECCATTE over 6 years ago

  • Target version changed from 411 to 4.1.13
Actions #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
Actions #14

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
Actions #15

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.15 to 4.1.16
Actions #16

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.16 to 4.1.17
Actions #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
Actions #18

Updated by Benoît PECCATTE about 6 years ago

  • Target version changed from 4.1.17 to 5.0.3
Actions #19

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
Actions #20

Updated by Benoît PECCATTE about 6 years ago

  • Status changed from Pending technical review to Pending release
Actions #21

Updated by Nicolas CHARLES almost 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
Actions #22

Updated by Nicolas CHARLES almost 6 years ago

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

Updated by Vincent MEMBRÉ almost 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
Actions #24

Updated by Vincent MEMBRÉ almost 6 years ago

  • Status changed from Pending release to Released
This bug has been fixed in Rudder 5.0.3 which was released today.
Changelog
Actions

Also available in: Atom PDF