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... ** 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/
Based on the error it looks like you probably have another server running on that port--my guess is mongrel but it could also be something else running there too. Kyle Kochis 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... > > ** 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070103/e6a705dc/attachment.html
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
issue an: "lsof | grep 8000" which lists all open files, which includes all open ports so you can see the process that is causing you grief. Let us know what you find. .: Michael :. On 1/3/07, Kyle Kochis <kylekochis at gmail.com> wrote:> > Based on the error it looks like you probably have another server running > on that port--my guess is mongrel but it could also be something else > running there too. > Kyle Kochis > > 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... > > > > ** 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 > > > > > _______________________________________________ > 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/b4cf032d/attachment.html
>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-usersAfter 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
Change: port: "3000" to port: "8000" You need to match that up to the ports used in the balancer config 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 >
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
>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 2007 16: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 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 >>>_______________________________________________ >Mongrel-users mailing list >Mongrel-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/mongrel-usersI 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
On 1/3/07, Jim Douglas <jdz99 at hotmail.com> wrote: <snip>> > 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"? >You need a traditional webserver in from of mongrel, like apache, lighttpd or nginx. Configuration or more details about this are beyond the purpose of this list (also, escapes my knowledge of *nix systems). I''ll suggest you try some guide/howto about getting your webserver running THEN adding mongrel or mongrel_cluster to the equation (baby steps, one step at time). -- 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
> 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, > JimSomething 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 2007 16: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 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 > >> > > > >_______________________________________________ > >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 > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070103/62f7eef4/attachment-0001.html
>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-usersThanks 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
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
On 1/4/07, Jim Douglas <jdz99 at hotmail.com> wrote:> > 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...Good, glad you liked those, i have a few more I need to get around to posting.... ;-)> > 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?Short answer: you can''t. proxypass simply just proxies everything from the one port apache httpd is running (80) to one specified in the proxypass rule -- in this case, 8200 - so even if you were running a mongrel cluster on 8200, 8201 and 8203, it would only proxy to the first one, on 8200. Hence the reason we use mod_proxy_balancer with allows you to proxy requests from on port (80) to multiple -> 8200, 8201, 8202, etc. in an intelligent manner (based on requests coming in). -- Charles Brian Quinn self-promotion: www.seebq.com highgroove studios: www.highgroove.com slingshot hosting: www.slingshothosting.com Ruby on Rails Bootcamp at the Big Nerd Ranch Intensive Ruby on Rails Training: http://www.bignerdranch.com/classes/ruby.shtml