[Mongrel] Frustrating Error

Michael D'Auria michael.dauria at gmail.com
Wed Jan 3 16:38:49 EST 2007


Because you have Mongrel set up to create 3 instances from port 3000 not
8000 as your Apache config is suggesting.

.: Michael :.


On 1/3/07, Jim Douglas <jdz99 at hotmail.com> wrote:
>
> >From: "Luis Lavena" <luislavena at gmail.com>
> >Reply-To: mongrel-users at rubyforge.org
> >To: mongrel-users at rubyforge.org
> >Subject: Re: [Mongrel] Frustrating Error
> >Date: Wed, 3 Jan 2007 17:24:38 -0300
> >
> >On 1/3/07, Jim Douglas <jdz99 at hotmail.com> wrote:
> > > I am followint this article,
> > >
> > >
> >
> http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/
> > >
> > >
> > > ...but I keep getting this error in the log...not sure what to try
> >next...
> > >
> >
> >Errno::EADDRINUSE refer to the address+port combination being used by
> >OTHER application (could be another mongrel already daemonized on that
> >port or webrick).
> >
> >you could check using ps:
> >
> >$ sudo ps ax | grep mongrel
> >
> >And if you get more than one grep mongrel process running, that means
> >you must kill them first.
> >
> >
> > > ** Daemonized, any open files are closed.  Look at
> log/mongrel.8000.pid
> >and
> > > log/mongrel.log for info.
> > > ** Starting Mongrel listening at 127.0.0.1:8000
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/tcphack.rb:12:in
> > > `initialize_without_backlog': Address already in use - bind(2)
> > > (Errno::EADDRINUSE)
> > >         from
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/tcphack.rb:12:in
> > > `initialize'
> > >         from
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:560:in `new'
> > >         from
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:560:in
> > > `initialize'
> > >         from
> > >
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0
> /lib/mongrel/configurator.rb:128:in
> > > `new'
> > >         from
> > >
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0
> /lib/mongrel/configurator.rb:128:in
> > > `listener'
> > >         from
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:98:in
> > > `cloaker_'
> > >         from
> > >
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:51:in
> > > `call'
> > >         from
> > >
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:51:in
> > > `initialize'
> > >         from
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:83:in `new'
> > >         from
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:83:in `run'
> > >         from
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/command.rb:211:in
> > > `run'
> > >         from
> >/usr/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:243
> > >         from /usr/bin/mongrel_rails:18:in `load'
> > >         from /usr/bin/mongrel_rails:18
> > >
> > > Thanks,
> > > Jim
> > >
> > > _________________________________________________________________
> > > The MSN Entertainment Guide to Golden Globes is here.  Get all the
> >scoop.
> > > http://tv.msn.com/tv/globes2007/
> > >
> > > _______________________________________________
> > > Mongrel-users mailing list
> > > Mongrel-users at rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/mongrel-users
> > >
> >
> >
> >--
> >Luis Lavena
> >Multimedia systems
> >-
> >Leaders are made, they are not born. They are made by hard effort,
> >which is the price which all of us must pay to achieve any goal that
> >is worthwhile.
> >Vince Lombardi
> >_______________________________________________
> >Mongrel-users mailing list
> >Mongrel-users at rubyforge.org
> >http://rubyforge.org/mailman/listinfo/mongrel-users
>
>
> After killing all mongrels and re-starting w/o any errors in the log I
> cannot browse www.mysite.com:8000, only http://localhost:8000 works on the
> server..
>
> ...this is my comgrel.yml
>
> cwd: /usr/local/apache2/sites/mysite
> port: "3000"
> environment: production
> ---address: 127.0.0.1
> pid_file: log/mongrel.pid
> servers: 3
>
> It seems like mongrel isn't passing off to apache, but why?
>
> This is my proxy_cluster.conf,
> <Proxy balancer://mongrel_cluster>
> BalancerMember http://127.0.0.1:8000
> BalancerMember http://127.0.0.1:8001
> BalancerMember http://127.0.0.1:8002
> </Proxy>
>
> This is my mysite.conf,
>
> <VirtualHost *:80>
> ServerName www.mysite.com
>
> DocumentRoot /usr/local/apache2/sites/mysite
>
> ServerAdmin p at yahoo.com
> ServerAlias mysite.com *.mysite.com
>
> <Directory "/usr/local/apache2/sites/mysite">
>    Options FollowSymLinks
>    AllowOverride None
>    Order allow,deny
>    Allow from all
> </Directory>
>
>    Include /usr/local/apache2/conf/extra/mongrel.common
>
>    ErrorLog /usr/local/apache2/logs/mysite_errors_log
>    CustomLog /usr/local/apache2/logs/mysite_log combined
> </VirtualHost>
>
>
> Jim
>
> _________________________________________________________________
> Your Hotmail address already works to sign into Windows Live Messenger!
> Get
> it now
>
> http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://get.live.com/messenger/overview
>
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070103/3c25e0df/attachment-0001.html 


More information about the Mongrel-users mailing list