# Oneadmin authentication issue for all one\* commands - not solved after trying available fixes

**URL:** <https://forum.opennebula.io/t/oneadmin-authentication-issue-for-all-one-commands-not-solved-after-trying-available-fixes/9523>\
**Category:** Installation & Configuration\
**Created:** [May 13, 2021, 8:15am UTC](https://forum.opennebula.io/t/oneadmin-authentication-issue-for-all-one-commands-not-solved-after-trying-available-fixes/9523 "2021-05-13T08:15:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![danilansible](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/danilansible/32/6971_2.png) [@danilansible](https://forum.opennebula.io/u/danilansible)\
**Post date:** [May 13, 2021, 8:15am UTC](https://forum.opennebula.io/t/oneadmin-authentication-issue-for-all-one-commands-not-solved-after-trying-available-fixes/9523/1 "2021-05-13T08:15:29Z")

</div>

Hi ,

Running minione 6.0.0.1 with KVM.  
I changed oneadmin password trying to fix the annoying “FireEdge private endpoint is not working, please contact your cloud administrator” alert in sunstone portal.  
using below method:  
oneuser passwd 0   
echo ‘oneadmin:PASSWORD’ \> /var/lib/one/.one/one\_auth

After reboot of the server, every one\* commands like oneuser, onevm etc are throwign this error  
“User couldn’t be authenticated, aborting call.”

All the vm creations etc are working, sunstone is working.

But nothing works commandline.  
And the error "“FireEdge private endpoint is not working, please contact your cloud administrator” didnt go away even after setting just alphanumeric simple password lowercase.

Also tried resetting password on oneadmin through this process

_#!/bin/bash_  
_systemctl stop opennebula_  
_one\_pass=“ThePassword”_  
_one\_auth=“$(echo -n $one\_pass | openssl sha1)”_  
_one\_auth="${one\_auth##_[[:space:]]}“\*  
_one\_xml=“$(sqlite3 ~oneadmin/one.db “select body from user\_pool where name=‘oneadmin’;”)”_  
_one\_xml\_new="$(echo “$one\_xml” | sed -e "s|._|$one\_auth|”)“\*  
_cp ~oneadmin/one.db ~oneadmin/one.db.orig_  
_sqlite3 ~oneadmin/one.db “update user\_pool set body=‘$one\_xml\_new’ where name=‘oneadmin’;”_  
_sed -i -e "s|oneadmin:._|oneadmin:$one\_pass|” ~oneadmin/.one/one\_auth\*  
_systemctl start opennebula_

Any thoughts, please..

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [May 13, 2021, 8:23am UTC](https://forum.opennebula.io/t/oneadmin-authentication-issue-for-all-one-commands-not-solved-after-trying-available-fixes/9523/2 "2021-05-13T08:23:24Z")

</div>

Please set the fireedge public endpoint in sunstone-server.conf

---

<div class="post-metadata">

**Author:** ![danilansible](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/danilansible/32/6971_2.png) [@danilansible](https://forum.opennebula.io/u/danilansible)\
**Post date:** [May 13, 2021, 10:06am UTC](https://forum.opennebula.io/t/oneadmin-authentication-issue-for-all-one-commands-not-solved-after-trying-available-fixes/9523/3 "2021-05-13T10:06:31Z")

</div>

Thanks tino.  
Is it possible to disable fireedge service end point for public or that service altogeather, so sunstone wont complain about it.

if I set host to 0.0.0.0, it complains “FireEdge private endpoint is not working”  
If set to 127.0.0.1 “FireEdge public endpoint is not working”

Another thing on one\* commands is still an issue,  
Verified if this is the bug of login template as suggested in [OpenNebula 6.0 Authentication stopped working - #3 by AaronLea](https://forum.opennebula.io/t/opennebula-6-0-authentication-stopped-working/9463/3)

in 6.0.0.1, there is no login template in the xml for oneuser too.  
Interesting whatelse the issue could be

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [May 13, 2021, 2:46pm UTC](https://forum.opennebula.io/t/oneadmin-authentication-issue-for-all-one-commands-not-solved-after-trying-available-fixes/9523/4 "2021-05-13T14:46:45Z")

</div>

> [@danilansible](#):
>
> Is it possible to disable fireedge service end point for public or that service altogeather, so sunstone wont complain about it.
> 
> if I set host to 0.0.0.0, it complains “FireEdge private endpoint is not working”  
> If set to 127.0.0.1 “FireEdge public endpoint is not working”

Defining fireedge host to 127.0.0.1 in _/etc/one/fireedge-server.conf_

```
# FireEdge server host
host: '127.0.0.1'

```

and commenting fireedge related variables in _/etc/one/sunstone-server.conf_

```
#:private_fireedge_endpoint: http://localhost:2616
#:public_fireedge_endpoint: http://localhost:2616

```

Should satisfy the sunstone checks for fireedge (and disable the fireedge in sunstone)

Hope this helps…

Best Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![danilansible](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/danilansible/32/6971_2.png) [@danilansible](https://forum.opennebula.io/u/danilansible)\
**Post date:** [May 14, 2021, 3:03am UTC](https://forum.opennebula.io/t/oneadmin-authentication-issue-for-all-one-commands-not-solved-after-trying-available-fixes/9523/5 "2021-05-14T03:03:48Z")

</div>

Yes it did help. Thank you so much for the guidance Anton.

Any thoughts around the one commands error, “User couldn’t be authenticated, aborting call.”

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [May 14, 2021, 8:23am UTC](https://forum.opennebula.io/t/oneadmin-authentication-issue-for-all-one-commands-not-solved-after-trying-available-fixes/9523/6 "2021-05-14T08:23:50Z")

</div>

> [@danilansible](#):
>
> Any thoughts around the one commands error, “User couldn’t be authenticated, aborting call.”

What DB backed you are using? sqlite or MySQL?

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [May 14, 2021, 8:27am UTC](https://forum.opennebula.io/t/oneadmin-authentication-issue-for-all-one-commands-not-solved-after-trying-available-fixes/9523/7 "2021-05-14T08:27:59Z")

</div>

```auto
one_auth="$(echo -n $one_pass | openssl sha1)"

```

And what is the OpenNebula version? Asking because _sha1_ is deprecated in flavor of _sha256_…

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [May 14, 2021, 8:33am UTC](https://forum.opennebula.io/t/oneadmin-authentication-issue-for-all-one-commands-not-solved-after-trying-available-fixes/9523/8 "2021-05-14T08:33:05Z")

</div>

This is a working example:

```auto
[root@one512 ~]# cat ~oneadmin/.one/one_auth
oneadmin:storpool
[root@one512 .one]# echo -n storpool | openssl sha256
(stdin)= c8a51c959348b6d8d98d1f5c1b5385433e64f8f992735d0da5fa832634dcb8d8
[root@one512 ~]# mysql opennebula -e "select * from user_pool where oid=0;"
+-----+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+---------+---------+---------+
| oid | name | body | uid | gid | owner_u | group_u | other_u |
+-----+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+---------+---------+---------+
| 0 | oneadmin | <USER><ID>0</ID><GID>0</GID><GROUPS><ID>0</ID></GROUPS><GNAME>oneadmin</GNAME><NAME>oneadmin</NAME><PASSWORD><![CDATA[c8a51c959348b6d8d98d1f5c1b5385433e64f8f992735d0da5fa832634dcb8d8]]></PASSWORD><AUTH_DRIVER><![CDATA[core]]></AUTH_DRIVER><ENABLED>1</ENABLED><TEMPLATE><TOKEN_PASSWORD><![CDATA[03523f89fa96f017efffeb888225fb9f1f5db61ce6e07d8d0a47878859f683f1]]></TOKEN_PASSWORD></TEMPLATE></USER> | 0 | 0 | 1 | 0 | 0 |
+-----+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+---------+---------+---------+

```

---

<div class="post-metadata">

**Author:** ![danilansible](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/danilansible/32/6971_2.png) [@danilansible](https://forum.opennebula.io/u/danilansible)\
**Post date:** [May 14, 2021, 10:35am UTC](https://forum.opennebula.io/t/oneadmin-authentication-issue-for-all-one-commands-not-solved-after-trying-available-fixes/9523/9 "2021-05-14T10:35:48Z")

</div>

I’m using 6.0.0.1 , sqlite backend.

sha1 could be it then, I had to purge the previous install and did a fresh one.  
Thanks for the hints, much appreciated Anton!
