Hey guys, I've had a similar issue, nothing in the sunstone.error file and the logs are showing:<br><br><..> <br>:auth=>"sunstone"}<br>Thu Nov 22 10:42:37 2012 [E]: Error initializing authentication system<br>
Thu Nov 22 10:42:37 2012 [E]: [UserPoolInfo] User couldn't be authenticated, aborting call.<br><br><br>Checked for the same problem as Valentin, but everything seems to be normal.<br><br>Anything else I might check?<br>
<br>Cheers<br><br><br><div class="gmail_quote">On Tue, Nov 20, 2012 at 8:56 AM, Daniel Molina <span dir="ltr"><<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div><div class="h5">On 20 November 2012 11:54, Valentin Bud <span dir="ltr"><<a href="mailto:valentin.bud@gmail.com" target="_blank">valentin.bud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Tue, Nov 20, 2012 at 11:36:11AM +0100, Daniel Molina wrote:<br>
> On 20 November 2012 11:04, Valentin Bud <<a href="mailto:valentin.bud@gmail.com" target="_blank">valentin.bud@gmail.com</a>> wrote:<br>
><br>
> > Hi Daniel,<br>
> ><br>
> > Yes, it's there.<br>
> ><br>
> > ```<br>
> > /etc/one/oned.conf<br>
> > ...<br>
> > AUTH_MAD = [<br>
> > executable = "one_auth_mad",<br>
> > authn = "ssh,x509,ldap,server_cipher,server_x509"<br>
> > ]<br>
> > ...<br>
> > ```<br>
> ><br>
><br>
> Could you check in your oned.log if it is loaded:<br>
> Mon Nov 19 16:35:46 2012 [AuM][I]: Loading Auth. Manager driver.<br>
> Mon Nov 19 16:35:46 2012 [AuM][I]: Auth Manager loaded<br>
><br>
> And check the error in oned.log when the sunstone-server is started. (There<br>
<br>
</div>I have restarted `one` and yes the Auth. Manager is loaded.<br>
<br>
`/var/log/one/oned.log`<br>
```<br>
Tue Nov 20 11:43:14 2012 [AuM][I]: Loading Auth. Manager driver.<br>
Tue Nov 20 11:43:14 2012 [AuM][I]: Auth Manager loaded<br>
```<br>
<br>
Issued `sunstone-server start` as `oneadmin` and the logs show:<br>
<br>
`/var/log/one/oned.log`<br>
```<br>
Tue Nov 20 11:45:25 2012 [AuM][D]: Message received: AUTHENTICATE<br>
FAILURE 0 Authentication driver 'server_core' not available<br>
<br>
Tue Nov 20 11:45:25 2012 [AuM][E]: Auth Error: Authentication driver<br>
'server_core' not available<br>
Tue Nov 20 11:45:25 2012 [ReM][D]: Req:3952 UID:- UserPoolInfo invoked<br>
Tue Nov 20 11:45:25 2012 [ReM][E]: Req:3952 UID:- UserPoolInfo result<br>
FAILURE [UserPoolInfo] User couldn't be authenticated, aborting call.<br>
```<br>
<br>
No `server_core` Authentication driver. I have changed<br>
`/etc/one/oned.conf` to include it in `AUTH_MAD`.<br>
<br>
Again as `oneadmin` issue `sunstone-server start`. Now the `oned.log`<br>
shows something different:<br>
<br>
`/var/log/one/oned.log`<br>
```<br>
Tue Nov 20 11:47:52 2012 [AuM][E]: Auth Error:<br>
Tue Nov 20 11:47:52 2012 [ReM][D]: Req:8512 UID:- UserPoolInfo invoked<br>
Tue Nov 20 11:47:52 2012 [ReM][E]: Req:8512 UID:- UserPoolInfo result<br>
FAILURE [UserPoolInfo] User couldn't be authenticated, aborting call.<br>
```<br>
<br>
Found out what was wrong. User `serveradmin` had `server_core` setup as<br>
`AUTH_DRIVER`. Changed it to `server_cipher` and it works now, Sinatra<br>
has taken the stage.<br>
<br>
Thanks you all for time and help.<br>
<br></blockquote><div> </div></div></div><div>Great! You're welcome</div><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers and Goodwill,<br>
<div><div>v<br>
<br>
> ><br>
> > Thank you.<br>
> ><br>
> > On Tue, Nov 20, 2012 at 10:47:31AM +0100, Daniel Molina wrote:<br>
> > > On 20 November 2012 10:41, Valentin Bud <<a href="mailto:valentin.bud@gmail.com" target="_blank">valentin.bud@gmail.com</a>> wrote:<br>
> > ><br>
> > > > Hi Daniel,<br>
> > > > On Tue, Nov 20, 2012 at 10:31:22AM +0100, Daniel Molina wrote:<br>
> > > > > Hi Valentin,<br>
> > > > ><br>
> > > > > On 20 November 2012 08:36, Valentin Bud <<a href="mailto:valentin.bud@gmail.com" target="_blank">valentin.bud@gmail.com</a>><br>
> > wrote:<br>
> > > > ><br>
> > > > > > Hi Ruben,<br>
> > > > > ><br>
> > > > > > Thanks for your time. I followed the proposed solution but the<br>
> > result<br>
> > > > is<br>
> > > > > > the same.<br>
> > > > > ><br>
> > > > > > As `oneadmin`<br>
> > > > > > ```<br>
> > > > > > $ oneuser show 1 | grep PASS<br>
> > > > > > PASSWORD : afc0f1457b5480afd548d5a09e14171bab315d2c<br>
> > > > > ><br>
> > > > > > $ oneuser passwd 1 1234 --sha1<br>
> > > > > > $ oneuser show 1 | grep PASS<br>
> > > > > > PASSWORD : 7110eda4d09e062aa5e4a390b0a572ac0d2c0220<br>
> > > > > ><br>
> > > > > > $ echo "serveradmin:1234" > ~/.one/sunstone_auth<br>
> > > > > ><br>
> > > > ><br>
> > > > > You have to update the file in /var/lib/one (If you installed<br>
> > > > system-wide)<br>
> > > > > $ echo "serveradmin:1234" > /var/lib/one/.one/sunstone_auth<br>
> > > ><br>
> > > > That was the file, `oneadmin` user has `/var/lib/one` as $HOME (~).<br>
> > > > I should have posted using full path not ~ shortcut.<br>
> > > ><br>
> > > > ```<br>
> > > > oneadmin@:~$ cat /var/lib/one/.one/sunstone_auth<br>
> > > > serveradmin:1234<br>
> > > > ```<br>
> > > ><br>
> > > > Yes the installation is done system-wide from 3.8.1 sources.<br>
> > > ><br>
> > ><br>
> > > Could you check in your oned.conf, if the AUTH_MAD section exists. It<br>
> > > should look like this:<br>
> > ><br>
> > > AUTH_MAD = [<br>
> > > executable = "one_auth_mad",<br>
> > > authn = "ssh,x509,ldap,server_cipher,server_x509"<br>
> > > ]<br>
> > ><br>
> > ><br>
> > > > Thank you. Cheers and Goodwill,<br>
> > > > v<br>
> > > > ><br>
> > > > > Cheers<br>
> > > > ><br>
> > > > > $ cat ~/.one/sunstone_auth<br>
> > > > > > serveradmin:1234<br>
> > > > > ><br>
> > > > > > $ sunstone-server start<br>
> > > > > > Stale .lock detected. Erasing it.<br>
> > > > > > Error executing sunstone-server.<br>
> > > > > > Check /var/log/one/sunstone.error and /var/log/one/sunstone.log for<br>
> > > > more<br>
> > > > > > information<br>
> > > > > > ```<br>
> > > > > ><br>
> > > > > > `/var/log/one/sunstone.log`<br>
> > > > > ><br>
> > > > > > ```<br>
> > > > > > --------------------------------------<br>
> > > > > > Server configuration<br>
> > > > > > --------------------------------------<br>
> > > > > > {:vnc_proxy_support_wss=>false,<br>
> > > > > > :vnc_proxy_cert=>nil,<br>
> > > > > > :one_xmlrpc=>"<a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a>",<br>
> > > > > > :marketplace_url=>"<a href="https://marketplace.c12g.com/appliance" target="_blank">https://marketplace.c12g.com/appliance</a>",<br>
> > > > > > :vnc_proxy_key=>nil,<br>
> > > > > > :debug_level=>3,<br>
> > > > > > :vnc_proxy_path=>"/usr/share/one/websockify/websocketproxy.py",<br>
> > > > > > :core_auth=>"cipher",<br>
> > > > > > :host=>"127.0.0.1",<br>
> > > > > > :lang=>"en_US",<br>
> > > > > > :vnc_proxy_port=>29876,<br>
> > > > > > :auth=>"sunstone",<br>
> > > > > > :port=>9869,<br>
> > > > > > :tmpdir=>"/var/tmp"}<br>
> > > > > > Tue Nov 20 08:32:16 2012 [E]: Error initializing<br>
> > > > > > authentication system<br>
> > > > > > Tue Nov 20 08:32:16 2012 [E]: [UserPoolInfo] User<br>
> > > > > > couldn't be authenticated, aborting call.<br>
> > > > > > ```<br>
> > > > > ><br>
> > > > > > `/var/log/one/sunstone.error` is empty.<br>
> > > > > ><br>
> > > > > > Some guidance on how to debug further would be useful. Thank you.<br>
> > > > > ><br>
> > > > > > Cheers and Goodwill,<br>
> > > > > > v<br>
> > > > > ><br>
> > > > > > On Mon, Nov 19, 2012 at 10:37:02PM +0100, Ruben S. Montero wrote:<br>
> > > > > > > Hi<br>
> > > > > > ><br>
> > > > > > > It is in plain password, try the following to recreate the<br>
> > > > serveradmin<br>
> > > > > > > passwd and sunstone credentials:<br>
> > > > > > ><br>
> > > > > > > 1.- oneuser passwd 1 1234 --sha1<br>
> > > > > > > 2.- echo "serveradmin:1234" > /var/lib/one/.one/sunstone_auth<br>
> > > > > > > 3.- sunstone-server start<br>
> > > > > > ><br>
> > > > > > > Cheers<br>
> > > > > > ><br>
> > > > > > > Ruben<br>
> > > > > > ><br>
> > > > > > ><br>
> > > > > > > On Mon, Nov 19, 2012 at 2:58 PM, Valentin Bud <<br>
> > > > <a href="mailto:valentin.bud@gmail.com" target="_blank">valentin.bud@gmail.com</a><br>
> > > > > > >wrote:<br>
> > > > > > ><br>
> > > > > > > > Hello World,<br>
> > > > > > > ><br>
> > > > > > > > I have updated today from 3.6 to 3.8.1 from source on a Debian<br>
> > > > Squeeze<br>
> > > > > > > > machine. I didn't need nor want Sunstone until now. So I have<br>
> > > > followed<br>
> > > > > > > > the Sunstone documentation [1] to install and configure it.<br>
> > > > > > > ><br>
> > > > > > > > As `oneadmin` user when I try to start Sunstone I get the<br>
> > > > following the<br>
> > > > > > > > logs:<br>
> > > > > > > ><br>
> > > > > > > > ```<br>
> > > > > > > > /var/log/one/sunstone.log<br>
> > > > > > > > --------------------------------------<br>
> > > > > > > > Server configuration<br>
> > > > > > > > --------------------------------------<br>
> > > > > > > > {:vnc_proxy_support_wss=>false,<br>
> > > > > > > > :vnc_proxy_cert=>nil,<br>
> > > > > > > > :one_xmlrpc=>"<a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a>",<br>
> > > > > > > > :marketplace_url=>"<a href="https://marketplace.c12g.com/appliance" target="_blank">https://marketplace.c12g.com/appliance</a>",<br>
> > > > > > > > :vnc_proxy_key=>nil,<br>
> > > > > > > > :debug_level=>3,<br>
> > > > > > > ><br>
> > :vnc_proxy_path=>"/usr/share/one/websockify/websocketproxy.py",<br>
> > > > > > > > :core_auth=>"cipher",<br>
> > > > > > > > :host=>"127.0.0.1",<br>
> > > > > > > > :lang=>"en_US",<br>
> > > > > > > > :vnc_proxy_port=>29876,<br>
> > > > > > > > :auth=>"sunstone",<br>
> > > > > > > > :port=>9869,<br>
> > > > > > > > :tmpdir=>"/var/tmp"}<br>
> > > > > > > > Mon Nov 19 14:41:21 2012 [E]: Error initializing<br>
> > authentication<br>
> > > > system<br>
> > > > > > > > Mon Nov 19 14:41:21 2012 [E]: No such file or directory -<br>
> > > > > > > > /var/lib/one/.one/sunstone_auth<br>
> > > > > > > > ```<br>
> > > > > > > ><br>
> > > > > > > > Indeed the file in missing.<br>
> > > > > > > ><br>
> > > > > > > > ```<br>
> > > > > > > > oneadmin@frontend:~$ ls -al /var/lib/one/.one/sunstone_auth<br>
> > > > > > > > ls: cannot access /var/lib/one/.one/sunstone_auth: No such<br>
> > file or<br>
> > > > > > > > directory<br>
> > > > > > > > ```<br>
> > > > > > > ><br>
> > > > > > > > It was missing even before I have updated to 3.8.1. I have<br>
> > > > created the<br>
> > > > > > > > file with the following contents:<br>
> > > > > > > ><br>
> > > > > > > > ```<br>
> > > > > > > > /var/lib/one/.one/sunstone_auth<br>
> > > > > > > > serveradmin:af84cc76ff2f6bbede661a62f4932d739f0e1fb0<br>
> > > > > > > > ```<br>
> > > > > > > ><br>
> > > > > > > > The password part is the hashed serveradmin's key as shown by<br>
> > > > `oneuser<br>
> > > > > > > > show`.<br>
> > > > > > > ><br>
> > > > > > > > ```<br>
> > > > > > > > $ oneuser show serveradmin | grep PASS<br>
> > > > > > > > PASSWORD : af84cc76ff2f6bbede661a62f4932d739f0e1fb0<br>
> > > > > > > > ```<br>
> > > > > > > ><br>
> > > > > > > > Trying to start the server again I receive the same error a<br>
> > little<br>
> > > > bit<br>
> > > > > > > > different:<br>
> > > > > > > ><br>
> > > > > > > > ```<br>
> > > > > > > > ...<br>
> > > > > > > > Mon Nov 19 14:53:53 2012 [E]: Error initializing authentication<br>
> > > > system<br>
> > > > > > > > Mon Nov 19 14:53:53 2012 [E]: [UserPoolInfo] User couldn't be<br>
> > > > > > > > authenticated, aborting call.<br>
> > > > > > > > ```<br>
> > > > > > > ><br>
> > > > > > > > I didn't know if $HOME/.one/sunstone_auth should list the<br>
> > hashed<br>
> > > > > > > > password or the clear text one, so I've given it one more try<br>
> > and<br>
> > > > set<br>
> > > > > > up<br>
> > > > > > > > the password in clear text. Same output as the one above.<br>
> > > > > > > ><br>
> > > > > > > > If it matters here goes the content of $HOME/.one directory:<br>
> > > > > > > ><br>
> > > > > > > > ```<br>
> > > > > > > > oneadmin@frontend:~/.one$ ls -1 $HOME/.one<br>
> > > > > > > > one_auth<br>
> > > > > > > > sunstone_auth<br>
> > > > > > > > ```<br>
> > > > > > > ><br>
> > > > > > > > [1]: <a href="http://opennebula.org/documentation:rel3.8:sunstone" target="_blank">http://opennebula.org/documentation:rel3.8:sunstone</a><br>
> > > > > > > ><br>
> > > > > > > > Any hints? Thank you.<br>
> > > > > > > > v<br>
> > > > > > > > _______________________________________________<br>
> > > > > > > > Users mailing list<br>
> > > > > > > > <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
> > > > > > > > <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
> > > > > > > ><br>
> > > > > > ><br>
> > > > > > ><br>
> > > > > > ><br>
> > > > > > > --<br>
> > > > > > > Ruben S. Montero, PhD<br>
> > > > > > > Project co-Lead and Chief Architect<br>
> > > > > > > OpenNebula - The Open Source Solution for Data Center<br>
> > Virtualization<br>
> > > > > > > <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula<br>
> > > > > > _______________________________________________<br>
> > > > > > Users mailing list<br>
> > > > > > <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
> > > > > > <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
> > > > > ><br>
> > > > ><br>
> > > > ><br>
> > > > ><br>
> > > > > --<br>
> > > > > Daniel Molina<br>
> > > > > Project Engineer<br>
> > > > > OpenNebula - The Open Source Solution for Data Center Virtualization<br>
> > > > > <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula<br>
> > > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > --<br>
> > > Daniel Molina<br>
> > > Project Engineer<br>
> > > OpenNebula - The Open Source Solution for Data Center Virtualization<br>
> > > <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula<br>
> ><br>
><br>
><br>
><br>
> --<br>
> Daniel Molina<br>
> Project Engineer<br>
> OpenNebula - The Open Source Solution for Data Center Virtualization<br>
> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula<br>
</div></div></blockquote></div></div></div><div class="HOEnZb"><div class="h5"><br><br clear="all"><div><br></div>-- <br>Daniel Molina<br>Project Engineer<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula<br>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Have you tried turning it off and on again?<br>