[SOLVED] Error Upgrade DB 5.6.0 to 5.7.80 undefined method `error_message' for #<VCenterConf:0x000000030c1090>

solved

(TiDjY) #1

[root@sunstone-slave ~]# onedb upgrade -v -S localhost -d opennebula
Version read:
Shared tables 5.6.0 : Database migrated from 5.4.1 to 5.6.0 (OpenNebula 5.6.0) by onedb command.
Local tables 5.6.0 : Database migrated from 5.4.1 to 5.6.0 (OpenNebula 5.6.0) by onedb command.

MySQL dump stored in /var/lib/one/mysql_localhost_opennebula_2019-3-12_11:44:46.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
Database already uses version 5.6.0

Running migrators for local tables
Running migrator /usr/lib/one/ruby/onedb/local/5.6.0_to_5.7.80.rb

undefined method error_message' for #<VCenterConf:0x000000030c1090> /usr/lib/one/ruby/vcenter_driver.rb:56:inrescue in initialize’
/usr/lib/one/ruby/vcenter_driver.rb:52:in initialize' /usr/lib/one/ruby/vcenter_driver.rb:91:innew’
/usr/lib/one/ruby/vcenter_driver.rb:91:in <module:VCenterDriver>' /usr/lib/one/ruby/vcenter_driver.rb:89:in<top (required)>’
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in require' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:inrequire’
/usr/lib/one/ruby/onedb/local/5.6.0_to_5.7.80.rb:23:in <top (required)>' /usr/lib/one/ruby/onedb/onedb.rb:230:inload’
/usr/lib/one/ruby/onedb/onedb.rb:230:in apply_migrators' /usr/lib/one/ruby/onedb/onedb.rb:179:inupgrade’
/usr/bin/onedb:389:in block (2 levels) in <main>' /usr/lib/one/ruby/cli/command_parser.rb:470:incall’
/usr/lib/one/ruby/cli/command_parser.rb:470:in run' /usr/lib/one/ruby/cli/command_parser.rb:84:ininitialize’
/usr/bin/onedb:294:in new' /usr/bin/onedb:294:in

The database will be restored
MySQL DB opennebula at localhost restored.

What is the problem ?


(TiDjY) #2

It’s solved

Error unpacking rpm package opennebula-server-5.8.0-1.x86_64
error: unpacking of archive failed on file /var/lib/one/datastores/1: cpio: chown
opennebula-server-5.6.1-1.x86_64 was supposed to be removed but is not!
Verifying : opennebula-server-5.6.1-1.x86_64 1/2
Verifying : opennebula-server-5.8.0-1.x86_64 2/2

Failed:
opennebula-server.x86_64 0:5.6.1-1 opennebula-server.x86_64 0:5.8.0-1

I’ve umount the partition on /var/lib/one/datastores/1

Update to opennebula-server.x86_64 0:5.8.0-1

and upgrade DB : ok