ERROR -- prax: kill: No such process
Closed this issue · 2 comments
graywh commented
I'm using 0.7.0-1 (2017-04-07) on Ubuntu 16.04 and get this error with a Rails 3.1 application on Ruby 1.8.7. After touching tmp/restart.txt, Prax has problems killing application processes and even itself.
E, [2017-12-21 11:05:15 -0600 #20821] ERROR -- prax: kill: No such process
0x46e44d: ??? at /vagrant/src/prax/handler.cr 50:11
0x41b828: ??? at /opt/crystal/src/fiber.cr 114:3
0x0: ??? at ??
% ps ux | grep "rackup\|ruby\|prax"
graywh 13664 0.0 0.5 158532 71956 pts/19 Ss+ 09:40 0:04 /usr/local/rbenv/versions/1.8.7-p358/bin/ruby script/rails c
graywh 20821 0.0 0.0 142972 8996 pts/21 SNl 10:59 0:00 /opt/prax/bin/prax-binary
graywh 20865 1.2 1.2 238000 153860 pts/21 SN 10:59 0:04 /usr/local/rbenv/versions/1.8.7-p358/bin/rackup
graywh 21485 0.0 0.0 14224 1096 pts/21 R+ 11:05 0:00 grep --color=auto --line-number --binary-files=without-match -i rackup\|ruby\|prax
% prax stop
Unhandled exception in spawn:
Closed stream (IO::Error)
0x46c03d: ??? at /opt/crystal/src/socket.cr 192:16
0x41b828: ??? at /opt/crystal/src/fiber.cr 114:3
0x0: ??? at ??
Unhandled exception in spawn:
Closed stream (IO::Error)
0x46c03d: ??? at /opt/crystal/src/socket.cr 192:16
0x41b828: ??? at /opt/crystal/src/fiber.cr 114:3
0x0: ??? at ??
I, [2017-12-21 11:08:31 -0600 #20821] INFO -- prax: killing application: [REDACTED]
kill: No such process (Errno)
0x44e9c3: ??? at /vagrant/src/prax/application.cr 93:9
0x44da03: ??? at /vagrant/src/prax.cr 29:25
0x464fe6: ??? at /opt/crystal/src/string/builder.cr 87:5
0x42d474: ??? at /opt/crystal/src/event/signal_handler.cr 48:7
0x41b828: ??? at /opt/crystal/src/fiber.cr 114:3
0x0: ??? at ??
FATAL ERROR: uncaught signal TERM exception, exiting
[1] + 20821 exit 1 prax start
% ps ux | grep "rackup\|ruby\|prax"
graywh 13664 0.0 0.5 158532 71956 pts/19 Ss+ 09:40 0:04 /usr/local/rbenv/versions/1.8.7-p358/bin/ruby script/rails c
graywh 20865 0.8 1.2 238000 153860 pts/21 SN 10:59 0:04 /usr/local/rbenv/versions/1.8.7-p358/bin/rackup
graywh 21557 0.0 0.0 14224 1016 pts/21 S+ 11:08 0:00 grep --color=auto --line-number --binary-files=without-match rackup\|ruby\|pra
% prax start
I, [2017-12-21 11:09:00 -0600 #21569] INFO -- prax: binding to [::]:20559
bind: Address already in use (Errno)
0x46a491: ??? at /vagrant/src/prax/server.cr 35:7
0x4132d3: ??? at /vagrant/src/prax.cr 113:3
0x42edfb: main at /opt/crystal/src/main.cr 12:15
0x7f0a178a7830: __libc_start_main at ??
0x40edf9: ??? at ??
0x0: ??? at ??
ysbaddaden commented
I'm sorry, the ruby version of Prax is no longer supported. Please have a look to the Crystal version:
https://github.com/ysbaddaden/prax.cr
graywh commented
Sorry, put this on the wrong project.