While Creating solr service with nssm-2.24.zip then service is created by but while trying to restart/start getting error as
Windows could not start the solr service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your system administrator.
I also faced same issue and to fix this here we have two approaches:
First one is - Please make sure command prompt is closed (where earlier you may ran solr start ), if not closed then first close the command prompt and then again restart solr service. It will work.
Second approach will have below steps:
1. from the cmd (as admin) at the path ~/nssm-2.24/win64 run the command as
> nssm remove solr
Now check from services that solr service is removed or not, if not
then firstly stop solr service from service setting manually and then run the above command hope will work.
2. after this, remove the existing nssm-2.24(from directory) and download this version of NSSM and extract at the same place.
3. now again create the solr service via this nssm version Issue will be resolved.
Let me know if any issue.
Have a Good Day!!!
Windows could not start the solr service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your system administrator.
I also faced same issue and to fix this here we have two approaches:
First one is - Please make sure command prompt is closed (where earlier you may ran solr start ), if not closed then first close the command prompt and then again restart solr service. It will work.
Second approach will have below steps:
1. from the cmd (as admin) at the path ~/nssm-2.24/win64 run the command as
> nssm remove solr
Now check from services that solr service is removed or not, if not
then firstly stop solr service from service setting manually and then run the above command hope will work.
2. after this, remove the existing nssm-2.24(from directory) and download this version of NSSM and extract at the same place.
3. now again create the solr service via this nssm version Issue will be resolved.
Let me know if any issue.
Have a Good Day!!!
Thanks for the solution Pradeep! It worked like a charm.. :-)
ReplyDeleteBe sure that in nssm in patametres start -f -p 8983 word 'start' in lower case
ReplyDeleteHey Pradeep, I have tried your steps but the service still wont start. I have tried killing the process that uses SOlr's port 8983 but still the service wont start. Do you have any recommendations?
ReplyDeleteWhen i look at the windows logs, it gives error like -
Delete"Failed to open process handle for process with PID 17012 when terminating service solr_6.6.2: The parameter is incorrect."
Any suggestions?
Hey Ghanendra, please make sure that your cmd is closed wheere may be solr start command is running.
DeleteHi Ghanendra you got the solution?
DeleteHey, sorry but this doesn't work for me
ReplyDeleteDid not work for me as well. Pradeep hai kuchh apna custom tool banao high level ka.
ReplyDeleteNice working for me Thanks
ReplyDeleteDO we need to set jre path under environment variable
ReplyDeleteYes adding JRE path solved my issue
ReplyDeleteNot working for me
ReplyDeleteThanks a lot mate..!! Worked for me
ReplyDelete