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

Error message when uninstalling Oneagent

Shirai
Helper

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/agentuninstall.sh/uninstall.sh

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/uninstall.sh: 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
2 REPLIES 2

skrystosik
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.

Sebastian

Regards, Sebastian

bartosz_pollok
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).

Regards,

Bartek

Featured Posts