Unable to start Engine. The Engine may currently be in the process of shutting down

Document ID : KB000045906
Last Modified Date : 16/07/2018
Show Technical Document Details
Introduction:

Problem :

In DSM Explorer an engine appears with the red square icon.

Attempt to start engine returns error :

"Unable to start Engine. The Engine may currently be in the process of shutting down. Please allow time for the Engine to shutdown properly and then try again. The command failed".

 

In example below, Engine_Collect is stopped and could not be started :

 

Untitled.jpg

 
 
 
 

Cause :

 
This problem could occur if Engine is present in database (in table ca_engine) but missing in comstore.
This situation could arrive if comstore of the machine has been restored with a version when the Engine was not yet created.
 
In result of command "caf status", check that Engine is not present.
 
In this example Engine_Collect does not appear in the DSM Services list :
 
Untitled2.jpg
 

 

 

 

Resolution : 

 
Open a Command Prompt and execute the commands below.
Adapt the 2 first lines with appropriate value for ENGINENAME and ENGINEPATH :
 
 
SET ENGINENAME=Engine_Collect
SET ENGINEPATH=C:\Program Files (x86)\CA\DSM\Bin
 
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn description -v Engine
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn enabled -v 1
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn installed -v 1
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn instancename -v "%ENGINENAME%"
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn runonce -v 0
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn plugindll -v cfPlugin
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn loadonstartup -v 1
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn restartifdied -v 1
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn maxrestarts -v 3
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn maxrestarttime -v 3600
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn dependencies -v ccnfagent cfnotsrvd cmobjectmanager
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn maxinstances -v 1
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn stoppable -v 1
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn commandline -v "%ENGINEPATH%\cmEngine.exe -name SystemEngine /name:%ENGINENAME%"
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn hidden -v 0
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn communicable -v 1
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn runasservice -v 0
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn killable -v 1
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn messagetimeout -v 60
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn runascurrentuser -v 0
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn pipeconnecttimeout -v 120
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn startuptimeout -v 120
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn enabledisplayondesktop -v 0
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn pluginpassword -v ""
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn pluginusername -v ""
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn runaselevatedadmin -v 0
ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/%ENGINENAME% -pn setcreds -v 0
 
cftrace -c add -f CSTACK -pp %ENGINENAME% -lf TRC_%ENGINENAME%.log
SET ENGINENAME=
SET ENGINEPATH=
 
 
 
The Engine should appear in the list of DSM Services returned by "caf status" and could be started with "caf start <enginename>" :
 
 Untitled3.jpg
Instructions:
Please Update This Required Field