[one-users] Sunstone "Error initializing authentication system"

Ruben S. Montero rsmontero at opennebula.org
Mon Nov 19 13:37:02 PST 2012


Hi

It is in plain password, try the following to recreate the serveradmin
passwd and sunstone credentials:

1.- oneuser passwd 1 1234 --sha1
2.-  echo "serveradmin:1234" > /var/lib/one/.one/sunstone_auth
3.- sunstone-server start

Cheers

Ruben


On Mon, Nov 19, 2012 at 2:58 PM, Valentin Bud <valentin.bud at gmail.com>wrote:

> Hello World,
>
> I have updated today from 3.6 to 3.8.1 from source on a Debian Squeeze
> machine. I didn't need nor want Sunstone until now. So I have followed
> the Sunstone documentation [1] to install and configure it.
>
> As `oneadmin` user when I try to start Sunstone I get the following the
> logs:
>
> ```
> /var/log/one/sunstone.log
> --------------------------------------
> Server configuration
> --------------------------------------
> {:vnc_proxy_support_wss=>false,
>  :vnc_proxy_cert=>nil,
>  :one_xmlrpc=>"http://localhost:2633/RPC2",
>  :marketplace_url=>"https://marketplace.c12g.com/appliance",
>  :vnc_proxy_key=>nil,
>  :debug_level=>3,
>  :vnc_proxy_path=>"/usr/share/one/websockify/websocketproxy.py",
>  :core_auth=>"cipher",
>  :host=>"127.0.0.1",
>  :lang=>"en_US",
>  :vnc_proxy_port=>29876,
>  :auth=>"sunstone",
>  :port=>9869,
>  :tmpdir=>"/var/tmp"}
>  Mon Nov 19 14:41:21 2012 [E]: Error initializing authentication system
>  Mon Nov 19 14:41:21 2012 [E]: No such file or directory -
> /var/lib/one/.one/sunstone_auth
>  ```
>
>  Indeed the file in missing.
>
>  ```
>  oneadmin at frontend:~$ ls -al /var/lib/one/.one/sunstone_auth
>  ls: cannot access /var/lib/one/.one/sunstone_auth: No such file or
>  directory
>  ```
>
>  It was missing even before I have updated to 3.8.1. I have created the
>  file with the following contents:
>
>  ```
>  /var/lib/one/.one/sunstone_auth
>  serveradmin:af84cc76ff2f6bbede661a62f4932d739f0e1fb0
>  ```
>
>  The password part is the hashed serveradmin's key as shown by `oneuser
>  show`.
>
>  ```
>  $ oneuser show serveradmin | grep PASS
>  PASSWORD       : af84cc76ff2f6bbede661a62f4932d739f0e1fb0
>  ```
>
> Trying to start the server again I receive the same error a little bit
> different:
>
> ```
> ...
> Mon Nov 19 14:53:53 2012 [E]: Error initializing authentication system
> Mon Nov 19 14:53:53 2012 [E]: [UserPoolInfo] User couldn't be
> authenticated, aborting call.
> ```
>
> I didn't know if $HOME/.one/sunstone_auth should list the hashed
> password or the clear text one, so I've given it one more try and set up
> the password in clear text. Same output as the one above.
>
> If it matters here goes the content of $HOME/.one directory:
>
> ```
> oneadmin at frontend:~/.one$ ls -1 $HOME/.one
> one_auth
> sunstone_auth
> ```
>
> [1]: http://opennebula.org/documentation:rel3.8:sunstone
>
> Any hints? Thank you.
> v
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121119/486983be/attachment-0002.htm>


More information about the Users mailing list