[one-users] OpenNebula 2.2 Sunstone Error : Unable to Login

Jaime Melis jmelis at opennebula.org
Wed Apr 6 02:36:22 PDT 2011


Hello,

I forgot to mention that you need to set the ONE_AUTH environment variable:
http://opennebula.org/documentation:rel2.2:cg#opennebula_users

Regards,
Jaime

On Wed, Apr 6, 2011 at 10:44 AM, Jaime Melis <jmelis at opennebula.org> wrote:

> Hi,
>
> It seems that you don't have write permissions in /var/log/one, could you
> try the following?
> touch /var/log/one/test
> If that's the problem try to fix it with chown or chmod.
>
> However, you shouldn't be having that problem, how have you installed
> OpenNebula? what package and what distro?
>
> Regards,
> Jaime
>
>  On Wed, Apr 6, 2011 at 7:12 AM, KING LABS <kinglabs.in at gmail.com> wrote:
>
>>  Hi ,
>>
>> I have been trying to install and configure 2.2 with Sunstone. I unable to
>> login into the sunstone . The details of the error are as follows when I log
>> in as a normal user on the frontend.
>>
>> Also when i try while logged in as oneadmin I get
>>
>> oneadmin at frontend:~$ sunstone-server start
>> /usr/bin/sunstone-server: line 70: /var/log/one/sunstone.log: Permission
>> denied
>> sunstone-server started
>> oneadmin at frontend:~$
>>
>>
>> Please correct me if I am missing anything.
>>
>>
>>
>>
>>
>>
>>
>>
>> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>>
>>
>> RuntimeError - ONE_AUTH file not present:
>>  /usr/lib/one/ruby/OpenNebula.rb:93:in `initialize'
>>  /usr/lib/one/sunstone/models/SunstoneServer.rb:51:in `new'
>>  /usr/lib/one/sunstone/models/SunstoneServer.rb:51:in `authorize'
>>  /usr/lib/one/sunstone/sunstone-server.rb:48:in `build_session'
>>  /usr/lib/one/sunstone/sunstone-server.rb:120:in `POST /login'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1125:in `call'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1125:in
>> `compile!'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:709:in
>> `instance_eval'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:709:in
>> `route_eval'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:693:in `route!'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:741:in
>> `process_route'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:738:in `catch'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:738:in
>> `process_route'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:692:in `route!'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:691:in `each'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:691:in `route!'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:826:in
>> `dispatch!'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:619:in `call!'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:791:in
>> `instance_eval'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:791:in `invoke'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:791:in `catch'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:791:in `invoke'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:619:in `call!'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:604:in `call'
>>  /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/session/abstract/id.rb:63:in
>> `context'
>>  /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/session/abstract/id.rb:58:in
>> `call'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/showexceptions.rb:21:in
>> `call'
>>  /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/methodoverride.rb:24:in `call'
>>  /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/commonlogger.rb:18:in `call'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1245:in `call'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1276:in
>> `synchronize'
>>  /var/lib/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1245:in `call'
>>  /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/lint.rb:48:in `_call'
>>  /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/lint.rb:36:in `call'
>>  /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/showexceptions.rb:24:in `call'
>>  /var/lib/gems/1.8/gems/rack-1.2.2/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:240:in `run_machine'
>>  /usr/lib/ruby/1.8/eventmachine.rb:240: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
>> 127.0.0.1 - - [06/Apr/2011 01:07:05] "POST /login HTTP/1.1" 500 138892
>> 0.0876
>> 127.0.0.1 - - [06/Apr/2011 01:07:05] "POST /login HTTP/1.1" 500 138892
>> 0.0885
>> ^C
>> king at frontend:~$
>>
>> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> Jaime Melis, Cloud Technology Engineer/Researcher
> Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org | jmelis at opennebula.org
>



-- 
Jaime Melis, Cloud Technology Engineer/Researcher
Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110406/bfe1521c/attachment-0003.htm>


More information about the Users mailing list