<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">sorry that log is old.. <div><br></div><div>on nginx log it mentioned that passenger is up.. </div><div><br></div><div>Q:  Do i still need to use proxy traffic from nginx to sunstone ?  or it is managed by module ?</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Zeeshan<br><div><div>On W3-Jan 17, 2013, at 12:04 PM, Zeeshan Ali Shah wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">added as export ONE_LOCATION.<div><br></div><div>it seems that passenger did spawn . but getting this now in passenger.log , browser stuck..</div><div><br></div><div><div>>> Listening on 127.0.0.1:9869, CTRL+C to stop</div><div>2013/01/14 21:54:32 [error] 13072#0: *4 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: _, request: "HEAD / HTTP/1.1", upstream: "passenger:unix:/passenger_helper_server:", host: "0.0.0.0"</div><div>[ pid=1327 thr=139718631917344 file=ext/common/Watchdog.cpp:961 time=2013-01-16 16:55:27.481 ]: Some Phusion Passenger agent processes did not exit in time, forcefully shutting down all.</div><div><br></div><div><br></div><div><br></div><div>Zee</div><div><div>On W3-Jan 17, 2013, at 11:12 AM, Daniel Molina wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br><div class="gmail_quote">On 16 January 2013 17:00, Zeeshan Ali Shah <span dir="ltr"><<a href="mailto:zashah@pdc.kth.se" target="_blank">zashah@pdc.kth.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">sorry for late reply. <div>I was trying different settings.</div><div><br></div><div>when i use passenger start and use nginx as proxy (plain) not via passenger module it works.</div><div>

<br></div><div>but when i use passenger as module in apache install via using passenger-install module </div><div><br></div><div>it shows me this error</div><div><br></div><div>i have <a href="http://config.ru/" target="_blank">config.ru</a> as </div>

<div><div>$: << '.'</div><div>require 'sunstone-server'</div><div><br></div><div>run Sinatra::Application</div></div><div><br></div><div>any hint ?</div><div><br></div><div>Zee</div><div><br></div><div>

<dt style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:bold;line-height:normal;color:rgb(40,0,80);text-transform:none;font-size:13px;white-space:normal;font-family:Verdana,'Bitstream Vera Sans',Arial,sans-serif;word-spacing:0px">

Error message:</dt><dd style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;margin-bottom:1em;font-weight:normal;line-height:normal;color:rgb(34,34,34);text-transform:none;font-size:13px;white-space:normal;font-family:Verdana,'Bitstream Vera Sans',Arial,sans-serif;margin-top:0.5em;word-spacing:0px">

cannot load such file -- CloudAuth</dd><dt style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:bold;line-height:normal;color:rgb(40,0,80);text-transform:none;font-size:13px;white-space:normal;font-family:Verdana,'Bitstream Vera Sans',Arial,sans-serif;word-spacing:0px">

Exception class:</dt><dd style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;margin-bottom:1em;font-weight:normal;line-height:normal;color:rgb(34,34,34);text-transform:none;font-size:13px;white-space:normal;font-family:Verdana,'Bitstream Vera Sans',Arial,sans-serif;margin-top:0.5em;word-spacing:0px">

LoadError</dd><dt style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:bold;line-height:normal;color:rgb(40,0,80);text-transform:none;font-size:13px;white-space:normal;font-family:Verdana,'Bitstream Vera Sans',Arial,sans-serif;word-spacing:0px">

Application root:</dt><dd style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;margin-bottom:1em;font-weight:normal;line-height:normal;color:rgb(34,34,34);text-transform:none;font-size:13px;white-space:normal;font-family:Verdana,'Bitstream Vera Sans',Arial,sans-serif;margin-top:0.5em;word-spacing:0px">

<tt>/srv/cloud/one/one38/lib/sunstone</tt></dd><dt style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:bold;line-height:normal;color:rgb(40,0,80);text-transform:none;font-size:13px;white-space:normal;font-family:Verdana,'Bitstream Vera Sans',Arial,sans-serif;word-spacing:0px">

Backtrace:</dt><dd style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;margin-bottom:1em;font-weight:normal;line-height:normal;color:rgb(34,34,34);text-transform:none;font-size:13px;white-space:normal;font-family:Verdana,'Bitstream Vera Sans',Arial,sans-serif;margin-top:0.5em;word-spacing:0px">

<table><tbody><tr><th style="background-color:rgb(132,112,166);color:white;padding:0.2em 0.4em;background-repeat:initial initial">#</th><th style="background-color:rgb(132,112,166);color:white;padding:0.2em 0.4em;background-repeat:initial initial">

File</th><th style="background-color:rgb(132,112,166);color:white;padding:0.2em 0.4em;background-repeat:initial initial">Line</th><th style="background-color:rgb(132,112,166);color:white;padding:0.2em 0.4em;background-repeat:initial initial">

