thin hangs when you restart when there is no PID
Reported by dereky | May 15th, 2008 @ 05:53 PM | in 0.8.2
This may be a bit of a strange case, but i'm using version 0.80 and if
i don't have a running thin process and try to do a restart, the
process currently hangs.
If I execute these commands, the terminal output 'Can't stop
process...' is the last thing I see, ie I never get the cursor back.
[dereky@thin]$ sudo thin stop -d -C /etc/thin/back_end.conf
Sending QUIT signal to process 2046 ...
[dereky@thin]$ sudo thin restart -d -C /etc/thin/back_end.conf
Can't stop process, no PID found in tmp/pids/thin.pid
I can see that this still running by in another window on the same
box..
ps -ef | grep thin
root 2060 1971 99 16:05 pts/0 00:02:43 ruby /usr/bin/thin
restart -d -C /etc/thin/back_end.conf
Has anyone else seen this? My fear is that if someone issues a
capistrano stop then a restart, or we do a restart on an idle server,
it won't start up cleanly which is what I really want.
Workaround pointed out:
As a workaround you can force thin to cluster mode by specify -s1
option or "servers: 1" in your config file.
Comments and changes to this ticket
-
macournoyer May 15th, 2008 @ 10:34 PM
- → State changed from new to resolved
(from [22c1acefbeeebd5693506b239768c8c776b707a5]) Fix hanging when restarting and no process is running in single server move [#67 state:resolved]
-
macournoyer May 15th, 2008 @ 10:35 PM
- → Milestone changed from Future to 0.8.2
fixed in http://thin.lighthouseapp.com/pr...
thx for reporting!
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
