Search Server Service is not Starting
search cancel

Search Server Service is not Starting

book

Article ID: 278249

calendar_today

Updated On: 02-23-2024

Products

CA Service Desk Manager CA Service Management - Service Desk Manager

Issue/Introduction

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

 

Environment

Search Server not installed on the default C drive

Cause

-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

Resolution

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