Project

General

Profile

Actions

Bug #10034

closed

Error when upgrading rudder-agent

Added by Nicolas CHARLES almost 8 years ago. Updated almost 8 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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 3 (0 open3 closed)

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 directoriesReleasedMatthieu CERDA2013-04-24Actions
Related to Rudder - Bug #9233: Error during upgrade from 3.2 to 4.0ReleasedAlexis Mousset2016-10-21Actions
Has duplicate Rudder - Bug #10051: When upgrading agent on Centos6 from 3.1 to 4.1, all promises are replaced by initial promisesRejectedAlexis Mousset2017-01-23Actions
Actions #1

Updated by Alexis Mousset almost 8 years ago

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

Updated by Alexis Mousset almost 8 years 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
Actions #3

Updated by Alexis Mousset almost 8 years ago

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

Updated by Alexis Mousset almost 8 years ago

  • Status changed from New to In progress
Actions #5

Updated by Alexis Mousset almost 8 years 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
Actions #6

Updated by Alexis Mousset almost 8 years ago

  • Target version changed from 4.1.0~beta2 to 4.0.3
Actions #7

Updated by Alexis Mousset almost 8 years ago

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

Updated by Alexis Mousset almost 8 years ago

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

Updated by Vincent MEMBRÉ almost 8 years 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.

Actions

Also available in: Atom PDF