Getting error starting the SM agent using “startAgent” or using the services app snap in.
It’m bombing out immediately, nothing in logs.
C:\jde_home\SCFHA\bin>startAgent
The service is not responding to the control function.More help is available by typing NET HELPMSG 2186.
A similar unhelpful message when using the service start.
error 1053: the service did not respond to start or control request in a timely fashion.
I notice some strange characters around the start command…
C:\jde_home\SCFHA\bin\scfagent_64.exe Ҩ]//RS//SCFAGENT2
I then went sniffing around to see how the service was installed
C:\jde_home\SCFMC\bin\installAgentService.cmd
@echo off
SET CUR_DIR=%cd%
cd /d "%~dp0.."
SET JDE_HOME=%cd%
cd /d "%CUR_DIR%"SET JAVA_HOME=%JDE_HOME%\jdk\jre
CALL %JDE_HOME%\bin\bitness-checker.bat > %JDE_HOME%\bin\bits
set /p BITS=<%JDE_HOME%\bin\bitsif %BITS%==64 GOTO do64
:do32
%JDE_HOME%\bin\scfagent.exe "//IS//SCFAGENT2" "--Description=SM Management Agent" "--DisplayName=SM Management Agent [%JDE_HOME%]" --Startup=auto --StartMode=exe "--StartImage=%JAVA_HOME%\bin\java.exe" "--StartParams=-Xrs;-classpath;%JDE_HOME%\lib\scfagent.jar;com.jdedwards.mgmt.agent.Launcher" "--LogPath=%JDE_HOME%\logs" --LogPrefix=installAgentService.log --LogLevel=DEBUG "--StdOutput=%JDE_HOME%\logs\stdout.log" "--StdError=%JDE_HOME%\logs\stderr.log"GOTO EOF
:do64
%JDE_HOME%\bin\scfagent_64.exe "//IS//SCFAGENT2" "--Description=SM Management Agent" "--DisplayName=SM Management Agent [%JDE_HOME%]" --Startup=auto --StartMode=exe "--StartImage=%JAVA_HOME%\bin\java.exe" "--StartParams=-Xrs;-classpath;%JDE_HOME%\lib\scfagent.jar;com.jdedwards.mgmt.agent.Launcher" "--LogPath=%JDE_HOME%\logs" --LogPrefix=installAgentService.log --LogLevel=DEBUG "--StdOutput=%JDE_HOME%\logs\stdout.log" "--StdError=%JDE_HOME%\logs\stderr.log"
:EOF
Note that it looks normal here, I tried removing “, did not work.
regedit – to see the service definition.
remove the dodgy characters out of the path
A couple of starts later, and we were off!
I tried 100 different security things before I was able to fix this, what a pain!
1 comment:
Very Useful. Thanks a lot.
Post a Comment