<pre>Thanks Bill for the answer !<br><br>In fact, my application is working well with webrick and also with a single mongrel instance lunched via<br>the command : mongrel_rails start<br><br>When I check what is the difference in the gem loaded in both cases (mongrel_rails start and
<br>mongrel_rails cluster::start) it seems that mongrel_rails cluster::start does not load all the gems that the first command is loading.<br>So I think it's related to the rails load environment, but I don't know how this environment is not loaded in the case of mongrel_rails cluster::start
<br>but loaded with mongrel_rails start.<br><br>Do you have any idea on why mongrel_rails cluster::start is not loading the environment ? I checked the path for the rails application ans it's ok <br>Is there any other alternative to force mongrel_rails cluster::start to load the rails environment ?
<br><br><br>Cheers,<br><br>Addame<br><br><br> <br>Two things I would check:<br><br>1) Make sure you that you are not missing any gems that your <br>application uses;<br>2) Check to see if your application will run under webrick
<br><br>Bill Siggelkow<br><a href="http://rubyforge.org/mailman/listinfo/mongrel-users">bsiggelkow at mac.com</a><br>AIM: siggelkowb<br>Home: <span onmouseup="SetCallButtonPressed(this, 0,0)" onmousedown="SetCallButtonPressed(this, 1,0)" onmouseover="SetCallButton(this, 1,0);skype_active=CheckCallButton(this);" onmouseout="SetCallButton(this, 0,0);HideSkypeMenu();" class="skype_tb_injection" id="__skype_highlight_id">
<span title="Change country code ..." onclick="javascript:if(1){doRunCMD(event, 'chdial','0');}else{doRunCMD(event, 'call','+17704578854');}event.preventBubble();return false;" onmouseout="SetCallButtonPart(this, 0);" onmouseover="SetCallButtonPart(this, 1);" class="skype_tb_injection_left" id="__skype_highlight_id_left">
<span style="background-image: url(chrome://skype_ff_toolbar_win/content/cb_normal_l.gif);" class="skype_tb_injection_left_img" id="__skype_highlight_id_left_adge"><img src="chrome://skype_ff_toolbar_win/content/cb_transparent_l.gif" style="height: 11px; width: 7px;" class="skype_tb_img_adge" height="11">
</span><span class="skype_tb_injection_left_img" id="__skype_highlight_id_left_img"><img style="width: 16px;" src="chrome://skype_ff_toolbar_win/content/famfamfam/us.gif" title="" class="skype_tb_img_flag" name="skype_tb_img_f0">
<img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1"><img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">
<img src="chrome://skype_ff_toolbar_win/content/arrow.gif" title="" class="skype_tb_img_arrow" name="skype_tb_img_a0"><img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">
<img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1"></span></span><img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">
<span title="Call this phone number in United States of America with Skype: +17704578854" onclick="javascript:doRunCMD(event, 'call','+17704578854');event.preventBubble();return false;" onmouseout="SetCallButtonPart(this, 0)" onmouseover="SetCallButtonPart(this, 1)" class="skype_tb_injection_right" id="__skype_highlight_id_right">
<span class="skype_tb_innerText" id="__skype_highlight_id_innerText"><img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">
<img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1"><img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">
<img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">770-457-8854</span><span style="background-image: url(chrome://skype_ff_toolbar_win/content/cb_normal_r.gif);" class="skype_tb_injection_left_img" id="__skype_highlight_id_right_adge">
<img src="chrome://skype_ff_toolbar_win/content/cb_transparent_r.gif" style="height: 11px; width: 19px;" class="skype_tb_img_adge" height="11"></span></span></span><br>Mobile: <span onmouseup="SetCallButtonPressed(this, 0,0)" onmousedown="SetCallButtonPressed(this, 1,0)" onmouseover="SetCallButton(this, 1,0);skype_active=CheckCallButton(this);" onmouseout="SetCallButton(this, 0,0);HideSkypeMenu();" class="skype_tb_injection" id="__skype_highlight_id">
<span title="Change country code ..." onclick="javascript:if(1){doRunCMD(event, 'chdial','1');}else{doRunCMD(event, 'call','+17703542584');}event.preventBubble();return false;" onmouseout="SetCallButtonPart(this, 0);" onmouseover="SetCallButtonPart(this, 1);" class="skype_tb_injection_left" id="__skype_highlight_id_left">
<span style="background-image: url(chrome://skype_ff_toolbar_win/content/cb_normal_l.gif);" class="skype_tb_injection_left_img" id="__skype_highlight_id_left_adge"><img src="chrome://skype_ff_toolbar_win/content/cb_transparent_l.gif" style="height: 11px; width: 7px;" class="skype_tb_img_adge" height="11">
</span><span style="background-image: url(chrome://skype_ff_toolbar_win/content/cb_normal_m.gif);" class="skype_tb_injection_left_img" id="__skype_highlight_id_left_img"><img style="margin: 0px 0px 2px; padding: 0px 1px 1px 0px; width: 16px; top: 0px; left: 1px;" src="chrome://skype_ff_toolbar_win/content/famfamfam/us.gif" title="" class="skype_tb_img_flag" name="skype_tb_img_f1">
<img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1"><img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">
<img src="chrome://skype_ff_toolbar_win/content/arrow.gif" title="" class="skype_tb_img_arrow" name="skype_tb_img_a1"><img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">
<img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1"></span></span><img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">
<span title="Call this phone number in United States of America with Skype: +17703542584" onclick="javascript:doRunCMD(event, 'call','+17703542584');event.preventBubble();return false;" onmouseout="SetCallButtonPart(this, 0)" onmouseover="SetCallButtonPart(this, 1)" class="skype_tb_injection_right" id="__skype_highlight_id_right">
<span style="background-image: url(chrome://skype_ff_toolbar_win/content/cb_normal_m.gif);" class="skype_tb_innerText" id="__skype_highlight_id_innerText"><img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">
<img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1"><img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">
<img src="chrome://skype_ff_toolbar_win/content/space.gif" style="margin: 0px; padding: 0px; height: 1px; width: 1px;" class="skype_tb_img_space" height="1" width="1">770-354-2584</span><span style="background-image: url(chrome://skype_ff_toolbar_win/content/cb_normal_r.gif);" class="skype_tb_injection_left_img" id="__skype_highlight_id_right_adge">
<img src="chrome://skype_ff_toolbar_win/content/cb_transparent_r.gif" style="height: 11px; width: 19px;" class="skype_tb_img_adge" height="11"></span></span></span><br><br><br>On Jul 16, 2007, at 12:31 AM, Mehdi Adda wrote:
<br><br>><i> Hi everybody,<br></i>><i><br></i>><i> I have installed mongrel and mongrel cluster in a new linux <br></i>><i> box .... at the end of the day I was able to lunch mongrel <br></i>><i> (mongrel_rails start -e production) and all is working fine with.
<br></i>><i><br></i>><i> However, when I tried to set a mongrel cluster the command <br></i>><i> mongrel_rails cluster::start get the following output :<br></i>><i><br></i>><i> starting port 8000<br></i>>
<i> starting port 8001<br></i>><i> starting port 8002<br></i>><i><br></i>><i> But when I lunched the browser to the application url and port 8000 <br></i>><i> for example, the mongrels seems not working.<br></i>
><i><br></i>><i> I looked at the log file and get for the first mongrel instance :<br></i>><i><br></i>><i> ** Daemonized, any open files are closed. Look at tmp/mongrel. <br></i>><i> 8000.pid and log/mongrel.8000.log for info.
<br></i>><i> ** Starting Mongrel listening at <a href="http://0.0.0.0:8000">0.0.0.0:8000</a><br></i>><i> ** Changing group to mongrel.<br></i>><i> ** Changing user to mongrel.<br></i>><i> ** Starting Rails with production environment...
<br></i>><i> ** Mounting Rails at /home/rails/projects/myapps...<br></i>><i> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in <br></i>><i> `gem_original_require': no such file to load -- /home/rails/
<br></i>><i> projects/myapps/config/environment (LoadError)<br></i>><i> from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: <br></i>><i> 30:in `require'<br></i>><i> from /usr/lib/ruby/gems/1.8/gems/mongrel-
1.0.1/lib/mongrel/ <br></i>><i> rails.rb:157:in `rails'<br></i>><i> from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ <br></i>><i> mongrel_rails:116:in `cloaker_'<br></i>><i> from /usr/lib/ruby/gems/1.8/gems/mongrel-
1.0.1/lib/mongrel/ <br></i>><i> configurator.rb:138:in `call'<br></i>><i> from /usr/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel/ <br></i>><i> configurator.rb:138:in `listener'<br></i>><i> from /usr/lib/ruby/gems/1.8/gems/mongrel-
1.0.1/bin/ <br></i>><i> mongrel_rails:98:in `cloaker_'<br></i>><i> from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ <br></i>><i> configurator.rb:51:in `call'<br></i>><i> from /usr/lib/ruby/gems/1.8/gems/mongrel-
1.0.1/lib/mongrel/ <br></i>><i> configurator.rb:51:in `initialize'<br></i>><i> from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ <br></i>><i> mongrel_rails:83:in `new'<br></i>><i> from /usr/lib/ruby/gems/1.8/gems/mongrel-
1.0.1/bin/ <br></i>><i> mongrel_rails:83:in `run'<br></i>><i> from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ <br></i>><i> command.rb:211:in `run'<br></i>><i> from /usr/lib/ruby/gems/1.8/gems/mongrel-
1.0.1/bin/ <br></i>><i> mongrel_rails:248<br></i>><i> from /usr/bin/mongrel_rails:16:in `load'<br></i>><i> from /usr/bin/mongrel_rails:16<br></i>><i><br></i>><i> It's the same thing for the two other instances.
<br></i>><i><br></i>><i> My mongrel cluster configuration is as follows :<br></i>><i><br></i>><i> user: mongrel<br></i>><i> group: mongrel<br></i>><i> cwd: /home/rails/projects/myapps<br></i>><i> log_file: log/mongrel.log
<br></i>><i> port: "8000"<br></i>><i> environment: production<br></i>><i> address: <a href="http://127.0.0.1">127.0.0.1</a><br></i>><i> pid_file: tmp/mongrel.pid<br></i>><i> servers: 3<br></i>>
<i><br></i>><i><br></i>><i> My server configuration is as follows :<br></i>><i><br></i>><i> Linux Centos 5<br></i>><i> ruby 1.8.6<br></i>><i> rubygems 0.9.4<br></i>><i> Rails 1.2.3<br></i>><i> Mongrel Web Server
1.0.1<br></i>><i> mongrel_cluster 1.0.2<br></i>><i> nginx version: nginx/0.5.27<br></i>><i><br></i>><i><br></i>><i> Can anyone give help me to get this out ?<br></i>><i><br></i>><i> Thanks a lot in advance
<br></i>><i><br></i>><i><br></i>><i> Addame<br></i>><i> _______________________________________________<br></i>><i> Mongrel-users mailing list<br></i>><i> <a href="http://rubyforge.org/mailman/listinfo/mongrel-users">
Mongrel-users at rubyforge.org</a>
</i></pre>