The Infrastructure agent is not starting, and there are no logs.
To start the agent and generate logs:
Look for the message
sudo: sorry, you must have a tty to run sudoin
/var/log/syslog. When using old Linux versions, sometimes the
nri-agentuser fails to execute a service because it does not have any TTY attached.
If you find this message, edit your
/etc/sudoersfile with the
visudocommand and comment or remove the following line:
After exiting and saving the file, restart the
Check the agent's permission to open the
log_file. It's possible that the log file you are using was created when the agent was running as root, and now the
nri-agentuser does not have permissions to write it.
To solve this, you need to change the owner of the log file or just change the
log_fileentry in the
/etc/newrelic-infra.ymlconfiguration file. Our installation scripts create the
/var/log/newrelic-infra/folder for that purpose, so a recommended value would be: