#67 ✓resolved
dereky

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

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Pages