The file does exist. <br><br>cat $ONE_AUTH<br>oneadmin:oneadmin<br><br>Also what puzzles me is that I can login when running lib/sunstone-server.rb using ruby directly but not from the bin/sunstone-server. <br><br><br>Thanks,<br>
<br>Nick<br><br><div class="gmail_quote">On Fri, Jun 10, 2011 at 4:20 AM, Matthias Pauer <span dir="ltr"><<a href="mailto:matthias.pauer@iqundu.com">matthias.pauer@iqundu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
check if your one_auth file exists at your configured path and it contains a<br>
user and password. This fixed exactly the same problem for us and a guy who<br>
asked this question several days ago, too.<br>
<br>
The same versions of gem packets are installed on our system (ubuntu-10.10).<br>
<div><div></div><div class="h5"><br>
<br>
On Thursday, June 09, 2011 04:31:19 PM Nick Zhu wrote:<br>
> Thanks for the quick response guys. So when I tried running sunstone server<br>
> directly from ruby it worked and did not complain about the name error,<br>
> maybe something wrong with the rackup? My rackup and thin version:<br>
><br>
> rackup -v<br>
> Rack 1.1<br>
> thin -v<br>
> thin 1.2.4 codename Flaming Astroboy<br>
><br>
> I believe these were installed from ubuntu 'apt-get install thin'. However<br>
> I also noticed different version of rack and thin in gem:<br>
><br>
> rack (1.3.0)<br>
> thin (1.2.11)<br>
><br>
> Is there a conflict or am I totally mixing things up here.<br>
><br>
><br>
> Matthias, you mentioned the log file could be truncated, is there a way to<br>
> see the full log? My ONE_AUTH is configured as the following:<br>
><br>
> export PATH=$PATH:/srv/cloud/one/bin<br>
> export ONE_LOCATION=/srv/cloud/one<br>
> export ONE_XMLRPC=<a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a><br>
> export ONE_AUTH=/srv/cloud/one/.one/one_auth<br>
><br>
><br>
> Thanks,<br>
><br>
> Nick<br>
><br>
> On Wed, Jun 8, 2011 at 6:53 PM, Héctor Sanjuán<br>
<<a href="mailto:hsanjuan@opennebula.org">hsanjuan@opennebula.org</a>>wrote:<br>
> > Hi,<br>
> ><br>
> > I cannot reproduce this :(. Ubuntu does not usually handle gem paths<br>
> > very well. Can you check make sure that the gems correspond to the ruby<br>
> > version you are using? Also, can you make sure you're not missing any<br>
> > previous error in the log file. Can you also try to run "ruby<br>
> > sunstone-server.rb" and see if it works like that? This file is in<br>
> > /srv/cloud/one/lib/sunstone/ or /usr/lib/one/sunstone depending on<br>
> > System-wide or self-contained installation.<br>
> ><br>
> > Hope it helps,<br>
> ><br>
> > Hector<br>
> ><br>
> > El 08/06/11 22:47, Nick Zhu escribió:<br>
> > > Hi,<br>
> > ><br>
> > > I downloaded and installed OpenNebula 2.2.1 from the tar. Went through<br>
> > > the installation alright and the cli interface is working now, however<br>
> > > having problem login into sunstone. Here is the error I am getting:<br>
> > ><br>
> > > NameError: uninitialized constant Rack::Multipart<br>
> > ><br>
> > >         /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/request.rb:306:in<br>
> > ><br>
> > > `parse_multipart'<br>
> > ><br>
> > >         /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/request.rb:182:in<br>
> ><br>
> > `POST'<br>
> ><br>
> > > /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/methodoverride.rb:15:in<br>
> > > `call'<br>
> > ><br>
> > >         /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:i<br>
> > >         n<br>
> > ><br>
> > > `call'<br>
> > ><br>
> > >         /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1303:i<br>
> > >         n<br>
> > ><br>
> > > `synchronize'<br>
> > ><br>
> > >         /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:i<br>
> > >         n<br>
> > ><br>
> > > `call'<br>
> > ><br>
> > >         /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/lint.rb:48:in<br>
> > >         `_call'<br>
> > >         /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/lint.rb:36:in<br>
> > >         `call'<br>
> > ><br>
> > > /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/showexceptions.rb:24:in<br>
> > > `call'<br>
> > ><br>
> > >         /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/commonlogger.rb:18:i<br>
> > >         n<br>
> > ><br>
> > > `call'<br>
> > ><br>
> > >         /usr/lib/ruby/1.8/rack/content_length.rb:13:in `call'<br>
> > >         /usr/lib/ruby/1.8/rack/chunked.rb:15:in `call'<br>
> > >         /usr/lib/ruby/1.8/thin/connection.rb:76:in `pre_process'<br>
> > >         /usr/lib/ruby/1.8/thin/connection.rb:74:in `catch'<br>
> > >         /usr/lib/ruby/1.8/thin/connection.rb:74:in `pre_process'<br>
> > >         /usr/lib/ruby/1.8/thin/connection.rb:57:in `process'<br>
> > >         /usr/lib/ruby/1.8/thin/connection.rb:42:in `receive_data'<br>
> > >         /usr/lib/ruby/1.8/eventmachine.rb:257:in `run_machine'<br>
> > >         /usr/lib/ruby/1.8/eventmachine.rb:257:in `run'<br>
> > >         /usr/lib/ruby/1.8/thin/backends/base.rb:57:in `start'<br>
> > >         /usr/lib/ruby/1.8/thin/server.rb:156:in `start'<br>
> > >         /usr/lib/ruby/1.8/rack/handler/thin.rb:14:in `run'<br>
> > >         /usr/lib/ruby/1.8/rack/server.rb:155:in `start'<br>
> > >         /usr/lib/ruby/1.8/rack/server.rb:83:in `start'<br>
> > >         /usr/bin/rackup:4<br>
> > ><br>
> > > I am running on Ubuntu 11.04 server with:<br>
> > ><br>
> > > ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]<br>
> > ><br>
> > > *** LOCAL GEMS ***<br>
> > ><br>
> > > daemons (1.1.3)<br>
> > > eventmachine (0.12.10)<br>
> > > json (1.5.1)<br>
> > > mkrf (0.2.3)<br>
> > > multipart-post (1.1.2)<br>
> > > rack (1.3.0)<br>
> > > rake (0.9.2)<br>
> > > sequel (3.24.1)<br>
> > > sinatra (1.2.6)<br>
> > > thin (1.2.11)<br>
> > > tilt (1.3.2)<br>
> > ><br>
> > > Tried reinstall ruby and rack as suggested online and no luck. Also<br>
> > > checked all the log files and did not find any problem other than this<br>
> > > error. Does somebody have any idea how to fix this?<br>
> > ><br>
> > ><br>
> > > Thanks,<br>
> > ><br>
> > > Nick<br>
> > ><br>
> > ><br>
> > ><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>
> > --<br>
> > Héctor Sanjuán<br>
> > OpenNebula Sunstone Developer<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><i style="color:rgb(51, 51, 51)"><br>This is my new main consolidated gmail account. You can still reach me by all my old email address from <a href="http://yahoo.ca" target="_blank">yahoo.ca</a> and <a href="http://hotmail.com" target="_blank">hotmail.com</a>, however you will receive all my response from this email <a href="mailto:nick.qi.zhu@gmail.com" target="_blank">nick.qi.zhu@gmail.com</a>. Do not be alarmed this is not a phishing attack :)</i><br>
<br>