MATLAB: When stopping the MATLAB Production Server instance why do I receive “Error: Unable to stop the server service: The service has not been started”

MATLAB Production Server

When trying to stop the MATLAB Production Server instance using mps-stop within the instance folder, why do I receive "Error: Unable to stop the server service: The service has not been started"?

Best Answer

This error will typically occur if a Windows Service has been configured for the server instance. In order to stop the instance you will need to remove the service first.Run the command mps-service delete within the server instance folder.
For example:C:\MPS\mps_instance\mps-service delete
Then run mps-stop:C:\MPS\prod_server_1\mps-stop\mps-stop
The instance should stop and you can make changes if necessary and restart the instance.