Upgrade form Source (DB mismatch)

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

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

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 ?

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 project to build OpenNebula.

Hope this helps.

BR,
Anton Todorov

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

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

Thanks Anton