# Updating keys when upgrading ONE

**URL:** <https://forum.opennebula.io/t/updating-keys-when-upgrading-one/14358>\
**Category:** Installation & Configuration\
**Created:** [December 30, 2025, 2:20pm UTC](https://forum.opennebula.io/t/updating-keys-when-upgrading-one/14358 "2025-12-30T14:20:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tosaraja](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tosaraja/32/6686_2.png) [@tosaraja](https://forum.opennebula.io/u/tosaraja)\
**Post date:** [December 30, 2025, 2:20pm UTC](https://forum.opennebula.io/t/updating-keys-when-upgrading-one/14358/1 "2025-12-30T14:20:31Z")

</div>

So we’re trying to upgrade our ONE 6.8 to 7.0.1. We set up ONE 7 on a new VM, but have to import database stuff from 6.8. So our steps are as follows:

- We installed 7.0.1 on the new VM
- Took an SQL dump on the old 6.8
- Dropped the database on 7
- Created an empty opennebula database on 7
- Imported the 6.8 database on the ONE 7 VM
- Start opennebula 7
- Run onedb upgrade
- Run onedb fsck on the database

At this point, if we launch opennebula and opennebula-fireedge we can’t log in there. In the logs we get this:

> [Z0][AuM][I]: Command execution failed (exit code: 255): /var/lib/one/remotes/auth/server\_cipher/authenticate
> 
> [Z0][AuM][I]: bad decrypt
> 
> [Z0][AuM][E]: Auth Error: bad decrypt

And after playing around with keys for a moment, we managed to change it to this:

> Tue Dec 30 14:03:47 2025 [Z0][AuM][I]: Command execution failed (exit code: 255): /var/lib/one/remotes/auth/server\_cipher/authenticate  
> Tue Dec 30 14:03:47 2025 [Z0][AuM][I]: key must be 32 bytes  
> Tue Dec 30 14:03:47 2025 [Z0][AuM][D]: \_authenticate: key must be 32 bytes  
> Tue Dec 30 14:03:47 2025 [Z0][AuM][E]: Auth Error: key must be 32 bytes

We also tried deleting fireedge\_key, as it gets automatically regenerated as we start fireedge.

Either way, we can’t manage to get rid of the key errors. What exactly are the steps to regenerate the proper keys or which passwords should we reset to get things rolling again?

It looks like everything else works, but fireedge can’t log in.

---

<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:** [January 5, 2026, 11:14am UTC](https://forum.opennebula.io/t/updating-keys-when-upgrading-one/14358/2 "2026-01-05T11:14:48Z")

</div>

Hello,  
Following your procedure, it looks like you’ve started at least once the opennebula service that does the initial bootstrap of the database on the first start. Besides the database, it bootstraps(creates) the authentication keys/tokens/ in `/var/lib/one/.one`. Furthermore, following the above procedures, it appears that you’ve missed copying the keys/tokens from the old instance (which are linked to the “old” database).  
So, you could try, just in case, to first back up the content of `/var/lib/one/.one` on the 7.0 instance and replace the files with the ones from the 6.8.  
Also, I assume 6.8 is not a typo, because a change in the encryption happened after opennebula 5.8. If it is indeed a typo and you are migrating from 5.8, then an additional step is needed to update the hashes in the database, as described [here](https://docs.opennebula.io/5.10/intro_release_notes/upgrades/upgrade_58.html#step-9-update-serveradmin-password-to-sha256).

Hope this helps.

Best Regards and Happy New Year,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/1/14d66f1130b9cd292905f575da9b68a9f574dd03.png) [@system](https://forum.opennebula.io/u/system)\
**Post date:** [February 4, 2026, 11:15am UTC](https://forum.opennebula.io/t/updating-keys-when-upgrading-one/14358/3 "2026-02-04T11:15:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
