Hi, i have a problem with aws.py Script,
On certain Amazon EC2 Instances, the script gives an error:
Traceback (most recent call last):
File "aws.py", line 68, in <module>
if is_ec2():
File "aws.py", line 18, in is_ec2
with open("/sys/hypervisor/uuid") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/sys/hypervisor/uuid'
/var/log/rudder/webapp/2020_11_30_stderrout.log
(look for ERROR
)? If no, or if the log file is missing, perhaps in /var/log/rudder/webapp/java.log
or /var/log/rudder/install/rudder-server-root-*.log
?
Hi @fanf, thanks for your answer. On our server is any network allowed. My problem is, that the laptop is not receiving any policy from the server, which is not on the same device. I tried "rudder agent factory-reset" and also another hostname, nothing helps:
root@ubuntu6:~# rudder agent run -ui
Rudder agent 6.1.6-ubuntu20.04
Node uuid: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
R: *
error: Rudder agent policies could not be updated.
Start execution with config [0]
rudder info: Automatically promoting context scope for 'heartbeat_sent' to namespace visibility, due to persistence
R: [INFO] Starting CFEngine 3.15.1 on host ubuntu6 (ubuntu_20 x86_64)
M| State Technique Component Key Message
E| compliant Common ncf Initialization Configuration library initialization was correct
E| error Common Update Cannot update configuration policy
R: *
E| compliant Common Security parameters The internal environment security is acceptable
E| compliant Common CRON Daemon Cron daemon status was correct
E| compliant Common Compute inventory splay rudder_run_invent| Scheduling rudder_run_inventory was correct
info Inventory inventory An inventory was already sent less than 8 hours ago
E| compliant Inventory inventory Next inventory scheduled between 00:00 and 06:00
6 components verified in 4 directives
=> 6 components in Enforce mode
-> 5 compliant
-> 1 error