thin and nginx troubleshooting

May 5, 2014 1.4k views
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 `' from /usr/local/bin/thin:23:in `load' from /usr/local/bin/thin:23:in `' does anyone know how to clean this up or what is going on? thank you for any help!
1 Answer
That specific error seems to be from using "thin restart" when thin isn't already running. The error:

/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)

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" ?
Have another answer? Share your knowledge.