[one-users] Unable to login to sunstone as user

Stefan Kooman stefan at bit.nl
Wed Nov 20 09:39:57 PST 2013


Quoting Daniel Molina (dmolina at opennebula.org):
> Hi Stefan,
> 
> 
> On 20 November 2013 17:26, Stefan Kooman <stefan at bit.nl> wrote:
> 
> > Hi List,
> >
> > I'm puzzled again. I try to login as a user (which is a member of
> > primary group "users") in Sunstone but I get a "OpenNebula is not running
> > or there
> > was a server exception. Please check the server logs.". If I login as a
> > user which is a member of "oneadmin" group (or oneadmin itself)
> > everything is working fine. I _am_ able to succesfully authenticatie to,
> > and
> > query the occi server as that user. Oned.log gives the following output:
> >
> > Wed Nov 20 17:21:37 2013 [ReM][D]: Req:8480 UID:11 UserInfo invoked, -1
> > Wed Nov 20 17:21:37 2013 [ReM][D]: Req:8480 UID:11 UserInfo result
> > SUCCESS, "<USER><ID>11</ID><GI..."
> > Wed Nov 20 17:21:37 2013 [ReM][D]: Req:8480 UID:11 UserInfo invoked, -1
> > Wed Nov 20 17:21:37 2013 [ReM][D]: Req:8480 UID:11 UserInfo result
> > SUCCESS, "<USER><ID>11</ID><GI..."
> > Wed Nov 20 17:21:38 2013 [ReM][D]: Req:9760 UID:11 UserInfo invoked, -1
> > Wed Nov 20 17:21:38 2013 [ReM][D]: Req:9760 UID:11 UserInfo result
> > SUCCESS, "<USER><ID>11</ID><GI..."
> >
> > How to best debug this issue?
> >
> 
> * Are you using the "core" authentication for this user?
yes
> * Any special character in the password?
no
> * Check if there is any error in the browser console
> * What is the response of the server to the login action. You can see this
> in the Network tab of the Chrome dev tools
Chromium is not working for me at all (different problem, seems to be some weird
issue in combination with f5 loadbalancers and ssl offloading). I've
tried with firefox and firebug enabled:

Response Headersview source
Cache-Control   no-store
Connection  close
Content-Length  30
Content-Type    text/html;charset=utf-8
Date    Wed, 20 Nov 2013 17:27:20 GMT
Server  Apache/2.4.6 (Ubuntu)
Set-Cookie
sunstone=sunstonecookie here;
path=/; HttpOnly
Status  500 Internal Server Error
X-Frame-Options SAMEORIGIN
X-Powered-By    Phusion Passenger 4.0.25
X-XSS-Protection    1; mode=block
x-content-type-options  nosniff
Request Headersview source
Accept  */*
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Authorization   Basic stefan-not-disclosed
Cache-Control   no-cache
Connection  keep-alive
Content-Length  14
Content-Type    application/x-www-form-urlencoded; charset=UTF-8
Cookie
sunstone=sunstone-cookie-here;
BIGipServerbit-cust-sunstone-inet6-http=vifdede128590000ea0000000000000002.20480;
BIGipServerbit-cust-sunstone-inet-http=38800650.20480.0000
Host    cust-sunstone.bit.nl
Pragma  no-cache
Referer http://cust-sunstone.bit.nl/
User-Agent  Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101
Firefox/25.0
X-Requested-With    XMLHttpRequest

No matter if I try with sinatra as backend, passenger 3.0 or 4.0. 

sunstone-server.conf
################################################################################
# Auth
################################################################################
:auth: sunstone
:core_auth: cipher

The tokens of the user as seen by "sunstone" and oneuser show userid are
the same.

Weird.

Thanks,

Stefan


-- 
| BIT BV  http://www.bit.nl/        Kamer van Koophandel 09090351
| GPG: 0xD14839C6                   +31 318 648 688 / info at bit.nl



More information about the Users mailing list