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 #1

Updated by Alexander Brunhirl over 4 years ago

FYI. the RPM Epoch is still showing 30.04.2014 ;)

for i in $( rpm -qa rudder* ); do rpm -qi $i |egrep "Name|Epoch|Version|Release" ;done
Name        : rudder-server-relay
Epoch       : 1398866025
Version     : 6.1.0.release
Release     : 1.SLES.12
Name        : rudder-webapp
Epoch       : 1398866025
Version     : 6.1.0.release
Release     : 1.SLES.12
Name        : rudder-agent
Epoch       : 1398866025
Version     : 6.1.0.release
Release     : 1.SLES.12
Name        : rudder-server-root
Epoch       : 1398866025
Version     : 6.1.0.release
Release     : 1.SLES.12
Name        : rudder-reports
Epoch       : 1398866025
Version     : 6.1.0.release
Release     : 1.SLES.12
rudder:~ # date -d @1398866025
Wed Apr 30 15:53:45 CEST 2014
rudder:~ #
Actions #2

Updated by Nicolas CHARLES over 4 years ago

Actions #3

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version set to 6.1.2
Actions #4

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #5

Updated by Vincent MEMBRÉ over 4 years ago

  • Assignee changed from Vincent MEMBRÉ to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/2321
Actions #6

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from In progress to Pending release
Actions #7

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 6.1.2 to 6.1.1
Actions #8

Updated by Félix DALLIDET over 4 years ago

  • Fix check changed from To do to Checked
Actions #9

Updated by François ARMAND over 4 years ago

  • Description updated (diff)
Actions #10

Updated by François ARMAND over 4 years ago

  • Related to Bug #17893: After migration standard technique packageManagement doesn't work anymore added
Actions #11

Updated by François ARMAND over 4 years ago

  • Related to Bug #17895: After migration from 6.0 to 6.1 the Techniques Editor is empty added
Actions #12

Updated by François ARMAND over 4 years ago

  • Related to Bug #17875: After migration to 6.1, apt_get fails because of missing `rudder` global parameters added
Actions #13

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.1 which was released today.

Actions

Also available in: Atom PDF