[one-users] Can't loginto sunstone after upgrade to 4.8

Daniel Dehennin daniel.dehennin at baby-gnu.org
Fri Aug 29 03:29:10 PDT 2014


Ale <ale975 at gmail.com> writes:

> Hello all,
>
> After upgrade opennebula from 4.6 to 4.8 through deb, i follow the steps on
> the upgrade guide.
>
> oned.log report "bad decript" http://pastebin.com/KfVYpeSL
>
> Probably i've made some mistake, any suggestion?

This means that the /var/lib/one/.one/sunstone_auth does not match the
password in the database.

Does the CLIs work for oneadmin user?

    oneadmin at nebula:~$ onehost list

I personally reset the serveradmin password with the following:

    # Generate a random password
    oneadmin at nebula:~$ pwgen -s 42 1 > serveradmin.pwd

    # Make serveradmin using core auth to change the password
    oneadmin at nebula:~$ oneuser chauth serveradmin core -r serveradmin.pwd

    # Switch back to server_cipher
    oneadmin at nebula:~$ oneuser chauth serveradmin server_cipher

    # Store new password
    oneadmin at nebula:~$ for f in sunstone ec2 occi oneflow onegate; do \
        echo "serveradmin:$(cat serveradmin.pwd)" > ~/.one/${f}_auth ; \
        done

Then you can restart Sunstone.

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 342 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140829/caa334ef/attachment.pgp>


More information about the Users mailing list