<br><br><div class="gmail_quote">On 20 November 2012 10:41, 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">
Hi Daniel,<br>
<div class="im">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">valentin.bud@gmail.com</a>> wrote:<br>
><br>
> > Hi Ruben,<br>
> ><br>
> > Thanks for your time. I followed the proposed solution but the result 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 system-wide)<br>
> $ echo "serveradmin:1234" > /var/lib/one/.one/sunstone_auth<br>
<br>
</div>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></blockquote><div><br></div><div>Could you check in your oned.conf, if the AUTH_MAD section exists. It should look like this:</div><div><br></div><div><div>
AUTH_MAD = [</div><div> executable = "one_auth_mad",</div><div> authn = "ssh,x509,ldap,server_cipher,server_x509"</div><div>]</div></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><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 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 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 <<a href="mailto:valentin.bud@gmail.com">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 Squeeze<br>
> > > > machine. I didn't need nor want Sunstone until now. So I have 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 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>
> > > > :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 authentication 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 file or<br>
> > > > directory<br>
> > > > ```<br>
> > > ><br>
> > > > It was missing even before I have updated to 3.8.1. I have 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 `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 little bit<br>
> > > > different:<br>
> > > ><br>
> > > > ```<br>
> > > > ...<br>
> > > > Mon Nov 19 14:53:53 2012 [E]: Error initializing authentication 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 hashed<br>
> > > > password or the clear text one, so I've given it one more try and 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">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 Virtualization<br>
> > > <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org">rsmontero@opennebula.org</a> | @OpenNebula<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>
><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">dmolina@opennebula.org</a> | @OpenNebula<br>
</div></div></blockquote></div><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>