# Can't get mongrel to run on new installation

**URL:** <https://www.ruby-forum.com/t/cant-get-mongrel-to-run-on-new-installation/85542>\
**Category:** Rails\
**Created:** [February 14, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/cant-get-mongrel-to-run-on-new-installation/85542 "2007-02-14T13:56:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 14, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/cant-get-mongrel-to-run-on-new-installation/85542/1 "2007-02-14T13:56:22Z")

</div>

Just moved my homegrown GTD-app from one server to another.

I’m not completely familiar with the gem system yet but I noticed that  
“gem install rails -y” for instance didn’t pull in the mongrel gem. I  
had to add quite a few gems manually before I had anything working at  
all. Now I’m able to use the app starting it with “./script/server  
webrick” and it works. When I start it with “./script/server” it comes  
up but any requests generate the following error:

=\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)  
=\> Rails application starting on [http://0.0.0.0:3030](http://0.0.0.0:3030)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server  
Running Mongrel server in production mode at 0.0.0.0:3030  
Server ready.  
calling Dispatcher.dispatch uninitialized constant  
RailsHandler::Dispatcher  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active\_support/  
dependencies.rb:478:in `const_missing' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:75:in `process’  
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel\_rails:73:in  
`synchronize' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:73:in `process’  
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:371:in  
`process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:332:in `initialize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:331:in  
`timeout' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:331:in `initialize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in  
`initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in `new’  
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in  
`initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in `times’  
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in  
`initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:166:in `new’  
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel\_rails:166:in  
`start_mongrel' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:181:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel/command.rb:  
183:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:224 /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/ dependencies.rb:489:in `load’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active\_support/  
dependencies.rb:489:in `load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/ dependencies.rb:489:in `new\_constants\_in’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active\_support/  
dependencies.rb:489:in `load' /usr/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/commands/servers/ mongrel.rb:60 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem\_original\_require’  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/ dependencies.rb:496:in `require’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active\_support/  
dependencies.rb:496:in `new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/ dependencies.rb:496:in `require’  
/usr/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/commands/server.rb:39  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’  
./script/server:3

Could it be that I’m missing another gem? And if so, which one?

alex

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 14, 2007, 6:31pm UTC](https://www.ruby-forum.com/t/cant-get-mongrel-to-run-on-new-installation/85542/2 "2007-02-14T18:31:07Z")

</div>

Please check whether you stop your first WEBrick server.  
This error also come when 1 application is running on the particular  
port  
and again if you want to run another application the same port.

Jeniffer F.

> **[firstruby](https://firstruby.wordpress.com/)**
>
> Master ruby with us

On 2/14/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 15, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/cant-get-mongrel-to-run-on-new-installation/85542/3 "2007-02-15T12:20:52Z")

</div>

On Feb 14, 6:18 pm, “jeniffer f” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Please check whether you stop your first WEBrick server.  
> This error also come when 1 application is running on the particular port  
> and again if you want to run another application the same port.
> 
> Jeniffer F.[http://firstruby.wordpress.com](http://firstruby.wordpress.com)

Tried a couple of other ports. Same thing.

alex
