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

Uninstall Mac Agent

A customer tried installing the Mac agent on new Catalina OS's, and is running into errors when trying to uninstall these. I advised the customer that the Mac agent that supports Catalina isn't out yet so there isn't any concern anymore regarding installing the agent on Catalina, but they are worried that systems that had the agent previously installed and were upgraded to Catalina might run into the same issue. Can someone advise whether or not that will be a problem? Customer's original message about the problem is below -

 

Running the uninstall command before installing the new one on MacOS Catalina gives me an error:

Script result: Stopping ManageSoft services...

Saving configuration: /opt/managesoft/bin/mgsconfig: line 28: /opt/managesoft/libexec/mgsconfig: Bad CPU type in executable/opt/managesoft/bin/mgsconfig: line 28: /opt/managesoft/libexec/mgsconfig: Undefined error: 0

Done

Forgot package 'com.managesoft.client' on '/'.

Removing ManageSoft files: done

 

Here is the uninstall command from the documentation:
/opt/managesoft/bin/uninstall-managesoft.command -force

The software isn’t uninstalled and attempts to install the new software over the old results in a failure.

 

 

(1) Solution
GregBirk
By Technical Writer
Technical Writer

This reply is from Engineering:

If a Mac with an existing agent has the OS upgraded to 10.15 (Catalina) prior to upgrading the agent to a compatible version, the agent and machine will become orphaned as the pre-14.0 agents are 32-bit and will no longer run on 10.15.
 
It is possible to remove the old agent even though the uninstall command fails. To completely remove the agent configuration, also run:
sudo rm -rf /var/opt/managesoft
 
This will remove the agent configuration that the uninstall command failed to (mgsconfig is used to perform this operation but will not run because it is 32-bit).
 
Note: Because of this issue, we recommend waiting for the 14.0 agent release before upgrading to macOS 10.15. The 14.0 agent will be released with 2019 R2. 

View solution in original post

(1) Reply
GregBirk
By Technical Writer
Technical Writer

This reply is from Engineering:

If a Mac with an existing agent has the OS upgraded to 10.15 (Catalina) prior to upgrading the agent to a compatible version, the agent and machine will become orphaned as the pre-14.0 agents are 32-bit and will no longer run on 10.15.
 
It is possible to remove the old agent even though the uninstall command fails. To completely remove the agent configuration, also run:
sudo rm -rf /var/opt/managesoft
 
This will remove the agent configuration that the uninstall command failed to (mgsconfig is used to perform this operation but will not run because it is 32-bit).
 
Note: Because of this issue, we recommend waiting for the 14.0 agent release before upgrading to macOS 10.15. The 14.0 agent will be released with 2019 R2.