You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server Info (please complete the following information):
OS: Ubuntu 20.04
Browser: N/A
RMM Version (as shown in top left of web UI): 0.14.5
Installation Method:
Standard
Docker
Agent Info (please complete the following information):
Agent version (as shown in the 'Summary' tab of the agent from web UI): 2.1.1
Agent OS: Rocky Linux 8.5
Describe the bug
Every time the agent is upgraded on an SELinux based distro, the agent fails to start with the following error:
Aug 08 18:27:22 nfs01 systemd[3427494]: tacticalagent.service: Failed to execute command: Permission denied
Aug 08 18:27:22 nfs01 systemd[3427494]: tacticalagent.service: Failed at step EXEC spawning /usr/local/bin/tacticalagent: Permission denied
-- Subject: Process /usr/local/bin/tacticalagent could not be executed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- The process /usr/local/bin/tacticalagent could not be executed and failed.
--
-- The error number returned by this process is 13.
Aug 08 18:27:22 nfs01 systemd[1]: tacticalagent.service: Main process exited, code=exited, status=203/EXEC
Aug 08 18:27:22 nfs01 systemd[1]: tacticalagent.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- The unit tacticalagent.service has entered the 'failed' state with result 'exit-code'.
To Reproduce
Steps to reproduce the behavior:
Install agent on an RPM-based distro that uses SELinux
Upgrade the agent to a newer version using the dashboard
Agent fails to start due to permission error
Workaround
The issue happens because if the binary is moved using mv from another directory with different SELinux permissions, it will keep those permissions.
The workaround is to run the following command to repair the permission and start the agent:
Fix will be in next release but since I had to change code in the agent update function, you will need to manually update the agent to the next version to get it to a working state.
Server Info (please complete the following information):
Installation Method:
Agent Info (please complete the following information):
Describe the bug
Every time the agent is upgraded on an SELinux based distro, the agent fails to start with the following error:
To Reproduce
Steps to reproduce the behavior:
Workaround
The issue happens because if the binary is moved using
mv
from another directory with different SELinux permissions, it will keep those permissions.The workaround is to run the following command to repair the permission and start the agent:
Expected behavior
The agent should have the correct permissions so it can start after upgrade
Additional context
See https://serverfault.com/questions/957084/failed-at-step-exec-spawning-permission-denied for more info
The text was updated successfully, but these errors were encountered: