After restarting the server I am not able to login error message “OpenNebula is not running or there was a server exception. Please check the server logs.”
Hello,
Please read:
Hi,
I can not sign in to Sunstone with any user names.
After restarting opennebula.service and opennebula-sunstone.service.
In the log file oned.log writes:
oneadmin@server01:~$ tail -f /var/log/one/oned.log | grep ‘[AuM]’
Fri Sep 28 13:38:55 2018 [Z0][AuM][I]: Stopping Authorization Manager…
Fri Sep 28 13:38:56 2018 [Z0][AuM][I]: Authorization Manager stopped.
tail: /var/log/one/oned.log: file truncated
Fri Sep 28 13:38:56 2018 [Z0][AuM][I]: Starting Auth Manager…
Fri Sep 28 13:38:56 2018 [Z0][AuM][I]: Authorization Manager started.
Fri Sep 28 13:39:00 2018 [Z0][AuM][I]: Loading Auth. Manager driver.
Fri Sep 28 13:39:01 2018 [Z0][AuM][I]: Auth Manager loaded
Fri Sep 28 13:39:21 2018 [Z0][AuM][D]: Message received: AUTHENTICATE FAILURE 0 Authentication driver ‘default’ not available
Fri Sep 28 13:39:21 2018 [Z0][AuM][E]: Auth Error: Authentication driver ‘default’ not available
Log for sunstone:
oneadmin@server01:~$ cat /var/log/one/sunstone.log
Fri Sep 28 14:22:22 2018 [I]: 93.29.23.97 - - [28/Sep/2018:14:22:22 +0200] “GET / HTTP/1.1” 200 - 0.0100
Fri Sep 28 14:22:22 2018 [I]: 93.29.23.97 - - [28/Sep/2018:14:22:22 +0200] “GET /images/favicon.png HTTP/1.1” 200 - 0.0016
Fri Sep 28 14:22:26 2018 [E]: [one.user.info] User couldn’t be authenticated, aborting call.
Fri Sep 28 14:22:26 2018 [I]: 93.29.23.97 - - [28/Sep/2018:14:22:26 +0200] “POST /login HTTP/1.1” 500 - 0.0101
This problem was created when I removed the default cluster from the default VDC. Later, I returned everything as it was, but the problem remained.
I did not change anything in oned.conf for Authentication.
oneadmin@server01:~$ nano /etc/one/oned.conf
[…]
#Auth Manager Configuration
AUTH_MAD = [
EXECUTABLE = “one_auth_mad”,
AUTHN = “ssh,x509,ldap,server_cipher,server_x509”
]
#DEFAULT_AUTH = “default”
SESSION_EXPIRATION_TIME = 900
#ENABLE_OTHER_PERMISSIONS = “YES”
DEFAULT_UMASK = 177
[…]
VDC looks like this.
oneadmin@server01:~ onevdc list
ID NAME GROUPS CLUSTERS HOSTS VNETS DATASTORES
0 default 6 1 1 3 3
oneadmin@server01:~ onevdc show 0
VDC 0 INFORMATION
ID : 0
NAME : default
GROUPS
0
1
100
101
102
103
CLUSTERS
ZONE CLUSTER
0 0
HOSTS
ZONE HOST
0 3
DATASTORES
ZONE DATASTORE
0 0
0 1
0 2
VNETS
ZONE VNET
0 16
0 17
0 18
VDC TEMPLATE
DESCRIPTION=“Every new group is added to this VDC. Use it to store default access rules for your groups. NOTE: You may need to remove a group from the default VDC before assigning it to other VDC.”
ACLs look like this:
oneadmin@server01:~$ oneacl list
Does anyone (@UAnton) know how to solve this problem?
If necessary I will attach another log or anything else.
BR,
Miljan
It seems your /var/lib/one/.one/sunstone_auth file is wrong. Did you recently updated your password or changed something inside /var/lib/one/.one?
No, I didn’t change anything in /var/lib/one/.one and I did not change my password either.
Also in the oned.log are these messages:
Wed Oct 3 21:39:20 2018 [Z0][ReM][D]: Req:832 UID:-1 one.documentpool.info invoked , -2, -1, -1, 100
Wed Oct 3 21:39:20 2018 [Z0][ReM][E]: Req:832 UID:- one.documentpool.info result FAILURE [one.documentpool.info] User couldn’t be authenticated, aborting call.
Does that mean anything to you?