Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thin 1.2.8 won't stop in Ruby 1.8.7-p334 #39

Closed
danielrjackson opened this issue Mar 1, 2011 · 3 comments
Closed

Thin 1.2.8 won't stop in Ruby 1.8.7-p334 #39

danielrjackson opened this issue Mar 1, 2011 · 3 comments

Comments

@danielrjackson
Copy link

I'm experiencing an issue with thin stopping. It will only die to a kill -9 or after time out on "thin stop". Regular "kill PID" doesn't work, and ctrl-c when in non-daemon mode leaves it "Stopping..." forever. Repeated ctrl-c returns the same "Stopping..." response without ever dying.

Using Ruby 1.8.7-p334, Rails 2.3.10, and Thin 1.2.8 on Fedora 14.

Thanks.

@imanel
Copy link

imanel commented Mar 1, 2011

Could not reproduce(OS X 10.6 and Ubuntu 10.10, both Rails and not-Rails project). Are you using some config file or running just
thin -R config.ru start
Try both and eventually provide config file. This could be app specific(are you forking some process inside?) Could you try to run example Thin config and test if it shows again?
Example app:
app = proc do |env|
[
200, # Status code
{ # Response headers
'Content-Type' => 'text/html',
'Content-Length' => '2',
},
['hi'] # Response body
]
end

run app

@imanel
Copy link

imanel commented Mar 1, 2011

Also - it would be useful to know which version of EventMachine you are running(this could be also problem)

@danielrjackson
Copy link
Author

I'm sorry to have bothered you, the issue was with a hanging 'at_exit' catch in an initializer in Rails. Thank you for the assistance, it lead me in the right direction.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants