Database migration to 7.0 problem

Hello,

I have a problem with DB migration to 7.0.0:

Any idea?

sudo onedb upgrade -v
Version read:
Shared tables 6.10.0 : Database migrated from 6.8.0 to 6.10.0 (OpenNebula 6.10.0) by onedb command.
Local tables 6.10.0 : Database migrated from 6.8.0 to 6.10.0 (OpenNebula 6.10.0) by onedb command.

Sqlite database backup stored in /var/lib/one/one.db_2025-8-9_19:1:39.bck
Use ‘onedb restore’ to restore the DB.

Running migrators for shared tables
Running migrator /usr/lib/one/ruby/onedb/shared/6.10.0_to_7.0.0.rb
Done in 0.00s

Database migrated from 6.10.0 to 7.0.0 (OpenNebula 7.0.0) by onedb command.

Running migrators for local tables
Running migrator /usr/lib/one/ruby/onedb/local/6.10.0_to_7.0.0.rb

undefined method `map’ for nil:NilClass
/usr/lib/one/ruby/onedb/local/6.10.0_to_7.0.0.rb:115:in `block in feature_6648’
/usr/lib/one/ruby/onedb/local/6.10.0_to_7.0.0.rb:114:in `transform_values’
/usr/lib/one/ruby/onedb/local/6.10.0_to_7.0.0.rb:114:in `feature_6648’
/usr/lib/one/ruby/onedb/local/6.10.0_to_7.0.0.rb:85:in `up’
/usr/lib/one/ruby/onedb/onedb.rb:416:in `apply_migrators’
/usr/lib/one/ruby/onedb/onedb.rb:305:in `upgrade’
/usr/bin/onedb:453:in `block (2 levels) in ’
/usr/lib/one/ruby/cli/command_parser.rb:476:in `run’
/usr/lib/one/ruby/cli/command_parser.rb:84:in `initialize’
/usr/bin/onedb:339:in `new’
/usr/bin/onedb:339:in `’

The database will be restored
Sqlite database backup restored in /var/lib/one/one.db

Hello!

It looks like you faced a known issue which we have a note about in the Known Issues and highlighted in Important note in our Upgrade guide:

Note: This step only applies to installations prior to version 7.0 that have defined custom default label groups in /etc/one/sunstone-views.yaml and wish to preserve them.
Before proceeding, back up the /etc/one/sunstone-views.yaml file. After completing the onecfg upgrade step, restore the file to its original location. Once the upgrade is fully finalized and the custom labels are confirmed to be migrated, the file may be safely removed.

but i have not custom default label group:

-–
logo: images/opennebula-5.0.png
groups:
oneadmin:
- admin
- admin_vcenter
- groupadmin
- groupadmin_vcenter
- user
- cloud
- cloud_vcenter
default:
- cloud
default_groupadmin:
- groupadmin
- cloud
labels_groups:
default:
/etc/one/sunstone-views.yaml (END)

After removing /etc/one/sunstone-views.yaml the db upgrade was successful. Thanks!

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