thin and nginx troubleshooting

  • Posted May 5, 2014

Hello, I am working on a server and it is giving me quite the headache. My issue seems to be my thin gem. My nginx config gets a successful test however my thin restart -s 5 gives me some errors. Also if I just start the server like: bundle exec thin start -p 3000 my server gets killed right after I try and connect to the site. my errors for thin restart are:

/usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/daemonizing.rb:143:in `kill’: No such process (Errno::ESRCH)

from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/daemonizing.rb:143:in `force_kill'

from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/daemonizing.rb:138:in `rescue in send_signal'

from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/daemonizing.rb:122:in `send_signal'

from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/daemonizing.rb:111:in `kill'

from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/controllers/controller.rb:94:in `block in stop'

from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/controllers/controller.rb:135:in `tail_log'

from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/controllers/controller.rb:93:in `stop'

from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'

from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'

from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'

from /usr/local/bin/thin:23:in `load'

from /usr/local/bin/thin:23:in `<main>'

does anyone know how to clean this up or what is going on? thank you for any help!


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

That specific error seems to be from using “thin restart” when thin isn’t already running. The error: <br> <br><pre> <br>/usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/daemonizing.rb:143:in `kill’: No such process (Errno::ESRCH) <br></pre> <br> <br>is simply say that it can find a running thin process to kill. What is the error you see when running “thin start -p 3000” ?