Saturday 9 December 2017

Windows could not start the solr service on Local Computer: Sitecore 9 Installation

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!!!

13 comments:

  1. Thanks for the solution Pradeep! It worked like a charm.. :-)

    ReplyDelete
  2. Be sure that in nssm in patametres start -f -p 8983 word 'start' in lower case

    ReplyDelete
  3. Hey 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?

    ReplyDelete
    Replies
    1. When i look at the windows logs, it gives error like -
      "Failed to open process handle for process with PID 17012 when terminating service solr_6.6.2: The parameter is incorrect."
      Any suggestions?

      Delete
    2. Hey Ghanendra, please make sure that your cmd is closed wheere may be solr start command is running.

      Delete
    3. Hi Ghanendra you got the solution?

      Delete
  4. Hey, sorry but this doesn't work for me

    ReplyDelete
  5. Did not work for me as well. Pradeep hai kuchh apna custom tool banao high level ka.

    ReplyDelete
  6. DO we need to set jre path under environment variable

    ReplyDelete
  7. Yes adding JRE path solved my issue

    ReplyDelete
  8. Thanks a lot mate..!! Worked for me

    ReplyDelete