# Upgrade form Source (DB mismatch)

**URL:** <https://forum.opennebula.io/t/upgrade-form-source-db-mismatch/6495>\
**Category:** Product Support\
**Created:** [October 7, 2018, 8:55pm UTC](https://forum.opennebula.io/t/upgrade-form-source-db-mismatch/6495 "2018-10-07T20:55:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kixz](https://avatars.discourse-cdn.com/v4/letter/k/a587f6/32.png) [@Kixz](https://forum.opennebula.io/u/Kixz)\
**Post date:** [October 7, 2018, 8:55pm UTC](https://forum.opennebula.io/t/upgrade-form-source-db-mismatch/6495/1 "2018-10-07T20:55:53Z")

</div>

Hello Team,

I updated my ON (from scource).

I got a database version mismatch on start. The upgrade db process worked great.

oned.log :  
_Database version mismatch ( local\_db\_versioning). Installed OpenNebula 5.7.80 needs DB version ‘5.6.0’, and existing DB version is ‘5.7.8’._

onedb fsck :

_Version mismatch: fsck file is for version_  
_Shared: 5.6.0, Local: 5.6.0_

_Current database is version_  
_Shared: 5.6.0, Local: 5.7.8_

any idea ?

Thanks for your help

---

<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:** [October 8, 2018, 7:03am UTC](https://forum.opennebula.io/t/upgrade-form-source-db-mismatch/6495/2 "2018-10-08T07:03:49Z")

</div>

It looks like you’ve compiled the master branch where usually the upgrade path is updated when the code is in staging before release. IMO you should use the stable branch _one-5.6_ until you know how to resolve such issues on your own.

Best Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![Kixz](https://avatars.discourse-cdn.com/v4/letter/k/a587f6/32.png) [@Kixz](https://forum.opennebula.io/u/Kixz)\
**Post date:** [October 9, 2018, 10:52am UTC](https://forum.opennebula.io/t/upgrade-form-source-db-mismatch/6495/3 "2018-10-09T10:52:49Z")

</div>

Hello Anton,

Thanks for your help.

I remove **/usr/lib/one/ruby/onedb/local/5.6.0\_to\_5.7.8.rb** before upgrade db and now it works great.

I try to compil from release-5.6.1 branch but _ **5.6.0\_to\_5.7.8.rb** _ are in the source too.  
is it normal ?

---

<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:** [October 10, 2018, 8:06am UTC](https://forum.opennebula.io/t/upgrade-form-source-db-mismatch/6495/4 "2018-10-10T08:06:53Z")

</div>

HI @Kixz,

> I try to compil from release-5.6.1 branch but 5.6.0\_to\_5.7.8.rb are in the source too.  
> is it normal ?

Yes. I’ve suggested to use _ **one-5.6** _ branch. Not sure why you are trying _release-5.6.1_ branch instead.

Also, you should consider using the [Package builder](https://github.com/OpenNebula/packages) project to build OpenNebula.

Hope this helps.

BR,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![Kixz](https://avatars.discourse-cdn.com/v4/letter/k/a587f6/32.png) [@Kixz](https://forum.opennebula.io/u/Kixz)\
**Post date:** [October 10, 2018, 11:18am UTC](https://forum.opennebula.io/t/upgrade-form-source-db-mismatch/6495/5 "2018-10-10T11:18:12Z")

</div>

I use one-5.6 branch now, it works well.

I was thinking that this banch does not included last release.

Thanks Anton
