Actions
Bug #12931
closedAgent installation on debian7 does not provide a ready to run agent
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
I try to install the rudder agent on a debian7 vm.
Install went fine, I did a run without Rudder server configured.
Configured a server in the '/var/rudder/cfengine-community/policy_server.dat'
Everything went fine until I tried to run an inventory and get the following error message:
Rudder agent 4.3.3~rc1~git201807102349-wheezy0 Node uuid: 83913412-996f-41bd-9b91-3499885d4211 /var/rudder/ncf/common/20_cfe_basics/dry_run_lib.cf:78:0: error: Duplicate definition of bundle set_dry_run_mode with type agent /var/rudder/ncf/common/20_cfe_basics/dry_run_lib.unsupported.cf:32:0: error: Duplicate definition of bundle set_dry_run_mode with type agent ## Summary ##################################################################### Not all components were displayed because we are not in full compliance mode. Please run with -g to force full compliance mode. Execution time: 0.46s ################################################################################
Running
NCF_CACHE_PATH=/var/rudder/cfengine-community/state /bin/sh /var/rudder/ncf/common/10_ncf_internals/list-compatible-inputs --capability-file /opt/rudder/etc/agent-capabilities --agent-version 3.10.4 --ncf-path '/var/rudder/ncf' common/20_cfe_basics
with set -x shows that I had conflicting cache in '/var/rudder/cfengine-community/state/ncf-exclude-cache-3.10.4' and the @agent_requirements of the dry-run bundle were not checked.
Removing the cache resolves the conflicting bundle. Inventory can be sent but with this error message
sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory Rudder agent 4.3.3~rc1~git201807102349-wheezy0 Node uuid: 83913412-996f-41bd-9b91-3499885d4211 sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory ## Summary ##################################################################### Not all components were displayed because we are not in full compliance mode. Please run with -g to force full compliance mode. Execution time: 0.19s ################################################################################
And agent can not be updated:sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory warning: Could not determine current directory (getcwd: No such file or directory) warning: Could not determine current directory (getcwd: No such file or directory) R: ********************************************************************************* * rudder-agent could not get an updated configuration from the policy server. * * This can be caused by: * * * an agent key that has been changed * * * if this node is not accepted or deleted node on the Rudder root server * * * if this node has changed policy server without sending a new inventory * * Any existing configuration policy will continue to be applied without change. * ********************************************************************************* ok: Rudder agent promises were updated.
Nor run:
sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory Rudder agent 4.3.3~rc1~git201807102349-wheezy0 Node uuid: 83913412-996f-41bd-9b91-3499885d4211 sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory error Rudder agent was interrupted during execution by a fatal error Run with -i to see log messages. ## Summary ##################################################################### 0 components verified in 1 directives Execution time: 0.18s ################################################################################
Actions