Re: [one-users] Unable to login to sunstone as user
Quoting Daniel Molina (dmol...@opennebula.org): > On 25 November 2013 15:24, Stefan Kooman wrote: > > > Quoting Daniel Molina (dmol...@opennebula.org): > > > On 25 November 2013 14:28, Stefan Kooman wrote: > > > > > > > At least with "sinatra" as backend. If I use passenger I'm able > > > > to login ... dashboard screen gets loaded ... and then I'm warped back > > > > to the login page. Same config files (sunstone-server.conf etc.). No > > > > errors are logged in apache/passenger error log. This behaviour is the > > > > same for oneadmin user and unpriviliged users. > > > > > > > > Any hints on this one? > > > > > > > > > > It looks like a memcache issue. Is it enabled in sunstone-server.conf? > > It is, and I'm able to connect to it from the sunstone server. I've > > installed memcached locally just to rule that out ... doesn't change > > anything :(. > > > > Let's try to find out the problem: > * Check in "/var/log/one/sunstone.log" that the memcache is indeed enabled. > Note that it is "memcache" and not "memcached": > :sessions=>"memcache", > * Try removing the cookies from your browser, maybe firefox is trying to > use the old sinatra session and sunstone-server cannot find it in memcache. > > Hope this helps I logged all sessions on the memcached server and no connection was made when I started apache / tried to login ... :sessions wasn't initialized properly. I fixen that and know it's working. I must have been sleepin' while updating config files. /me-- Thanks for your looking into it. Gr. Stefan -- | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl signature.asc Description: Digital signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
On 25 November 2013 15:24, Stefan Kooman wrote: > Quoting Daniel Molina (dmol...@opennebula.org): > > On 25 November 2013 14:28, Stefan Kooman wrote: > > > > > At least with "sinatra" as backend. If I use passenger I'm able > > > to login ... dashboard screen gets loaded ... and then I'm warped back > > > to the login page. Same config files (sunstone-server.conf etc.). No > > > errors are logged in apache/passenger error log. This behaviour is the > > > same for oneadmin user and unpriviliged users. > > > > > > Any hints on this one? > > > > > > > It looks like a memcache issue. Is it enabled in sunstone-server.conf? > It is, and I'm able to connect to it from the sunstone server. I've > installed memcached locally just to rule that out ... doesn't change > anything :(. > Let's try to find out the problem: * Check in "/var/log/one/sunstone.log" that the memcache is indeed enabled. Note that it is "memcache" and not "memcached": :sessions=>"memcache", * Try removing the cookies from your browser, maybe firefox is trying to use the old sinatra session and sunstone-server cannot find it in memcache. Hope this helps > > Gr. Stefan > > -- > | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 > | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.10 (GNU/Linux) > > iF4EAREIAAYFAlKTXYIACgkQTyGgYdFIOcYYRAD9F1yGr6bMBzssNIXCDw1Xl4hG > dEmGQmxbQzYqdn1CtZAA/0fNKMVjmfxFwbxmqPE0ed6V+Rg2Mhc5GzuQdETnFNNV > =FQln > -END PGP SIGNATURE- > > -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
Quoting Daniel Molina (dmol...@opennebula.org): > On 25 November 2013 14:28, Stefan Kooman wrote: > > > At least with "sinatra" as backend. If I use passenger I'm able > > to login ... dashboard screen gets loaded ... and then I'm warped back > > to the login page. Same config files (sunstone-server.conf etc.). No > > errors are logged in apache/passenger error log. This behaviour is the > > same for oneadmin user and unpriviliged users. > > > > Any hints on this one? > > > > It looks like a memcache issue. Is it enabled in sunstone-server.conf? It is, and I'm able to connect to it from the sunstone server. I've installed memcached locally just to rule that out ... doesn't change anything :(. Gr. Stefan -- | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl signature.asc Description: Digital signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
On 25 November 2013 14:28, Stefan Kooman wrote: > At least with "sinatra" as backend. If I use passenger I'm able > to login ... dashboard screen gets loaded ... and then I'm warped back > to the login page. Same config files (sunstone-server.conf etc.). No > errors are logged in apache/passenger error log. This behaviour is the > same for oneadmin user and unpriviliged users. > > Any hints on this one? > It looks like a memcache issue. Is it enabled in sunstone-server.conf? Cheers -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
Quoting Daniel Molina (dmol...@opennebula.org): > Did you modify the ''/etc/one/sunstone-views/user.yaml'' file, could you > check the content of this file and its permissions? You are awesome. I did change that file (change logo definition) and for some reason something went wrong merging changes for that file from 4.2 -> 4.4. An opennebula-sunstone re-install (without modifications) works like a charm. At least with "sinatra" as backend. If I use passenger I'm able to login ... dashboard screen gets loaded ... and then I'm warped back to the login page. Same config files (sunstone-server.conf etc.). No errors are logged in apache/passenger error log. This behaviour is the same for oneadmin user and unpriviliged users. Any hints on this one? Thanks, Stefan Passenger conf: PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini PassengerDefaultRuby /usr/bin/ruby PassengerMaxInstancesPerApp 1 PassengerHighPerformance on # on or off doesn't make a difference PassengerFriendlyErrorPages off PassengerLogLevel 2 PassengerUser oneadmin PassengerGroup oneadmin -- | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl signature.asc Description: Digital signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
On 23 November 2013 10:34, Stefan Kooman wrote: > Quoting Stefan Kooman (ste...@bit.nl): > > Quoting Daniel Molina (dmol...@opennebula.org): > > > > > You are getting a 500 error from the server, there should be an error > > > message in /var/log/one/sunstone.error > > > > I have re-installed oned / sunstone from scratch. If I try to log in as > > a user which is not a member of oneadmin group I get the errors in the > > log as attached in this mail (sunstone.error). Can you figure out what's > > happening here? > > Might this be an issue related to Ubuntu Saucy (13.10)? According to [1] > Ubuntu Saucy would be a "certified linux distribution" if I'm not > mistaken. I've build the packages (4.2.0, 4.3.85, 4.3.90) for Saucy in a > pbuilder environment [2] which can be found here [3]. I'm not doing > any weird things, it's a basic sunstone setup. I would be more than > happy to provide you with a clone of the vm I'm working on (debugging > purposes / system tests). See attachment for a list of installed > packages (dpkg_list) / gems (gem_list). > >From your logs, it looks like the problem is related to this part of the code, SunstoneViews.rb: def available_views(user_name, group_name) available_views = @views_config['users'][user_name] if @views_config['users'] available_views ||= @views_config['groups'][group_name] if @views_config['groups'] available_views ||= @views_config['default'] return available_views end Did you modify the ''/etc/one/sunstone-views/user.yaml'' file, could you check the content of this file and its permissions? Cheers > > Thanks, > > Cheers, > > Stefan Kooman > > [1]: http://opennebula.org/software:testing > [2]: https://wiki.ubuntu.com/PbuilderHowto > [3]: http://obit.bit.nl/ubuntu/saucy/opennebula/ > > -- > | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 > | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.10 (GNU/Linux) > > iF4EAREIAAYFAlKQdpMACgkQTyGgYdFIOcZSkwD/WaqK+0zCiALUcgJd5xiUwu3F > pViQBpSXctFPwLeF9jEA+wUI/IGXuUGgwCkpsJcBah0CxXXKB2ay9Uvew6iJgHSM > =h6zk > -END PGP SIGNATURE- > > -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
Quoting Daniel Molina (dmol...@opennebula.org): > You are getting a 500 error from the server, there should be an error > message in /var/log/one/sunstone.error I have re-installed oned / sunstone from scratch. If I try to log in as a user which is not a member of oneadmin group I get the errors in the log as attached in this mail (sunstone.error). Can you figure out what's happening here? Thanks, Stefan -- | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl == Sinatra/1.3.2 has taken the stage on 9869 for development with backup from Thin NoMethodError - undefined method `first' for nil:NilClass: /usr/lib/one/sunstone/sunstone-server.rb:199:in `build_session' /usr/lib/one/sunstone/sunstone-server.rb:286:in `block in ' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1212:in `call' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1212:in `block in compile!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in `[]' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in `block (3 levels) in route!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:801:in `route_eval' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in `block (2 levels) in route!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:822:in `block in process_route' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:820:in `catch' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:820:in `process_route' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:784:in `block in route!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:783:in `each' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:783:in `route!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:886:in `dispatch!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:719:in `block in call!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:in `block in invoke' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:in `catch' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:in `invoke' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:719:in `call!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:705:in `call' /usr/lib/ruby/vendor_ruby/rack/commonlogger.rb:33:in `call' /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:225:in `context' /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:220:in `call' /usr/lib/ruby/vendor_ruby/rack/protection/xss_header.rb:18:in `call' /usr/lib/ruby/vendor_ruby/rack/protection/path_traversal.rb:16:in `call' /usr/lib/ruby/vendor_ruby/rack/protection/json_csrf.rb:18:in `call' /usr/lib/ruby/vendor_ruby/rack/protection/base.rb:49:in `call' /usr/lib/ruby/vendor_ruby/rack/protection/base.rb:49:in `call' /usr/lib/ruby/vendor_ruby/rack/protection/frame_options.rb:31:in `call' /usr/lib/ruby/vendor_ruby/rack/nulllogger.rb:9:in `call' /usr/lib/ruby/vendor_ruby/rack/head.rb:11:in `call' /usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:21:in `call' /usr/lib/ruby/vendor_ruby/sinatra/showexceptions.rb:21:in `call' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1334:in `block in call' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1416:in `synchronize' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1334:in `call' /usr/lib/ruby/vendor_ruby/thin/connection.rb:80:in `block in pre_process' /usr/lib/ruby/vendor_ruby/thin/connection.rb:78:in `catch' /usr/lib/ruby/vendor_ruby/thin/connection.rb:78:in `pre_process' /usr/lib/ruby/vendor_ruby/eventmachine.rb:1037:in `call' /usr/lib/ruby/vendor_ruby/eventmachine.rb:1037:in `block in spawn_threadpool' signature.asc Description: Digital signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
On 20 November 2013 18:39, Stefan Kooman wrote: > Quoting Daniel Molina (dmol...@opennebula.org): > > Hi Stefan, > > > > > > On 20 November 2013 17:26, Stefan Kooman 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, "11 > > 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, "11 > > 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, "11 > > > > > 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-Typetext/html;charset=utf-8 > DateWed, 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-ByPhusion Passenger 4.0.25 > X-XSS-Protection1; 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-Typeapplication/x-www-form-urlencoded; charset=UTF-8 > Cookie > sunstone=sunstone-cookie-here; > > BIGipServerbit-cust-sunstone-inet6-http=vifdede12859ea0002.20480; > BIGipServerbit-cust-sunstone-inet-http=38800650.20480. > Hostcust-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-WithXMLHttpRequest > > 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. > You are getting a 500 error from the server, there should be an error message in /var/log/one/sunstone.error > > Weird. > > Thanks, > > Stefan > > > -- > | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 > | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl > -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
Quoting Daniel Molina (dmol...@opennebula.org): > Hi Stefan, > > > On 20 November 2013 17:26, Stefan Kooman 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, "11 > 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, "11 > 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, "11 > > > 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-Typetext/html;charset=utf-8 DateWed, 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-ByPhusion Passenger 4.0.25 X-XSS-Protection1; 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-Typeapplication/x-www-form-urlencoded; charset=UTF-8 Cookie sunstone=sunstone-cookie-here; BIGipServerbit-cust-sunstone-inet6-http=vifdede12859ea0002.20480; BIGipServerbit-cust-sunstone-inet-http=38800650.20480. Hostcust-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-WithXMLHttpRequest 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 / i...@bit.nl ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Unable to login to sunstone as user
Hi Stefan, On 20 November 2013 17:26, Stefan Kooman 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, "11 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, "11 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, "11 > How to best debug this issue? > * Are you using the "core" authentication for this user? * Any special character in the password? * 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 Cheers > > Thanks, > > Stefan > > -- > | BIT BV http://www.bit.nl/Kamer van Koophandel 09090351 > | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl > ___ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org