I'm trying to get process events working on my EC2 Ubuntu instance. I
have it working with Postgres but when I kill Nginx God seg faults in
the event_handler.rb. I have also noticed that God will also crash
every so often when checking to see if Nginx is still running.
I know that events are working properly because when I run "sudo god
check" I get:
---------
using event system: netlink
starting event handler
forking off new process
forked process with pid = 8378
killing process
[ok] process exit event received
----------
Here is everything that gets dumped when it crashes.
---------------------
I [2010-06-02 01:06:23] INFO: Loading /etc/god/master.conf
I [2010-06-02 01:06:23] INFO: Syslog enabled.
I [2010-06-02 01:06:23] INFO: Using pid file directory: /var/run/god
I [2010-06-02 01:06:24] INFO: Socket already in use
I [2010-06-02 01:06:24] INFO: Socket is stale, reopening
I [2010-06-02 01:06:24] INFO: Started on drbunix:///tmp/god.17165.sock
I [2010-06-02 01:06:24] INFO: nginx move 'unmonitored' to 'init'
I [2010-06-02 01:06:24] INFO: nginx moved 'unmonitored' to 'init'
I [2010-06-02 01:06:24] INFO: postgres move 'unmonitored' to 'init'
I [2010-06-02 01:06:24] INFO: postgres moved 'unmonitored' to 'init'
I [2010-06-02 01:06:24] INFO: postgres [trigger] process is running
(ProcessRunning)
I [2010-06-02 01:06:24] INFO: postgres move 'init' to 'up'
I [2010-06-02 01:06:24] INFO: postgres registered 'proc_exit' event
for pid 7988
I [2010-06-02 01:06:24] INFO: postgres moved 'init' to 'up'
I [2010-06-02 01:06:24] INFO: nginx [trigger] process is running
(ProcessRunning)
I [2010-06-02 01:06:24] INFO: nginx move 'init' to 'up'
I [2010-06-02 01:06:24] INFO: nginx registered 'proc_exit' event for
pid 8106
I [2010-06-02 01:06:24] INFO: nginx moved 'init' to 'up'
I [2010-06-02 01:06:24] INFO: nginx [ok] http response nominal [200]
(HttpResponseCode)
I [2010-06-02 01:06:26] INFO: postgres [trigger] process 7988 exited
{:pid=>7988, :exit_code=>0, :exit_signal=>17, :thread_group_id=>7988}
(ProcessExits)
I [2010-06-02 01:06:26] INFO: postgres move 'up' to 'start'
I [2010-06-02 01:06:26] INFO: postgres deregistered 'proc_exit' event
for pid 7988
I [2010-06-02 01:06:26] INFO: postgres before_start: deleted pid file
(CleanPidFile)
I [2010-06-02 01:06:26] INFO: postgres start: sudo /etc/init.d/
postgresql-8.4 start
I [2010-06-02 01:06:50] INFO: postgres moved 'up' to 'start'
I [2010-06-02 01:06:50] INFO: postgres [trigger] process is running
(ProcessRunning)
I [2010-06-02 01:06:50] INFO: postgres move 'start' to 'up'
I [2010-06-02 01:06:50] INFO: postgres registered 'proc_exit' event
for pid 8343
I [2010-06-02 01:06:50] INFO: postgres moved 'start' to 'up'
I [2010-06-02 01:06:54] INFO: nginx [ok] http response nominal [200,
200] (HttpResponseCode)
I [2010-06-02 01:07:24] INFO: nginx [ok] http response nominal [200,
200, 200] (HttpResponseCode)
/usr/local/lib/ruby/gems/1.9.1/gems/god-0.10.1/lib/god/
event_handler.rb:62: [BUG] Segmentation fault
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]
-- control frame ----------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :handle_events
c:0006 p:0012 s:0015 b:0015 l:000cac d:000014 BLOCK /usr/local/lib/
ruby/gems/1.9.1/gems/god-0.10.1/lib/god/event_handler.rb:62
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :loop
c:0003 p:0009 s:0006 b:0006 l:000cac d:000005 BLOCK /usr/local/lib/
ruby/gems/1.9.1/gems/god-0.10.1/lib/god/event_handler.rb:60
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP
---------------------------
-- Ruby level backtrace
information-----------------------------------------
/usr/local/lib/ruby/gems/1.9.1/gems/god-0.10.1/lib/god/
event_handler.rb:62:in `handle_events'
/usr/local/lib/ruby/gems/1.9.1/gems/god-0.10.1/lib/god/
event_handler.rb:62:in `block (2 levels) in start'
/usr/local/lib/ruby/gems/1.9.1/gems/god-0.10.1/lib/god/
event_handler.rb:60:in `loop'
/usr/local/lib/ruby/gems/1.9.1/gems/god-0.10.1/lib/god/
event_handler.rb:60:in `block in start'
-- C level backtrace information
-------------------------------------------
0x81239d7 /usr/local/bin/ruby(rb_vm_bugreport+0x47) [0x81239d7]
0x8150343 /usr/local/bin/ruby [0x8150343]
0x81503b8 /usr/local/bin/ruby(rb_bug+0x28) [0x81503b8]
0x80d33a8 /usr/local/bin/ruby [0x80d33a8]
0xb775240c [0xb775240c]
0xb7445c85 /usr/local/lib/ruby/gems/1.9.1/gems/god-0.10.1/ext/god/
netlink_handler_ext.so(nlh_handle_events+0x2b5) [0xb7445c85]
0x8113770 /usr/local/bin/ruby [0x8113770]
0x811e8cd /usr/local/bin/ruby [0x811e8cd]
0x811854d /usr/local/bin/ruby [0x811854d]
0x811b3a6 /usr/local/bin/ruby [0x811b3a6]
0x811c9f6 /usr/local/bin/ruby [0x811c9f6]
0x805cdd1 /usr/local/bin/ruby(rb_rescue2+0x141) [0x805cdd1]
0x8114d7b /usr/local/bin/ruby [0x8114d7b]
0x8113770 /usr/local/bin/ruby [0x8113770]
0x811e8cd /usr/local/bin/ruby [0x811e8cd]
0x811854d /usr/local/bin/ruby [0x811854d]
0x811b3a6 /usr/local/bin/ruby [0x811b3a6]
0x811dbc0 /usr/local/bin/ruby(rb_vm_invoke_proc+0x260) [0x811dbc0]
0x8127dcc /usr/local/bin/ruby [0x8127dcc]
0x8127ee1 /usr/local/bin/ruby [0x8127ee1]
0xb7736815 /lib/tls/i686/nosegneg/libpthread.so.0 [0xb7736815]
0xb7651f6e /lib/tls/i686/nosegneg/libc.so.6(clone+0x5e) [0xb7651f6e]
[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Aborted
--
You received this message because you are subscribed to the Google Groups
"god.rb" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/god-rb?hl=en.