Welcome Guest | Login

How do I stop my application?

When I run script/server I get an error -

"/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/tcphack.rb:12:in `initialize_without_backlog': Address already in use - bind(2) (Errno::EADDRINUSE)
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/tcphack.rb:12:in `initialize'
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:93:in `new'
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:93:in `initialize'
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:139:in `new'
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:139:in `listener'
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:99:in `cloaker_'
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:50:in `call'
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:50:in `initialize'
        ... 14 levels...
       from /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
       from script/server:3"

I tried killall -u <username> dispatch.fcgi but I still get the issue. My site is live as I can still access it, but I want to stop it as I am in development.
Can anyone help?
Thanks.

2008-04-26 12:26 AM

The issue has been fixed. Please check now.

2008-04-26 03:41 AM

I am still unable to stop my app.

2008-04-26 08:58 PM

Hi Davidp,

I tried the killall -u <username> dispatch.fcgi command from the console and it indeed killed your FCGI process. Please check again.



2008-04-26 09:37 PM

I saw that I could kill the process too. But my site is still running. I thought killing the dispatch process would bring the site down, but I can access it from several PCs. Am I missing something?
Thanks.

2008-04-27 11:18 AM

Sir, each time you access the URL (related with your Rails application) on your web browser it triggers a new fcgi process.

This is the reason why you are seeing fcgi processes running even after killing them (ones that were previously running) from your ssh console.

2008-04-27 11:56 AM

Regards,
Rahul
OK, thanks. I wasn't aware of that.

2008-04-27 08:53 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.