Project

General

Profile

Bug #10034

Error when upgrading rudder-agent

Added by Nicolas CHARLES 11 months ago. Updated 10 months ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Priority:

Description

When upgrading Rudder agent on centos6, from 3.1 to 4.1 nightly, I get the following error:

  Mise à jour   : 1398866025:rudder-agent-4.1.0.beta2.git201701191109-1.EL.6.x86_64                                                                            1/2 

INFO: A back up copy of /etc/init.d/rudder-agent has been created in /var/backups/rudder
INFO: A back up copy of /etc/default/rudder-agent has been created in /var/backups/rudder
INFO: A back up copy of /etc/cron.d/rudder-agent has been created in /var/backups/rudder
ok: Rudder agent is now disabled.
rudder-agent[20581]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent[20582]: [INFO] Halting CFEngine Community cf-serverd...
rudder-agent[20587]: [OK] CFEngine Community cf-serverd stopped after 2 seconds
rudder-agent[20588]: [INFO] Halting CFEngine Community cf-execd...
rudder-agent[20594]: [OK] CFEngine Community cf-execd stopped after 2 seconds
ok: stop service rudder-agent succeeded
ok: Rudder agent has been enabled but not started, wait for next cron run.
rudder-agent[20678]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent[20679]: [INFO] Launching CFEngine Community cf-serverd...
   error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private!
rudder-agent[20799]: [ALERT] no PID file for cf-serverd after 30 seconds. Trying again...
   error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private!
rudder-agent[20921]: [ALERT] no PID file for cf-serverd after 60 seconds. Trying again...
   error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private!
rudder-agent[20964]: [ALERT] no PID file for cf-serverd after 70 seconds
rudder-agent[20965]: [INFO] Launching CFEngine Community cf-execd...
   error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private!
rudder-agent[21085]: [ALERT] no PID file for cf-execd after 30 seconds. Trying again...
   error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private!
rudder-agent[21226]: [ALERT] no PID file for cf-execd after 60 seconds. Trying again...
   error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private!
rudder-agent[21275]: [ALERT] no PID file for cf-execd after 70 seconds
error: start service rudder-agent failed
INFO: Scheduling an inventory during next run...
  Nettoyage     : 1398866025:rudder-agent-3.1.18.rc1.git201701190751-1.EL.6.x86_64                                                                             2/2 
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
  Verifying     : 1398866025:rudder-agent-4.1.0.beta2.git201701191109-1.EL.6.x86_64                                                                            1/2 
  Verifying     : 1398866025:rudder-agent-3.1.18.rc1.git201701190751-1.EL.6.x86_64                                                                             2/2 

Mis à jour :
  rudder-agent.x86_64 1398866025:4.1.0.beta2.git201701191109-1.EL.6                                        

Please note that it is fairly slow to upgrade
Once it's done:

root@agent1:/home/vagrant# ls -al /var/rudder/cfengine-community/ppkeys/
total 20
drwx------.  2 root root 4096 19 janv. 10:21 .
drwxr-xr-x. 11 root root 4096 19 janv. 11:47 ..
-rw-------.  1 root root 1743 19 janv. 09:26 localhost.priv
-rw-------.  1 root root  426 19 janv. 09:26 localhost.pub
-rw-------.  1 root root  426 19 janv. 09:51 root-MD5=eXXXXXXXXXXXXXXXXXXXX.pub


Related issues

Related to Rudder - Bug #3515: Upgrading rudder-agent from 2.4.4 to 2.6.0 nightly lead to having an error from CFEngine because of permissions of directories Released 2013-04-24
Related to Rudder - Bug #9233: Error during upgrade from 3.2 to 4.0 Released 2016-10-21
Duplicated by Rudder - Bug #10051: When upgrading agent on Centos6 from 3.1 to 4.1, all promises are replaced by initial promises Rejected 2017-01-23

Associated revisions

Revision 41f55616
Added by Alexis MOUSSET 11 months ago

Fixes #10034: Error when upgrading rudder-agent

History

#1 Updated by Alexis MOUSSET 11 months ago

  • Duplicated by Bug #10051: When upgrading agent on Centos6 from 3.1 to 4.1, all promises are replaced by initial promises added

#2 Updated by Alexis MOUSSET 11 months ago

  • Related to Bug #3515: Upgrading rudder-agent from 2.4.4 to 2.6.0 nightly lead to having an error from CFEngine because of permissions of directories added

#3 Updated by Alexis MOUSSET 11 months ago

  • Related to Bug #9233: Error during upgrade from 3.2 to 4.0 added

#4 Updated by Alexis MOUSSET 11 months ago

  • Status changed from New to In progress

#5 Updated by Alexis MOUSSET 11 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis MOUSSET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1220

#6 Updated by Alexis MOUSSET 11 months ago

  • Target version changed from 4.1.0~beta2 to 4.0.3

#7 Updated by Alexis MOUSSET 11 months ago

  • Pull Request changed from https://github.com/Normation/rudder-packages/pull/1220 to https://github.com/Normation/rudder-packages/pull/1222

#8 Updated by Alexis MOUSSET 11 months ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

#9 Updated by Vincent MEMBRÉ 10 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.0.3 and 4.1.0~beta3 which were released today.

Also available in: Atom PDF