When trying to start a newly upgraded Search Server Service, the following error is generated:
"Windows could not start the CA Service Management Search Server on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 4."
Errors seen in searchserver.log
[info] [4220] Starting service...
[error] [4184] CreateJavaVM Failed
[error] [4184] The system cannot find the file specified
[error] [4220] Failed to start Java
[error] [4220] ServiceStart returned 4
[info] [1152] Run service finished.
[info] [1152] Commons Daemon procrun finished
Search Server not installed on the default C drive
-Djava.io.tmpdir has the full path name and doesnt have variables
Example:
-Djava.io.tmpdir=D:\Program Files\CA...
Default:
-Djava.io.tmpdir=C:\PROGRA~1\CA\SC\CASEAR~1\ELASTI~1.6
We checked the Service properties by executing this:
C:\Program Files\CA\SC\CASearchServer\elasticsearch-7.17.6\bin>elasticsearch-service.bat manager
There was a carriage return found in -Djava.io.tmpdir
Once this was removed the service was able to start