# Onedb upgrade 5.6 to 5.8 upgrades database to 5.10

**URL:** <https://forum.opennebula.io/t/onedb-upgrade-5-6-to-5-8-upgrades-database-to-5-10/7441>\
**Category:** Installation & Configuration\
**Created:** [July 11, 2019, 2:14pm UTC](https://forum.opennebula.io/t/onedb-upgrade-5-6-to-5-8-upgrades-database-to-5-10/7441 "2019-07-11T14:14:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vizo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vizo/32/4559_2.png) [@vizo](https://forum.opennebula.io/u/vizo)\
**Post date:** [July 11, 2019, 2:14pm UTC](https://forum.opennebula.io/t/onedb-upgrade-5-6-to-5-8-upgrades-database-to-5-10/7441/1 "2019-07-11T14:14:59Z")

</div>

Trying to upgrade my opennebula to 5.8.1 when I run onedb upgrade this happens  
onedb upgrade 5.8.1 -v -S localhost -u oneadmin -p oneadmin -d opennebula  
Version read:  
Shared tables 5.2.0 : Database migrated from 4.11.80 to 5.2.0 (OpenNebula 5.2.0) by onedb command.  
Local tables 4.90.0 : Database migrated from 4.13.85 to 4.90.0 (OpenNebula 4.90.0) by onedb command.

MySQL dump stored in /var/lib/one/mysql\_localhost\_opennebula\_2019-7-11\_10:32:1.sql  
Use ‘onedb restore’ or restore the DB using the mysql command:  
mysql -u user -h server -P port db\_name \< backup\_file

> > > Running migrators for shared tables  
> > > Running migrator /usr/lib/one/ruby/onedb/shared/5.2.0\_to\_5.3.80.rb  
> > > Done in 0.00s

> Running migrator /usr/lib/one/ruby/onedb/shared/5.3.80\_to\_5.4.0.rb  
> Done in 0.00s

> Running migrator /usr/lib/one/ruby/onedb/shared/5.4.0\_to\_5.4.1.rb  
> Done in 0.00s

> Running migrator /usr/lib/one/ruby/onedb/shared/5.4.1\_to\_5.5.80.rb  
> Done in 0.00s

> Running migrator /usr/lib/one/ruby/onedb/shared/5.5.80\_to\_5.6.0.rb  
> Done in 0.00s

> Running migrator /usr/lib/one/ruby/onedb/shared/5.6.0\_to\_5.10.0.rb  
> Done in 0.00s

Database migrated from 5.2.0 to 5.10.0 (OpenNebula 5.9.80) by onedb command.

> > > Running migrators for local tables  
> > > Running migrator /usr/lib/one/ruby/onedb/local/4.90.0\_to\_5.3.80.rb  
> > > Old EC2 file not found, skipping EC2 host migration  
> > > Done in 31.02s

> Running migrator /usr/lib/one/ruby/onedb/local/5.3.80\_to\_5.4.0.rb  
> Done in 0.00s

> Running migrator /usr/lib/one/ruby/onedb/local/5.4.0\_to\_5.4.1.rb  
> Done in 1.93s

> Running migrator /usr/lib/one/ruby/onedb/local/5.4.1\_to\_5.5.80.rb  
> Old Az file not found, skipping Az host migration  
> Done in 14.38s

> Running migrator /usr/lib/one/ruby/onedb/local/5.5.80\_to\_5.6.0.rb  
> Done in 0.00s

> Running migrator /usr/lib/one/ruby/onedb/local/5.6.0\_to\_5.7.80.rb  
> Done in 94.74s

> Running migrator /usr/lib/one/ruby/onedb/local/5.7.80\_to\_5.8.0.rb  
> Done in 0.00s

> Running migrator /usr/lib/one/ruby/onedb/local/5.8.0\_to\_5.10.0.rb  
> Done in 6.07s

Database migrated from 4.90.0 to 5.10.0 (OpenNebula 5.9.80) by onedb command.

then I get a version mismatch when I do “one start” any ideas ho to resolve this

---

<div class="post-metadata">

**Author:** ![vholer](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vholer/32/4392_2.png) [@vholer](https://forum.opennebula.io/u/vholer)\
**Post date:** [July 12, 2019, 8:27am UTC](https://forum.opennebula.io/t/onedb-upgrade-5-6-to-5-8-upgrades-database-to-5-10/7441/2 "2019-07-12T08:27:54Z")

</div>

Hello,

where / how did you get these packages? What is the OS? Can you provide metadata from a server package? (`rpm -qi opennebula-server` or `apt-cache show opennebula`).

These doesn’t look like a valid official packages for 5.8.1.

Best,  
Vlastimil

---

<div class="post-metadata">

**Author:** ![vizo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vizo/32/4559_2.png) [@vizo](https://forum.opennebula.io/u/vizo)\
**Post date:** [July 12, 2019, 3:28pm UTC](https://forum.opennebula.io/t/onedb-upgrade-5-6-to-5-8-upgrades-database-to-5-10/7441/3 "2019-07-12T15:28:24Z")

</div>

yeah cause I’m doing from source ’ gentoo user’. Went to github and cloned the source from there and everything works now except sunstone ,but thats a migration to a new server issue not a upgrade issue. Will start a new topic for that

---

<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:** [July 8, 2025, 3:53pm UTC](https://forum.opennebula.io/t/onedb-upgrade-5-6-to-5-8-upgrades-database-to-5-10/7441/4 "2025-07-08T15:53:49Z")

</div>

Closed on July 8, 2025, 3:53pm UTC

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