Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error message when uninstalling Oneagent


An error message was displayed when uninstalling Oneagent Linux.

Confirmed that "semanage" is not installed.

Is the uninstallation successful?


[root@ket-bat11 agent]# /home/dynatrace/

16:55:05 Checking root privileges...

16:55:05 OK

16:55:05 Removing entries for preloading

16:55:05 Using SysV to stop the agent

16:55:12 Removing Dynatrace OneAgent from autostart

16:55:12 Removing oneagent from /etc/init.d

16:55:12 Removing oneagentproc from system folders

16:55:12 Removing oneagentproc from /lib

16:55:12 Removing oneagentproc from /lib64

16:55:12 Cleaning up /opt/dynatrace/oneagent/agent. Part of configuration preserved in /var/lib/dynatrace/oneagent

/home/dynatrace/agent/ line 465: semanage: Command not found

16:55:12 Removing Dynatrace SELinux policies.

16:55:14 Uninstallation finished successfully


T.Shirai IIM Corp. Osaka Japan

DynaMight Guru
DynaMight Guru

If script reached it's end (it is, you see it in last line) in general everything should be uninstalled properly.


Regards, Sebastian

Dynatrace Enthusiast
Dynatrace Enthusiast

Hello Toshimasa,

The OneAgent uninstallation is indeed finished, but due to the error you see in the output, i.e. lack of semanage utility on your host, the uninstall script wasn't able to remove SELinux context for your custom-path OneAgent installation.

The last thing to complete the uninstall in this case is to install semanage utility onto your host and use it to remove OneAgent contexts manually. You can find out how to do that using semanage docs (e.g. execute man semanage on your machine).



Featured Posts