Project

General

Profile

Bug #19044

Updated by François ARMAND over 3 years ago

**WORAROUND** 

 This error seems to only impact debian-based system.  
 If you are impacted by that error, you can correct by yourself without waiting for the next patch release being done to address it with the command: 

 <pre> 
 sed -i -e 's/rsync --delete/rsync --delete --ignore-times/g' /opt/rudder/bin/rudder-upgrade 
 </pre> 

 Then, execute again the post-upgrade script:  

 <pre> 
 /opt/rudder/bin/rudder-upgrade 
 </pre> 
 It should terminate without error 

 **ORIGINAL REPORT** 


 On the hub server, I'm getting an error when upgrading, though it seems to end correctly. 
 See below : 

 apt-get install rudder-server-root 
 Lecture des listes de paquets... Fait 
 Construction de l'arbre des dépendances        
 Lecture des informations d'état... Fait 
 Les paquets supplémentaires suivants seront installés :  
   rudder-agent rudder-reports rudder-server-relay rudder-webapp 
 Les paquets suivants seront mis à jour : 
   rudder-agent rudder-reports rudder-server-relay rudder-server-root rudder-webapp 
 5 mis à jour, 0 nouvellement installés, 0 à enlever et 110 non mis à jour. 
 Il est nécessaire de prendre 141 Mo dans les archives. 
 Après cette opération, 1 717 ko d'espace disque supplémentaires seront utilisés. 
 Souhaitez-vous continuer ? [O/n]  
 Réception de :1 http://repository.rudder.io/apt/latest buster/main amd64 rudder-server-root all 6.2.3-debian10 [3 324 B] 
 Réception de :2 http://repository.rudder.io/apt/latest buster/main amd64 rudder-reports all 6.2.3-debian10 [8 552 B] 
 Réception de :3 http://repository.rudder.io/apt/latest buster/main amd64 rudder-agent amd64 6.2.3-debian10 [3 206 kB] 
 Réception de :4 http://repository.rudder.io/apt/latest buster/main amd64 rudder-server-relay amd64 6.2.3-debian10 [2 210 kB] 
 Réception de :5 http://repository.rudder.io/apt/latest buster/main amd64 rudder-webapp amd64 6.2.3-debian10 [135 MB] 
 141 Mo réceptionnés en 14s (9 881 ko/s)                                                                                                                                                                                                             
 Lecture des fichiers de modifications (« changelog »)... Terminé 
 Préconfiguration des paquets... 
 (Lecture de la base de données... 51368 fichiers et répertoires déjà installés.) 
 Préparation du dépaquetage de .../rudder-server-root_6.2.3-debian10_all.deb ... 
 Dépaquetage de rudder-server-root (6.2.3-debian10) sur (6.2.2-debian10) ... 
 Préparation du dépaquetage de .../rudder-reports_6.2.3-debian10_all.deb ... 
 Dépaquetage de rudder-reports (6.2.3-debian10) sur (6.2.2-debian10) ... 
 Préparation du dépaquetage de .../rudder-agent_6.2.3-debian10_amd64.deb ... 
 INFO: A back up copy of the /opt/rudder/etc/uuid.hive has been created in /var/backups/rudder 
 INFO: A back up copy of the /var/rudder/cfengine-community/policy_server.dat has been created in /var/backups/rudder 
 INFO: A back up copy of the /var/rudder/cfengine-community/ppkeys has been created in /var/backups/rudder 
 INFO: A back up copy of the /opt/rudder/etc/ssl/agent.cert has been created in /var/backups/rudder 
 Dépaquetage de rudder-agent (6.2.3-debian10) sur (6.2.2-debian10) ... 
 Préparation du dépaquetage de .../rudder-server-relay_6.2.3-debian10_amd64.deb ... 
 Dépaquetage de rudder-server-relay (6.2.3-debian10) sur (6.2.2-debian10) ... 
 Paramétrage de rudder-agent (6.2.3-debian10) ... 
 INFO: Scheduling an inventory during next run... 
 INFO: No disable file detected and no agent executor process either. Restarting agent service... Done 
 FINISH: Rudder agent check ran properly, please look at messages above to see if there has been any error. 
 Paramétrage de rudder-server-relay (6.2.3-debian10) ... 
 INFO: Creating users ... Done 
 INFO: Configuring systemd services... Done 
 INFO: Starting services... Done 
 INFO: rudder-server-relay setup complete. 
 (Lecture de la base de données... 51368 fichiers et répertoires déjà installés.) 
 Préparation du dépaquetage de .../rudder-webapp_6.2.3-debian10_amd64.deb ... 
 ******************************************************************************** 
 INFO: dpkg may ask you if you want to replace rudder-web.properties or           
 INFO: slapd.conf with the maintainer version.                                    
 INFO:                                                                            
 INFO: If you accept, please keep in mind that you will lose any manual           
 INFO: modifications in this file, like batchs configuration, or LDAP             
 INFO: authentication. It will also reset passwords to default values and break   
 INFO: upgrade scripts.                                                           
 INFO:                                                                            
 INFO: We strongly advise you to respond NO to this question                      
 INFO: ('keep your currently-installed version'). Rudder's upgrade script will    
 INFO: take care of upgrading these file automatically.                           
 INFO:                                                                            
 ******************************************************************************** 
 Dépaquetage de rudder-webapp (6.2.3-debian10) sur (6.2.2-debian10) ... 
 Paramétrage de rudder-reports (6.2.3-debian10) ... 
 INFO: Setting PostgreSQL as a boot service...Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install. 
 Executing: /lib/systemd/systemd-sysv-install enable postgresql 
  Done 
 INFO: Waiting for PostgreSQL to be up... Done 
 Paramétrage de rudder-webapp (6.2.3-debian10) ... 
 Installation de la nouvelle version du fichier de configuration /opt/rudder/etc/rudder-jetty.conf ... 
 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 ... 
 ************************************************************************************** 
 ERROR: rudder-webapp postinstall script failed ! 

 Trying to recover the problem, you should check that your instance is properly working 

 You may need to execute: apt-get install -f 
 You should also try to manually execute: /opt/rudder/bin/rudder-upgrade 

    Such errors should not happen, please open an issue for this problem on  
             https://issues.rudder.io/projects/rudder/issues/new 
 ************************************************************************************** 
 Paramétrage de rudder-server-root (6.2.3-debian10) ... 
 Traitement des actions différées (« triggers ») pour rsyslog (8.1901.0-1) ... 
 Traitement des actions différées (« triggers ») pour libc-bin (2.28-10) ...

Back