I am trying to stop and start a liberty server through a liberty controller following the tutorial https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/labs/Lab-CollectivesClusters.pdf. But I get Server did not stop: return code = 2 message all the time. I traced down to python scripts that it comes from stopServerResults = serverCommand.stop(host,usrdir,serverName,options) function in stopServer.py script. My question is how to find out what is the error or what I need to do successfully stop the server. This is my total message when I run stopServer.py in debug mode:
Connecting to the server...
Successfully connected to the server "redhatlsf2:9443"
Server did not stop: return code = 2
Please let me know. I believe the JMX connection is successfully established from this upper message. If not, how to find out which parameter is wrong for stopServer.py script when it executes.