Location</th></tr><tr><td style="padding:0.2em 0.4em;background-color:rgb(236,223,255);font-weight:bold;background-repeat:initial initial">0</td><td style="padding:0.2em 0.4em;background-color:rgb(236,223,255);background-repeat:initial initial">

/srv/cloud/one/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb</td><td style="padding:0.2em 0.4em;background-color:rgb(236,223,255);background-repeat:initial initial">36</td><td style="padding:0.2em 0.4em;background-color:rgb(236,223,255);background-repeat:initial initial">

in `require'</td></tr><tr><td style="padding:0.2em 0.4em;background-color:rgb(247,242,255);font-weight:bold;background-repeat:initial initial">1</td><td style="padding:0.2em 0.4em;background-color:rgb(247,242,255);background-repeat:initial initial">

/srv/cloud/one/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb</td><td style="padding:0.2em 0.4em;background-color:rgb(247,242,255);background-repeat:initial initial">36</td><td style="padding:0.2em 0.4em;background-color:rgb(247,242,255);background-repeat:initial initial">

in `require'</td></tr></tbody></table></dd><div><br></div></div></div></blockquote><div><br></div><div>I think the problem is that ONE_LOCATION is not defined for the user who is starting the server.</div><div><br></div>

<div>Cheers</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div></div></div><div><div class="h5">

<div><br><div><div>On W3-Jan 14, 2013, at 6:27 PM, Daniel Molina wrote:</div><br><blockquote type="cite"><div>Hi,<br><br>On 10 January 2013 11:53, Zeeshan Ali Shah <<a href="mailto:zashah@pdc.kth.se" target="_blank">zashah@pdc.kth.se</a>> wrote:<br>

<blockquote type="cite">Thanks Hector,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">We are running thin  . here is gem list<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">

-- any hint to run it with passenger ? right now i start it with bin/sunstone-server restart command.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">apache+passenger module is another option for this beside apache+passenger  do we have have to change some parts of sunstone to run with passenger ?<br>

</blockquote><br>Some changes are required in sunstone to make it work with Passenger.<br>Actually, these changes will be included in OpenNebula 4.0:<br><br><a href="http://dev.opennebula.org/issues/1370" target="_blank">http://dev.opennebula.org/issues/1370</a><br>

<br>Cheers<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">gem list<br></blockquote><blockquote type="cite"><br></blockquote>

<blockquote type="cite">*** LOCAL GEMS ***<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">bundler (1.2.2)<br></blockquote><blockquote type="cite">daemons (1.1.9)<br></blockquote><blockquote type="cite">

eventmachine (1.0.0)<br></blockquote><blockquote type="cite">json (1.7.5)<br></blockquote><blockquote type="cite">rack (1.4.1)<br></blockquote><blockquote type="cite">rack-protection (1.2.0)<br></blockquote><blockquote type="cite">

rake (10.0.2)<br></blockquote><blockquote type="cite">rubygems-bundler (1.1.0)<br></blockquote><blockquote type="cite">rvm (1.11.3.5)<br></blockquote><blockquote type="cite">sequel (3.41.0)<br></blockquote><blockquote type="cite">

sinatra (1.3.3)<br></blockquote><blockquote type="cite">thin (1.5.0)<br></blockquote><blockquote type="cite">tilt (1.3.3)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote>
<blockquote type="cite">
Zeeshan<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On W2-Jan 9, 2013, at 6:54 PM, Hector Sanjuan wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">

<blockquote type="cite">If your sunstone performs so bad I doubt that is something you can solve by load balancing.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote>

<blockquote type="cite"><blockquote type="cite">Is it running with Webbrick or with thin (i.e. is the thin gem installed?)? I would check gem versions in general... make sure you are running the latest etc. thin can launch several processes too (-s) so you can try using it along with nginx.<br>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">You can also try proxying with Apache+passenger which will also take care of spanning several processes...<br>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Hector<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">

<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">On Wed, 09 Jan 2013 11:13:49 +0100, Zeeshan Ali Shah <<a href="mailto:zashah@pdc.kth.se" target="_blank">zashah@pdc.kth.se</a>> wrote:<br>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">HI,<br></blockquote></blockquote></blockquote>

<blockquote type="cite"><blockquote type="cite"><blockquote type="cite">We are running sunstone as proxy with nginx . during testing with only 2 users the server hanged . nginx was fine but sunstone went belly up (very slow with no error in debug)<br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

1. any way we can increase number of processes for sunstone ?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">2. or running sunstone with different ports on same system and load balance them from nginx ?<br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

any hint ?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

Regards<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

Zeeshan<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite"><blockquote type="cite">Users mailing list<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">

--<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Hector Sanjuan<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">@hecsanjuan<br></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Users mailing list<br></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite"><a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>

</blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Users mailing list<br></blockquote><blockquote type="cite">

<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>

</blockquote><br>-- <br>Daniel Molina<br>Project Engineer<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula<br>

</div></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Daniel Molina<br>Project Engineer<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula
</blockquote></div><br></div></div></blockquote></div><br></div></body></html>