Starting Mongrel failes on Mac OS 10.6

Hi at all,

after spending some hours on installing ruby on rails, I passed the
point to start my server. But mongrel failed to start with the
following message:

=> Booting Mongrel
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/
mongrel.rb:10:in initialize': wrong number of arguments (5 for 4) (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/ mongrel.rb:10:innew’
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/
mongrel.rb:10:in run' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/ server.rb:111 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:ingem_original_require’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require’
from script/server:3

Has anyone out there an solution for my problem?

Regards,
Gregor

On Tue, Jun 1, 2010 at 1:19 PM, Gregor [email protected]
wrote:

after spending some hours on installing ruby on rails, I passed the
point to start my server.

“hours”? That doesn’t sound promising :slight_smile:

But mongrel failed to start with the following message:

/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/
mongrel.rb:10:in `initialize’: wrong number of arguments (5 for 4)
(ArgumentError)

  1. What command are you using to start it?
  2. Does webrick start?
  3. What does gem list --local produce?


Hassan S. ------------------------ [email protected]
twitter: @hassan

On 1 Jun., 23:50, Hassan S. [email protected] wrote:

  1. What command are you using to start it?
  2. Does webrick start?
  3. What does gem list --local produce?


Hassan S. ------------------------ [email protected]
twitter: @hassan

Sorry for that, but first I gone the wrong way and after some hours I
noticed how easy it is to install rails… I use the command “ruby
script/server”. How do I see if webrick starts?

Output of “gem list --local”:

actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8, 2.3.4)
activeresource (2.3.8)
activesupport (2.3.8, 2.3.4, 2.2.3)
builder (2.1.2)
camping (1.5)
cgi_multipart_eof_fix (2.1)
columnize (0.3.1)
daemons (1.0.7)
fastthread (1.0)
gem_plugin (0.2.2)
markaby (0.5)
metaid (1.0)
mongrel (1.0.1)
rack (1.1.0)
rails (2.3.8)
rake (0.8.7, 0.7.3)
sources (0.0.1)
sqlite3-ruby (1.2.1)
test-spec (0.10.0)

Regard,
Gregor

On Tue, Jun 1, 2010 at 4:38 PM, Gregor [email protected]
wrote:

Sorry for that, but first I gone the wrong way and after some hours I
noticed how easy it is to install rails… I use the command “ruby
script/server”. How do I see if webrick starts?

prompt% script/server webrick

Output of “gem list --local”:

actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8, 2.3.4)
activeresource (2.3.8)
activesupport (2.3.8, 2.3.4, 2.2.3)

Whatever “wrong way” you started out with, you might want to just
sudo gem uninstall rails completely, and then re-install it.

Did you create your test project before or after you installed the 2.3.8
version of Rails?


Hassan S. ------------------------ [email protected]
twitter: @hassan

On 2 Jun., 02:10, Hassan S. [email protected] wrote:

actionpack (2.3.8)

Hassan S. ------------------------ [email protected]
twitter: @hassan

Yeah, I re-installed rails and it doesn’t work at all. The project was
created after installing version 2.3.8 and it’s a riddle to me, why
there are different versions of some packages.

Webrick:

=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-06-02 03:52:47] INFO WEBrick 1.3.1
[2010-06-02 03:52:47] INFO ruby 1.8.6 (2007-03-13) [universal-
darwin8.0]
[2010-06-02 03:52:47] INFO WEBrick::HTTPServer#start: pid=85268
port=3000

Regards,
Gregor

Gregor <[email protected]…> writes:

version of Rails?


Hassan S. ------------------------ hassan.schroe…@…
twitter: @hassan

Yeah, I re-installed rails and it doesn’t work at all. The project was
created after installing version 2.3.8 and it’s a riddle to me, why
there are different versions of some packages.

I am having the same problem on on Ubuntu. Did you find a solution?

script/server

fails with

=> Booting Mongrel
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:10:in
`initialize’: wrong number of arguments (5 for 4) (ArgumentError)

While script/server webrick works fine.

cheers,
Morten

Morten Lindow <[email protected]…> writes:

I am having the same problem on on Ubuntu. Did you find a solution?

I had the same issue recently and all Google turned up were numerous
different web sites mirroring this same thread. Thus, for the sake of
archives, here’s what fixed it for me, even if it might be too late for
the original poster.

This is another one of those “an API change broke other software so you
have a cascade of enforced upgrades” issues. Mongrel and Rack fell out
this time. Rack 1.1.0 (for recent releases of the Rails 2.3.x series)
seems incompatible with comparatively old Mongrel releases. Mongrel’s in
a gem too and was at version 1.0.1 on my machine. Updating it to the
time-of-writing latest version 1.1.5 fixed the problem, though it pulled
in a few other gem updates in passing.


TTFN, Andrew H.
Find some electronic music at: Photos, wallpaper, software and more:
http://pond.org.uk/music.html http://pond.org.uk/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs