Hello everybody,
I tried to update my lab environment to 6.10 and experienced a bug/failure. If I try to upgrade the db I get the following error:
Version read:
Shared tables 6.8.0 : Database migrated from 6.6.0 to 6.8.0 (OpenNebula 6.8.0) by onedb command.
Local tables 6.8.0 : Database migrated from 6.6.0 to 6.8.0 (OpenNebula 6.8.0) by onedb command.
MySQL dump stored in /var/lib/one/mysql_localhost_opennebula_2024-9-3_10:50:52.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/6.8.0_to_6.10.0.rbm
> Done in 0.00s
Database migrated from 6.8.0 to 6.10.0 (OpenNebula 6.10.0) by onedb command.
>>> Running migrators for local tables
> Running migrator /usr/lib/one/ruby/onedb/local/6.8.0_to_6.10.0.rbm
#<ArgumentError: invalid byte sequence in UTF-8>
/usr/share/ruby/rexml/source.rb:189:in `check'
/usr/share/ruby/rexml/source.rb:189:in `match'
/usr/share/ruby/rexml/parsers/baseparser.rb:394:in `pull_event'
/usr/share/ruby/rexml/parsers/baseparser.rb:216:in `pull'
/usr/share/ruby/rexml/parsers/treeparser.rb:23:in `parse'
/usr/share/ruby/rexml/document.rb:288:in `build'
/usr/share/ruby/rexml/document.rb:45:in `initialize'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/xml_mini/rexml.rb:27:in `new'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/xml_mini/rexml.rb:27:in `parse'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/xml_mini.rb:99:in `parse'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/core_ext/hash/conversions.rb:131:in `initialize'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/core_ext/hash/conversions.rb:110:in `new'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/core_ext/hash/conversions.rb:110:in `from_xml'
local/6.8.0_to_6.10.0.rb:125:in `block (2 levels) in feature_5861'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/dataset/actions.rb:164:in `block in each'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:243:in `block (2 levels) in fetch_rows'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:243:in `each'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:243:in `block in fetch_rows'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:157:in `_execute'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/utils/mysql_mysql2.rb:40:in `block in execute'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/connection_pool/threaded.rb:88:in `hold'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/connecting.rb:286:in `synchronize'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/utils/mysql_mysql2.rb:40:in `execute'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/dataset/actions.rb:1189:in `execute'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:281:in `execute'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:241:in `fetch_rows'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/dataset/actions.rb:164:in `each'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/dataset.rb:61:in `fetch'
local/6.8.0_to_6.10.0.rb:122:in `block in feature_5861'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/transactions.rb:264:in `_transaction'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/transactions.rb:239:in `block in transaction'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/connection_pool/threaded.rb:92:in `hold'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/connecting.rb:286:in `synchronize'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/transactions.rb:197:in `transaction'
local/6.8.0_to_6.10.0.rb:121:in `feature_5861'
local/6.8.0_to_6.10.0.rb:41:in `up'
/usr/lib/one/ruby/onedb/onedb.rb:416:in `apply_migrators'
/usr/lib/one/ruby/onedb/onedb.rb:306:in `upgrade'
/usr/bin/onedb:469:in `block (2 levels) in <main>'
/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:355:in `new'
/usr/bin/onedb:355:in `<main>'
...
Exception parsing
Line: 143
Position: 5822
Last 80 unconsumed characters:
[CDATA[Ubuntu Server 18.04 Template System HDD 10GB - Update 24032020 Login: use
/usr/share/ruby/rexml/parsers/baseparser.rb:455:in `rescue in pull_event'
/usr/share/ruby/rexml/parsers/baseparser.rb:376:in `pull_event'
/usr/share/ruby/rexml/parsers/baseparser.rb:216:in `pull'
/usr/share/ruby/rexml/parsers/treeparser.rb:23:in `parse'
/usr/share/ruby/rexml/document.rb:288:in `build'
/usr/share/ruby/rexml/document.rb:45:in `initialize'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/xml_mini/rexml.rb:27:in `new'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/xml_mini/rexml.rb:27:in `parse'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/xml_mini.rb:99:in `parse'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/core_ext/hash/conversions.rb:131:in `initialize'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/core_ext/hash/conversions.rb:110:in `new'
/usr/share/one/gems-dist/gems/activesupport-4.2.11.3/lib/active_support/core_ext/hash/conversions.rb:110:in `from_xml'
local/6.8.0_to_6.10.0.rb:125:in `block (2 levels) in feature_5861'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/dataset/actions.rb:164:in `block in each'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:243:in `block (2 levels) in fetch_rows'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:243:in `each'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:243:in `block in fetch_rows'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:157:in `_execute'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/utils/mysql_mysql2.rb:40:in `block in execute'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/connection_pool/threaded.rb:88:in `hold'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/connecting.rb:286:in `synchronize'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/utils/mysql_mysql2.rb:40:in `execute'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/dataset/actions.rb:1189:in `execute'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:281:in `execute'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/adapters/mysql2.rb:241:in `fetch_rows'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/dataset/actions.rb:164:in `each'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/dataset.rb:61:in `fetch'
local/6.8.0_to_6.10.0.rb:122:in `block in feature_5861'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/transactions.rb:264:in `_transaction'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/transactions.rb:239:in `block in transaction'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/connection_pool/threaded.rb:92:in `hold'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/connecting.rb:286:in `synchronize'
/usr/share/one/gems-dist/gems/sequel-5.82.0/lib/sequel/database/transactions.rb:197:in `transaction'
local/6.8.0_to_6.10.0.rb:121:in `feature_5861'
local/6.8.0_to_6.10.0.rb:41:in `up'
/usr/lib/one/ruby/onedb/onedb.rb:416:in `apply_migrators'
/usr/lib/one/ruby/onedb/onedb.rb:306:in `upgrade'
/usr/bin/onedb:469:in `block (2 levels) in <main>'
/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:355:in `new'
/usr/bin/onedb:355:in `<main>'
The database will be restored
MySQL DB opennebula at localhost restored.