[Nuxeo-tickets] Re: [Nuxeo Repository] #1857: After a wild machine shutdown NXLucene doesn't restart at the next machine reboot

Nuxeo Repository trac at nuxeo.com
Fri Apr 25 09:53:36 CEST 2008


#1857: After a wild machine shutdown NXLucene doesn't restart at the next machine
reboot
----------------------+-----------------------------------------------------
 Reporter:  madarche  |        Owner:  madarche 
     Type:  defect    |       Status:  new      
 Priority:  P1        |    Milestone:  CPS 3.4.7
Component:  Lucene    |      Version:  TRUNK    
 Severity:  normal    |   Resolution:           
 Keywords:            |  
----------------------+-----------------------------------------------------
Old description:

> If the server on which NXLucene is running suffers a wild shutdown,
> NXLucene won't start again at the next machine reboot when asked
> "nxlucened start".
>
> This is tedious because it requires that an admin logs into the machine
> and does :
> {{{
> $ bin/nxlucened stop
> $ bin/nxlucened start
> }}}

New description:

 If the server on which NXLucene is running suffers a wild shutdown,
 NXLucene won't start again at the next machine reboot when asked
 "nxlucened start".

 This is tedious because it requires that an admin logs into the machine
 and does :
 {{{
 $ bin/nxlucened stop
 $ bin/nxlucened start
 }}}

 This is a pure integration problem and only requires shell skills to fix.

Comment (by madarche):

 Replying to [comment:3 rspivak]:
 > Is there any log message indicating the reason of failure to start?

 There isn't any log message. It's a pure integration problem and only
 requires shell skills, I should have written that (and I'm updating the
 description of the ticket accordingly).

 The problem comes from the way bin/nxlucened is written. It refuses to
 start if the PID file hasn't been removed before. And when a wild shutdown
 happens, the stop function is never called and the PID file isn't removed,
 which makes it impossible for NXLucene to restart at the next reboot.

 To reproduce:

   1. start nxlucene
   2. kill the nxlucene process
   3. try to start nxlucene, it won't

-- 
Ticket URL: <https://svn.nuxeo.org/trac/pub/ticket/1857#comment:4>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.