Re: [Twisted-Python] Incorrect "Another twistd server is running..."

2009-07-22 Thread Simone Deponti
On 07/22/2009 02:16 AM, Jean-Paul Calderone wrote: > > This will fix the problem in one very unlikely case, but leave it broken in > the other somewhat more likely cases. The problem is that some *other* > process may have been started on your system and given the PID from the > pidfile. Your pro

Re: [Twisted-Python] Incorrect "Another twistd server is running..."

2009-07-21 Thread Jean-Paul Calderone
On Wed, 22 Jul 2009 00:41:20 +0200, Simone Deponti wrote: >On 07/21/2009 07:10 PM, Christopher Armstrong wrote: >>It's not necessarily a twistd process. It could be any process with >>the same pid. checkPID only checks to see if the pid exists, not that >>it's the PID of a twistd process. > >Disc

Re: [Twisted-Python] Incorrect "Another twistd server is running..."

2009-07-21 Thread Simone Deponti
On 07/21/2009 07:10 PM, Christopher Armstrong wrote: It's not necessarily a twistd process. It could be any process with the same pid. checkPID only checks to see if the pid exists, not that it's the PID of a twistd process. Disclaimer is, I might be extremely naive here. I have to admit I wasn

Re: [Twisted-Python] Incorrect "Another twistd server is running..."

2009-07-21 Thread Christopher Armstrong
On Tue, Jul 21, 2009 at 1:02 PM, Simone Deponti wrote: > On 07/21/2009 04:06 PM, Jean-Paul Calderone wrote: >> This is probably due to.  It's >> not clear what the best solution is yet. > > Hi all, > > In the bug report I see: > >  > after an unclean shutd

Re: [Twisted-Python] Incorrect "Another twistd server is running..."

2009-07-21 Thread Simone Deponti
On 07/21/2009 04:06 PM, Jean-Paul Calderone wrote: > This is probably due to. It's > not clear what the best solution is yet. Hi all, In the bug report I see: > after an unclean shutdown by a previous twistd, a new process is > started and is allocat

Re: [Twisted-Python] Incorrect "Another twistd server is running..."

2009-07-21 Thread Jean-Paul Calderone
On Tue, 21 Jul 2009 19:33:26 +0800, Peter Cai wrote: >When my server reboot after an unexpected power cut, >supervisord tried to start a twisted app after an unexpected power cut, >but it fails because "Another twistd server is running, PID 4607" >4607 is the PID of the twisted app before power cu

[Twisted-Python] Incorrect "Another twistd server is running..."

2009-07-21 Thread Peter Cai
When my server reboot after an unexpected power cut, supervisord tried to start a twisted app after an unexpected power cut, but it fails because "Another twistd server is running, PID 4607" 4607 is the PID of the twisted app before power cut. After I stopped and restart supervisord, everything is