# Status: 500 Internal Server Error when starting ruby applica

**URL:** <https://www.ruby-forum.com/t/status-500-internal-server-error-when-starting-ruby-applica/169052>\
**Category:** Rails\
**Created:** [May 28, 2009, 8:27pm UTC](https://www.ruby-forum.com/t/status-500-internal-server-error-when-starting-ruby-applica/169052 "2009-05-28T20:27:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![readrabbit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@readrabbit](https://www.ruby-forum.com/u/readrabbit)\
**Post date:** [May 28, 2009, 8:27pm UTC](https://www.ruby-forum.com/t/status-500-internal-server-error-when-starting-ruby-applica/169052/1 "2009-05-28T20:27:16Z")

</div>

I am trying to run an Ruby on Rails application developed internally.  
Any input would be greatly appreciatedâ€¦

When I start the server I get the following warning:

[shajizaidi@worf script]$ ./server  
=\> Booting WEBrick  
=\> Rails 2.3.2 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server  
[2009-05-28 18:29:41] INFO WEBrick 1.3.1  
[2009-05-28 18:29:41] INFO ruby 1.8.7 (2008-08-11) [i686-linux]  
[2009-05-28 18:29:46] WARN TCPServer Error: Address already in use -  
bind(2)  
[2009-05-28 18:29:46] INFO WEBrick::HTTPServer#start: pid=4587  
port=3000

I have checked that there is no other application using port 3000

With lsof | grep 3000

I have tried to start the WEBrick on a different port and get the same  
warning:

[shajizaidi@worf script]$ ./server -p 3001  
=\> Booting WEBrick  
=\> Rails 2.3.2 application starting on [http://0.0.0.0:3001](http://0.0.0.0:3001)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server  
[2009-05-28 19:12:34] INFO WEBrick 1.3.1  
[2009-05-28 19:12:34] INFO ruby 1.8.7 (2008-08-11) [i686-linux]  
[2009-05-28 19:12:39] WARN TCPServer Error: Address already in use -  
bind(2)  
[2009-05-28 19:12:39] INFO WEBrick::HTTPServer#start: pid=4805  
port=3001

When I try to access the application through the firefox browser I get  
the following error and trace:

SQL (0.2ms) SET NAMES ‘utf8’  
SQL (0.1ms) SET SQL\_AUTO\_IS\_NULL=0  
/!\ FAILSAFE /!\ Thu May 28 19:15:14 -0700 2009  
Status: 500 Internal Server Error  
no such file to load – lib/zmags/zmags  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependencies.rb:156:in  
`require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new\_constants\_in’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependencies.rb:156:in  
`require' /home/shajizaidi/e-mangue/app/controllers/application_controller.rb:5 /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:380:in `load\_without\_new\_constant\_marking’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependencies.rb:380:in  
`load_file' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new\_constants\_in’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependencies.rb:379:in  
`load_file' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:259:in `require\_or\_load’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependencies.rb:425:in  
`load_missing_constant' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const\_missing’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependencies.rb:92:in  
`const_missing' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:90:in `dispatch’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/dispatcher.rb:111:in  
`_call' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:82:in `initialize’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/query\_cache.rb:29:in  
`call' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/connection\_adapters/abstract/query\_cache.rb:34:in  
`cache' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:9:in `cache’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/query\_cache.rb:28:in  
`call' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/vendor/rack-1.0/rack/head.rb:9:in  
`call' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/methodoverride.rb:24:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/params\_parser.rb:15:in  
`call' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rewindable_input.rb:25:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/session/cookie\_store.rb:93:in  
`call' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/reloader.rb:9:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/failsafe.rb:11:in  
`call' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/lock.rb:11:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/vendor/rack-1.0/rack/lock.rb:11:in  
`synchronize' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/lock.rb:11:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/dispatcher.rb:106:in  
`call' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb:31:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/vendor/rack-1.0/rack/urlmap.rb:46:in  
`call' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/urlmap.rb:40:in `each’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/vendor/rack-1.0/rack/urlmap.rb:40:in  
`call' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/log_tailer.rb:17:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/vendor/rack-1.0/rack/content\_length.rb:13:in  
`call' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/handler/webrick.rb:46:in `service’  
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run’  
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start’  
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start’  
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start’  
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/vendor/rack-1.0/rack/handler/webrick.rb:13:in  
`run' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:111 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem\_original\_require’  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require’  
./server:3
