[one-users] Failed to login in Sunstone NameError OpenNebula 2.2.1

Nick Zhu nick.qi.zhu at gmail.com
Fri Jun 10 06:50:53 PDT 2011


The file does exist.

cat $ONE_AUTH
oneadmin:oneadmin

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.


Thanks,

Nick

On Fri, Jun 10, 2011 at 4:20 AM, Matthias Pauer
<matthias.pauer at iqundu.com>wrote:

> Hi,
>
> check if your one_auth file exists at your configured path and it contains
> a
> user and password. This fixed exactly the same problem for us and a guy who
> asked this question several days ago, too.
>
> The same versions of gem packets are installed on our system
> (ubuntu-10.10).
>
>
> On Thursday, June 09, 2011 04:31:19 PM Nick Zhu wrote:
> > Thanks for the quick response guys. So when I tried running sunstone
> server
> > directly from ruby it worked and did not complain about the name error,
> > maybe something wrong with the rackup? My rackup and thin version:
> >
> > rackup -v
> > Rack 1.1
> > thin -v
> > thin 1.2.4 codename Flaming Astroboy
> >
> > I believe these were installed from ubuntu 'apt-get install thin'.
> However
> > I also noticed different version of rack and thin in gem:
> >
> > rack (1.3.0)
> > thin (1.2.11)
> >
> > Is there a conflict or am I totally mixing things up here.
> >
> >
> > Matthias, you mentioned the log file could be truncated, is there a way
> to
> > see the full log? My ONE_AUTH is configured as the following:
> >
> > export PATH=$PATH:/srv/cloud/one/bin
> > export ONE_LOCATION=/srv/cloud/one
> > export ONE_XMLRPC=http://localhost:2633/RPC2
> > export ONE_AUTH=/srv/cloud/one/.one/one_auth
> >
> >
> > Thanks,
> >
> > Nick
> >
> > On Wed, Jun 8, 2011 at 6:53 PM, Héctor Sanjuán
> <hsanjuan at opennebula.org>wrote:
> > > Hi,
> > >
> > > I cannot reproduce this :(. Ubuntu does not usually handle gem paths
> > > very well. Can you check make sure that the gems correspond to the ruby
> > > version you are using? Also, can you make sure you're not missing any
> > > previous error in the log file. Can you also try to run "ruby
> > > sunstone-server.rb" and see if it works like that? This file is in
> > > /srv/cloud/one/lib/sunstone/ or /usr/lib/one/sunstone depending on
> > > System-wide or self-contained installation.
> > >
> > > Hope it helps,
> > >
> > > Hector
> > >
> > > El 08/06/11 22:47, Nick Zhu escribió:
> > > > Hi,
> > > >
> > > > I downloaded and installed OpenNebula 2.2.1 from the tar. Went
> through
> > > > the installation alright and the cli interface is working now,
> however
> > > > having problem login into sunstone. Here is the error I am getting:
> > > >
> > > > NameError: uninitialized constant Rack::Multipart
> > > >
> > > >         /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/request.rb:306:in
> > > >
> > > > `parse_multipart'
> > > >
> > > >         /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/request.rb:182:in
> > >
> > > `POST'
> > >
> > > > /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/methodoverride.rb:15:in
> > > > `call'
> > > >
> > > >
> /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:i
> > > >         n
> > > >
> > > > `call'
> > > >
> > > >
> /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1303:i
> > > >         n
> > > >
> > > > `synchronize'
> > > >
> > > >
> /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:i
> > > >         n
> > > >
> > > > `call'
> > > >
> > > >         /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/lint.rb:48:in
> > > >         `_call'
> > > >         /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/lint.rb:36:in
> > > >         `call'
> > > >
> > > > /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/showexceptions.rb:24:in
> > > > `call'
> > > >
> > > >
> /var/lib/gems/1.8/gems/rack-1.3.0/lib/rack/commonlogger.rb:18:i
> > > >         n
> > > >
> > > > `call'
> > > >
> > > >         /usr/lib/ruby/1.8/rack/content_length.rb:13:in `call'
> > > >         /usr/lib/ruby/1.8/rack/chunked.rb:15:in `call'
> > > >         /usr/lib/ruby/1.8/thin/connection.rb:76:in `pre_process'
> > > >         /usr/lib/ruby/1.8/thin/connection.rb:74:in `catch'
> > > >         /usr/lib/ruby/1.8/thin/connection.rb:74:in `pre_process'
> > > >         /usr/lib/ruby/1.8/thin/connection.rb:57:in `process'
> > > >         /usr/lib/ruby/1.8/thin/connection.rb:42:in `receive_data'
> > > >         /usr/lib/ruby/1.8/eventmachine.rb:257:in `run_machine'
> > > >         /usr/lib/ruby/1.8/eventmachine.rb:257:in `run'
> > > >         /usr/lib/ruby/1.8/thin/backends/base.rb:57:in `start'
> > > >         /usr/lib/ruby/1.8/thin/server.rb:156:in `start'
> > > >         /usr/lib/ruby/1.8/rack/handler/thin.rb:14:in `run'
> > > >         /usr/lib/ruby/1.8/rack/server.rb:155:in `start'
> > > >         /usr/lib/ruby/1.8/rack/server.rb:83:in `start'
> > > >         /usr/bin/rackup:4
> > > >
> > > > I am running on Ubuntu 11.04 server with:
> > > >
> > > > ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
> > > >
> > > > *** LOCAL GEMS ***
> > > >
> > > > daemons (1.1.3)
> > > > eventmachine (0.12.10)
> > > > json (1.5.1)
> > > > mkrf (0.2.3)
> > > > multipart-post (1.1.2)
> > > > rack (1.3.0)
> > > > rake (0.9.2)
> > > > sequel (3.24.1)
> > > > sinatra (1.2.6)
> > > > thin (1.2.11)
> > > > tilt (1.3.2)
> > > >
> > > > Tried reinstall ruby and rack as suggested online and no luck. Also
> > > > checked all the log files and did not find any problem other than
> this
> > > > error. Does somebody have any idea how to fix this?
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > Nick
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Users mailing list
> > > > Users at lists.opennebula.org
> > > > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> > >
> > > --
> > > Héctor Sanjuán
> > > OpenNebula Sunstone Developer
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
*
This is my new main consolidated gmail account. You can still reach me by
all my old email address from yahoo.ca and hotmail.com, however you will
receive all my response from this email nick.qi.zhu at gmail.com. Do not be
alarmed this is not a phishing attack :)*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110610/323a5140/attachment-0003.htm>


More information about the Users mailing list