Undefined method `chomp' for true:TrueClass while upgrading from 5.11 to 5.12

Following the announcement this morning of public release for 5.12, I decided to upgrade from 5.11 to 5.12

I followed exactly the upgrade process at http://docs.opennebula.io/5.12/intro_release_notes/upgrades/upgrading_single.html

but at step 7, I encounter the following issue:
oneadmin@vlab:~> onedb upgrade -v
Unable to parse oned.conf: undefined method `chomp’ for true:TrueClass

if I try this, though, it works but says that my DB is upgraded to 5.10 and not 5.12. Not sure if this is correct?

oneadmin@vlab:~> onedb upgrade -v -S localhost -u oneadmin -p xxxxx -d opennebula

Version read:
Shared tables 5.10.0 : Database migrated from 5.6.0 to 5.10.0 (OpenNebula 5.9.80) by onedb command.
Local tables 5.10.0 : Database migrated from 5.8.0 to 5.10.0 (OpenNebula 5.9.80) by onedb command.

MySQL dump stored in /var/lib/one/mysql_localhost_opennebula_2020-6-18_22:21:28.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.10.0

>>> Running migrators for local tables
Database already uses version 5.10.0

Total time: 0.41s
oneadmin@vlab:~>

Hello @saint

There was a bug in the documentation, the right command needs to specify the connection parameters. Run the command onedb upgrade with all the connections parameters, for example for MySQL:

onedb upgrade -v -S localhost -u oneadmin -p oneadmin -d opennebula

This has been fixed in the official documentation already.