You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Fiz N <fi...@gmail.com> on 2022/04/25 15:36:46 UTC

SOLR Service down issue - NSSM.

Hello Experts,

 Currently we have installed SOLR 8.11.1 services through NSSM Service
manager (version 2.24).

NSSM Service manager is mainly used for managing windows services which
includes automatically starting and stopping the SOLR Services.

As a part of SOLR service maintenance, NSSM Service manager is currently
scheduled to restart the SOLR Services every Saturday 6PM CST.

But because of an unexpected issue, NSSM Service manager is unable to
restart SOLR services. As a result when the restart command is issued the
NSSM Service manager is stopping the SOLR services indefinitely.



We are using the below command for restarting SOLR services

*nssm.exe restart SOLR-8.11.1*



We are facing the below issue

*SOLR-8.11.1: Unexpected status SERVICE_STOP_PENDING in response to STOP
control.*



Thanks,

*Fiz Fareedh.*

Re: SOLR Service down issue - NSSM.

Posted by dmitri maziuk <dm...@gmail.com>.
On 2022-04-25 1:04 PM, Shawn Heisey wrote:
> 
> If the stop is being done correctly, the maximum amount of time it 
> should take for a Windows system to shut Solr down is five seconds. This 
> is a fact that I actually consider to be a bug on our end ... after a 
> hard-coded sleep of five seconds, solr.cmd will forcefully kill Solr, if 
> it is still running.

Apparently NSSM has ... issues, when it comes to timeouts on both start 
and stop actions. I haven't seen this, actually, but then we don't 
restart Solr every week: our Winders VMs get rebooted on patch schedule, 
but other than that Solr's been up on them without problems.

Dima

Re: SOLR Service down issue - NSSM.

Posted by Shawn Heisey <ap...@elyograg.org>.
On 4/25/22 11:49, dmitri maziuk wrote:
> On 2022-04-25 12:35 PM, Shawn Heisey wrote:
>> On 4/25/22 09:36, Fiz N wrote:
>>>
>>> *SOLR-8.11.1: Unexpected status SERVICE_STOP_PENDING in response to 
>>> STOP
>>> control.*
>>
>> Have you talked to the NSSM project to see what they can tell you 
>> about what their software is seeing from Solr?
>
> It's seeing "stop pending": basically Solr takes too long to shut 
> down, FVO "too long" = longer than NSSM's timeout. It's a bug in NSSM.

If the stop is being done correctly, the maximum amount of time it 
should take for a Windows system to shut Solr down is five seconds.  
This is a fact that I actually consider to be a bug on our end ... after 
a hard-coded sleep of five seconds, solr.cmd will forcefully kill Solr, 
if it is still running.  For contrast, on POSIX systems the solr stop 
will wait for up to three minutes for it to stop gracefully before doing 
a forced kill, and if it takes less than three minutes, it returns as 
soon as the process stops.

Who knows what commands were given to NSSM for the stop and start 
actions.  They could be the wrong commands.  This project has not 
provided official instructions for setting up a service on Windows, so 
whatever the OP used is either third-party or something they created 
themselves.

Thanks,
Shawn


Re: SOLR Service down issue - NSSM.

Posted by dmitri maziuk <dm...@gmail.com>.
On 2022-04-25 12:35 PM, Shawn Heisey wrote:
> On 4/25/22 09:36, Fiz N wrote:
>>
>> *SOLR-8.11.1: Unexpected status SERVICE_STOP_PENDING in response to STOP
>> control.*
> 
> Have you talked to the NSSM project to see what they can tell you about 
> what their software is seeing from Solr?

It's seeing "stop pending": basically Solr takes too long to shut down, 
FVO "too long" = longer than NSSM's timeout. It's a bug in NSSM.

Dima


Re: SOLR Service down issue - NSSM.

Posted by Shawn Heisey <ap...@elyograg.org>.
On 4/25/22 09:36, Fiz N wrote:
> Hello Experts,
>
>   Currently we have installed SOLR 8.11.1 services through NSSM Service
> manager (version 2.24).
>
> NSSM Service manager is mainly used for managing windows services which
> includes automatically starting and stopping the SOLR Services.
>
> As a part of SOLR service maintenance, NSSM Service manager is currently
> scheduled to restart the SOLR Services every Saturday 6PM CST.
>
> But because of an unexpected issue, NSSM Service manager is unable to
> restart SOLR services. As a result when the restart command is issued the
> NSSM Service manager is stopping the SOLR services indefinitely.
>
>
>
> We are using the below command for restarting SOLR services
>
> *nssm.exe restart SOLR-8.11.1*
>
>
>
> We are facing the below issue
>
> *SOLR-8.11.1: Unexpected status SERVICE_STOP_PENDING in response to STOP
> control.*

Have you talked to the NSSM project to see what they can tell you about 
what their software is seeing from Solr?

If you try to manually run the commands that NSSM is using, what 
happens?  What exactly are those commands?  Any instructions you might 
have followed to set NSSM up for Solr are not an official product of 
this project.

Thanks,
Shawn