Project

General

Profile

Actions

Bug #17873

closed

SLES12 upgrade error 6.0 to 6.1

Added by Alexander Brunhirl over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:

Description

Hi,

during upgrading from Rudder 6.0 to 6.1 on SLES12 SP4 I got the following error.

Best regards,
Alex

rudder:~ # rpm -qa |grep rudder
rudder-agent-6.0.6.release-1.SLES.12.x86_64
rudder-reports-6.0.6.release-1.SLES.12.x86_64
rudder-server-relay-6.0.6.release-1.SLES.12.x86_64
rudder-server-root-6.0.6.release-1.SLES.12.x86_64
rudder-webapp-6.0.6.release-1.SLES.12.x86_64
rudder:~ # zypper update rudder-server-root
        [...]
(4/5) Installing: rudder-webapp-1398866025:6.1.0.release-1.SLES.12.x86_64 .........................................[done]
Additional rpm output:
warning: /opt/rudder/etc/openldap/slapd.conf created as /opt/rudder/etc/openldap/slapd.conf.rpmnew
warning: /opt/rudder/etc/rudder-users.xml created as /opt/rudder/etc/rudder-users.xml.rpmnew
warning: /opt/rudder/etc/rudder-web.properties created as /opt/rudder/etc/rudder-web.properties.rpmnew
"rewrite" already present
INFO: Creating groups ... Done
INFO: Creating users ... Done
INFO: Removing ncf-api-venv user and group ...no crontab for ncf-api-venv
userdel: ncf-api-venv mail spool (/var/mail/ncf-api-venv) not found
userdel: ncf-api-venv home directory (/var/lib/ncf-api-venv) not found
groupdel: unrecognized option '--system'
Usage: groupdel [options] GROUP

Options:
  -h, --help                    display this help message and exit
  -R, --root CHROOT_DIR         directory to chroot into

warning: %post(rudder-webapp-1398866025:6.1.0.release-1.SLES.12.x86_64) scriptlet failed, exit status 2
warning: file /var/lib/ncf-api-venv: remove failed: No such file or directory
warning: file /etc/apache2/vhosts.d/ncf-api-virtualenv.conf: remove failed: No such file or directory
        [...]
rudder:~ # rpm -qa |grep rudder
rudder-server-relay-6.1.0.release-1.SLES.12.x86_64
rudder-webapp-6.1.0.release-1.SLES.12.x86_64
rudder-agent-6.1.0.release-1.SLES.12.x86_64
rudder-server-root-6.1.0.release-1.SLES.12.noarch
rudder-reports-6.1.0.release-1.SLES.12.noarch
rudder:~ # 

Workaround:

rudder:~ # cp /opt/rudder/share/package-scripts/rudder-webapp-postinst .
rudder:~ # vi ./rudder-webapp-postinst
rudder:~ # diff -u /opt/rudder/share/package-scripts/rudder-webapp-postinst ./rudder-webapp-postinst
--- /opt/rudder/share/package-scripts/rudder-webapp-postinst    2020-06-16 16:19:16.000000000 +0200
+++ ./rudder-webapp-postinst    2020-07-01 15:44:42.351803455 +0200
@@ -38,7 +38,7 @@
 fi

 if getent group ncf-api-venv >/dev/null; then
-  groupdel --system ncf-api-venv >> ${LOG_FILE}
+  groupdel ncf-api-venv >> ${LOG_FILE}
 fi

 echo " Done" 
rudder:~ # 
rudder:~ # ./rudder-webapp-postinst false apache2
INFO: Creating groups ... Done
INFO: Creating users ... Done
INFO: Removing ncf-api-venv user and group ... Done
INFO: Setting up systemd ...INFO: Restarting rudder-slapd... Done
INFO: Launching script to check if a migration is needed ...
Done
INFO: Re-generate rudder-lang libraries ...
Done
INFO: Make sure Rudder webapp is started... Done
INFO: Make sure Apache HTTPd is started... Done
rudder:~ # 

Related issues 4 (0 open4 closed)

Related to Rudder - Architecture #17166: Remove packaging of ncf apiReleasedAlexis MoussetActions
Related to Rudder - Bug #17893: After migration standard technique packageManagement doesn't work anymoreRejectedActions
Related to Rudder - Bug #17895: After migration from 6.0 to 6.1 the Techniques Editor is emptyRejectedFrançois ARMANDActions
Related to Rudder - Bug #17875: After migration to 6.1, apt_get fails because of missing `rudder` global parameters ResolvedActions
Actions

Also available in: Atom PDF