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

Matthias Pauer matthias.pauer at iqundu.com
Wed Jun 8 22:56:43 PDT 2011


On Thursday, June 09, 2011 12:53:56 AM Héctor Sanjuán 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:in
> > 
> > `call'
> > 
> >         /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1303:in
> > 
> > `synchronize'
> > 
> >         /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:in
> > 
> > `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:in
> > 
> > `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

When I had exactly the same problem, ONE_AUTH was missing for the user running 
sunstone. 
The message was truncated in the log.


-- 
_________________________________

iqundu GmbH 
Kronstadter Straße 8
81677 München

Phone: +49 (0)   89 / 800 440 22
Mobile: +49 (0) 176 / 450 405 09
Fax:   +49 (0) 3212 / 13 25 292

matthias.pauer at iqundu.com
http://www.iqundu.com

iqundu GmbH, Sitz: München
Amtsgericht München HRB 186525

Geschäftsführer: Michael Rau, Andreas Kretschmer

Die in dieser E-Mail enthaltenen Informationen sind vertraulich und können 
rechtlich bedeutsam sein. Sie sind ausschließlich für den Adressaten bestimmt 
und jeglicher Zugriff durch andere Personen ist unzulässig. Falls Sie nicht 
der beabsichtigte Empfänger sind, ist jegliche Veröffentlichung, Verteilung 
oder sonstige in diesem Zusammenhang stehende Handlung untersagt und unter 
Umständen rechtswidrig. Herkömmliche E-Mails sind zudem nicht gegen Zugriff 
geschützt und können mit und ohne Einfluss von Dritten verloren gehen, 
verändert oder verfälscht werden. Eine Haftung für die Unversehrtheit von E-
Mails oder hieraus entstandene Schäden kann daher nicht übernommen werden.

The information in this e-mail is confidential and may be legally privileged. 
It is intended solely for the addressee and access to the e-mail by anyone 
else is prohibited. If you are not the intended recipient, any disclosure, 
distribution or any action taken or omitted to be taken in reliance on it, is 
prohibited and may be unlawful. Common e-mails are not protected against 
access by third persons and therefore might be lost, changed or falsified, 
with or without any interference by third persons. We cannot accept any 
responsibility for the integrity of e-mails or for any damages resulting out 
of these circumstances.



More information about the Users mailing list