god
god copied to clipboard
Duplicate processes starting
I have a loop that fires up 100 watches, which worked fine under:
ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.02
god version: Version 0.12.1
but on
ruby 1.9.3p392 (2013-02-22) [x86_64-linux]
god version: Version 0.13.2
I have an issue where out of the 100 processes I will end up with 2-5 duplicate processes running. I thought it had to do with god checking if the process was up before the pid file was written, so I set a 20 second grace period. That's when I discovered something interesting.
The PID file for the watched process looked like this before the duplicate started up (time, filename, pid_file contents):
Fri Mar 22 22:26:27 UTC 2013 /var/run/god/process36.pid 322993229932299322993229932299
Then after the duplicate process started up it looked like this:
Fri Mar 22 22:26:28 UTC 2013 /var/run/god/process36.pid 3624
and sure enough now there were two process36's running, one with pid 32299 and one with pid 3624.
I restarted god from scratch a few times and checked this to verify, and in every case that there was a duplicate process it had a corresponding PID file with multiple of the same PID written in it.
This is preventing me from updating God to the latest version so I'd love any help I can get.
I finally narrowed it down to a ruby bug, which sent to the mailing this and is at http://bugs.ruby-lang.org/issues/8185
This commit works around the issue: https://github.com/expectedbehavior/god/commit/8897815f16a26432596c435f0f3bd444725cf8e3
I have the same issue. Any progress?