[Mongrel] Frustrating Error

Rogelio J. Samour rogelio.samour at gmail.com
Thu Jan 4 13:03:49 EST 2007


Jim, 

follow this:
http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you

cheers,

-rjs-

On Thu, 2007-01-04 at 17:47 +0000, Jim Douglas wrote:
> >From: "Michael D'Auria" <michael.dauria 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:56:18 -0500
> >
> >>I still have to specify www.mysite.com:8000 to see the RoR app?
> >>How can I get it to come up without the "8000"?
> >>
> >>Thanks,
> >>Jim
> >
> >
> >Something is up with your apache config, i personally don't use Apache, try
> >following this guide: http://mongrel.rubyforge.org/docs/apache.html.
> >
> >Make sure you understand why you are using this configuration, like why are
> >you proxying requests and the like.  It's important to understand what you
> >have going on rather than just copying and pasting everything.
> >
> >.: Michael :.
> >
> >On 1/3/07, Jim Douglas <jdz99 at hotmail.com> wrote:
> >>
> >> >From: "Michael D'Auria" <michael.dauria 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:38:49 -0500
> >> >
> >> >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: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
> >> >>
> >>
> >>
> >> >_______________________________________________
> >> >Mongrel-users mailing list
> >> >Mongrel-users at rubyforge.org
> >> >http://rubyforge.org/mailman/listinfo/mongrel-users
> >>
> >>
> >>I still have to specify www.mysite.com:8000 to see the RoR app?
> >>How can I get it to come up without the "8000"?
> >>
> >>Thanks,
> >>Jim
> >>
> >>_________________________________________________________________
> >>Dave vs. Carl: The Insignificant Championship Series. Who will win?
> >>
> >>http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://davevscarl.spaces.live.com/?icid=T001MSN38C07001
> >>
> >>
> >>
> >>_______________________________________________
> >>Mongrel-users mailing list
> >>Mongrel-users at rubyforge.org
> >>http://rubyforge.org/mailman/listinfo/mongrel-users
> >>
> >>
> 
> 
> >_______________________________________________
> >Mongrel-users mailing list
> >Mongrel-users at rubyforge.org
> >http://rubyforge.org/mailman/listinfo/mongrel-users
> 
> 
> Thanks for the link, it's been updated since I last visited....all I had to 
> do was add the first sample config from Martins in the 'Success Stories' 
> section and I'm up and running...
> 
> I would really like to know how to integrate multiple instances of mongrel 
> at this point...how can I modify this section
> 
>        # Pass other requests to mongrel instance
>        ProxyPass / http://127.0.0.1:8200/
>        ProxyPassReverse / http://127.0.0.1:8200/
> 
> ...so that it can utilize a mongrel cluster?
> 
> Jim
> 
> _________________________________________________________________
> Fixing up the home? Live Search can help 
> http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG
> 
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users



More information about the Mongrel-users mailing list