Bug #8838
closed
Broken "rudder agent reinit" on 4.0
Added by Alexis Mousset over 8 years ago.
Updated about 8 years ago.
Description
error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private!
/opt/rudder/bin/uuidgen: line 9: makeuuid: command not found
cp: target `/var/rudder/ncf/common/' is not a directory
ok: Rudder agent state has been reset.
/opt/rudder/share/commands/agent-factory-reset: line 75: /opt/rudder/share/commands/agent-inventory : No such file or directory
The makeuuid part is #8837.
- Description updated (diff)
resrt also gives:
cp: target `/var/rudder/ncf/common/' is not a directory
- Subject changed from Broken rudder agent reinit on 3.3 to Broken "rudder agent reinit" on 4.0
The missing /var/rudder/ncf/common/ happens because postinst script are broken
The key creation was previously done by:
echo "Making sure that the permissions on the CFEngine key directory are correct..."
if [ -d /var/rudder/cfengine-community/ppkeys ]; then
chmod 700 /var/rudder/cfengine-community/ppkeys
if [ `ls /var/rudder/cfengine-community/ppkeys | wc -l` -gt 0 ]; then
chmod 600 /var/rudder/cfengine-community/ppkeys/*
fi
fi
in Debian postinst. I don't know yet why it was necessary to make this check...
- Status changed from New to In progress
- Assignee changed from Alexis Mousset to Benoît PECCATTE
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-packages/pull/1038
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
- Related to Bug #9233: Error during upgrade from 3.2 to 4.0 added
- Target version changed from 4.0.0~rc2 to 318
- Target version changed from 318 to 4.0.0~rc2
- Target version changed from 4.0.0~rc2 to 4.0.0~rc1
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.0.0 which was released the 10th November 2016.
Also available in: Atom
PDF