We have a Nolio Agent installed on a server that will not start. When the user runs <NOLIO_AGENT_HOME>/nolio_agent_restart.sh to try and start the agent the agent does not start. In the nohup.out file that gets created they see the message : runuser: may not be used by non-root users.
The agent also does not start and the same message is shown when they try to start the agent with ./nolio_agent.sh start or ./deployer_daemon.sh start.
The deployer_daemon.sh script tests the id of the user executing the script with the id in the RUN_AS_USER config setting.
Release : 6.6
Component : CA RELEASE AUTOMATION RELEASE OPERATIONS CENTER
Make sure that the RUN_AS_USER is set to run as the appropriate user. It is best practice for the RUN_AS_USER to be set with a value that:
The RUN_AS_USER is often set when the agent is installed as a non-root user. This helps start the agent with the appropriate user if the server is rebooted. If the agent is installed as a non-root user and the RUN_AS_USER is not set to be the userid that installed the agent then rebooting will result in the agent to be started as the root user.
If the agent is installed as a non-root user, the RUN_AS_USER is not set, and the server is reboot then the user that installed the agent will not be able to stop the agent. They will need to get a sysadmin to stop the agent (as root) and possibly change permissions on any files recreated as root before they can proceed with managing the state of the agent.