Hello, i have been upgrading from 4.10.2 to 4.12.0 following the documentation and when i’ve tried to upgrade the sqlite one.db with the command “onedb upgrade -v --sqlite /var/lib/one/one.db” i’ve got the follow error…
Version read:
Shared tables 4.6.0 : OpenNebula 4.10.2 daemon bootstrap
Local tables 4.9.80 : OpenNebula 4.10.2 daemon bootstrap
Sqlite database backup stored in /var/lib/one/one.db_2015-3-11_10:43:59.bck
Use 'onedb restore' or copy the file back to restore the DB.
>>> Running migrators for shared tables
> Running migrator /usr/lib/one/ruby/onedb/shared/4.6.0_to_4.11.80.rb
> Done in 0.02s
Database migrated from 4.6.0 to 4.11.80 (OpenNebula 4.11.80) by onedb command.
>>> Running migrators for local tables
> Running migrator /usr/lib/one/ruby/onedb/local/4.9.80_to_4.10.3.rb
> Done in 0.00s
> Running migrator /usr/lib/one/ruby/onedb/local/4.10.3_to_4.11.80.rb
ArgumentError: invalid byte sequence in US-ASCII
/usr/lib/ruby/vendor_ruby/sqlite3/database.rb:48:in `gsub'
/usr/lib/ruby/vendor_ruby/sqlite3/database.rb:48:in `quote'
/usr/lib/ruby/vendor_ruby/sequel/adapters/sqlite.rb:398:in `literal_string_append'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:86:in `literal_append'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:881:in `block in expression_list_append'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:879:in `each'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:879:in `expression_list_append'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:309:in `array_sql_append'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:1029:in `literal_array_append'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:105:in `literal_append'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:991:in `insert_values_sql'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:819:in `block in clause_sql'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:819:in `each'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:819:in `clause_sql'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:723:in `_insert_sql'
/usr/lib/ruby/vendor_ruby/sequel/dataset/sql.rb:62:in `insert_sql'
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:334:in `insert'
/usr/lib/one/ruby/onedb/local/4.10.3_to_4.11.80.rb:86:in `block (2 levels) in up'
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:144:in `block in each'
/usr/lib/ruby/vendor_ruby/sequel/adapters/sqlite.rb:371:in `block (2 levels) in fetch_rows'
/usr/lib/ruby/vendor_ruby/sqlite3/resultset.rb:138:in `each'
/usr/lib/ruby/vendor_ruby/sequel/adapters/sqlite.rb:362:in `block in fetch_rows'
/usr/lib/ruby/vendor_ruby/sqlite3/database.rb:266:in `query'
/usr/lib/ruby/vendor_ruby/sequel/adapters/sqlite.rb:179:in `block (2 levels) in _execute'
/usr/lib/ruby/vendor_ruby/sequel/database/logging.rb:33:in `log_yield'
/usr/lib/ruby/vendor_ruby/sequel/adapters/sqlite.rb:179:in `block in _execute'
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:229:in `block in synchronize'
/usr/lib/ruby/vendor_ruby/sequel/connection_pool/threaded.rb:91:in `hold'
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:229:in `synchronize'
/usr/lib/ruby/vendor_ruby/sequel/adapters/sqlite.rb:172:in `_execute'
/usr/lib/ruby/vendor_ruby/sequel/adapters/sqlite.rb:122:in `execute'
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:794:in `execute'
/usr/lib/ruby/vendor_ruby/sequel/adapters/sqlite.rb:356:in `fetch_rows'
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:144:in `each'
/usr/lib/ruby/vendor_ruby/sequel/database/dataset.rb:46:in `fetch'
/usr/lib/one/ruby/onedb/local/4.10.3_to_4.11.80.rb:76:in `block in up'
/usr/lib/ruby/vendor_ruby/sequel/database/transactions.rb:118:in `_transaction'
/usr/lib/ruby/vendor_ruby/sequel/database/transactions.rb:93:in `block in transaction'
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:229:in `block in synchronize'
/usr/lib/ruby/vendor_ruby/sequel/connection_pool/threaded.rb:104:in `hold'
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:229:in `synchronize'
/usr/lib/ruby/vendor_ruby/sequel/database/transactions.rb:86:in `transaction'
/usr/lib/one/ruby/onedb/local/4.10.3_to_4.11.80.rb:75:in `up'
/usr/lib/one/ruby/onedb/onedb.rb:230:in `apply_migrators'
/usr/lib/one/ruby/onedb/onedb.rb:177:in `upgrade'
/usr/bin/onedb:291:in `block (2 levels) in <main>'
/usr/lib/one/ruby/cli/command_parser.rb:449:in `call'
/usr/lib/one/ruby/cli/command_parser.rb:449:in `run'
/usr/lib/one/ruby/cli/command_parser.rb:76:in `initialize'
/usr/bin/onedb:200:in `new'
/usr/bin/onedb:200:in `<main>'
The database will be restored
Sqlite database backup restored in /var/lib/one/one.db
```
Any idea?