Project

General

Profile

Bug #17873

Updated by François ARMAND over 4 years ago

Hi, 

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

 Best regards, 
 Alex 

 <pre><code class="shell"> 
 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:~ #  
 </code></pre> 

 Workaround: 

 <pre><code class="shell"> 
 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:~ #  
 </code></pre> 

Back