I followed every step, but I can start the solr service. It says 'paused.
https://www.norconex.com/how-to-run-solr5-as-a-service-on-windows/
I get the following error:
I followed every step, but I can start the solr service. It says 'paused.
https://www.norconex.com/how-to-run-solr5-as-a-service-on-windows/
I get the following error:
I was also running with same problem. Solr service was installed successfully. Then it got paused and tried resuming but it throws an alert to check with administrator. I checked Java version and Java-Home path both were correct. Then I reinstall the service but again it got into same situation. Later I found out on article which say to use:
start -f -p 8983
to use in argument while installation and it did the trick now it is working fine. So basically when you run commnad
nssm install <solrSerivceName>
it prompt for NSSM service installer
It installed solr service and solr service run well now.
If you are able to run Solr manually from Solr installation directory and it is failing when you start it as a service. This could be the reason.
From the NSSM download page (https://nssm.cc/download), they acknowledge the issue with Windows 10 Creators Update and offer a solution:
"2017-04-26: Users of Windows 10 Creators Update should use prelease build 2.2.4-101 to avoid an issue with services failing to start. If for some reason you cannot use that build you can also set AppNoConsole=1 in the registry, noting that applications which expect a console window may behave unexpectedly."
I tried 'solr.cmd start' but still the services wouldn't run. After I tried 'solr.cmd stop -all' this seemed to allow the windows service to start.