Upgrade 2.x - 3.x failed, config.xml broken?

    • Upgrade 2.x - 3.x failed, config.xml broken?

      Hello, a few days ago I updated from 2.x -> 3.x via omv-release-upgrade. At some point this failed horribly, so that I coulnd't even access the webgui. With a lot of hours reading into the forums I was able to fix most of the problems, but a few things remain.

      My educated guess is that the config.xml still has a bunch of old stuff that has not been properly converted.

      For example, I get this error upon clicking the user tab in access rights management:

      Shell-Script

      1. Error #0:
      2. exception 'OMV\AssertException' with message 'The property 'sshpubkey.0' does not exist in the model 'conf.system.usermngmnt.user'.' in /usr/share/php/openmediavault/config/configobject.inc:71
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/config/configobject.inc(186): OMV\Config\ConfigObject->assertExists('sshpubkey.0')
      5. #1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('sshpubkey.0', '', false)
      6. #2 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)
      7. #3 /usr/share/php/openmediavault/config/database.inc(167): OMV\Config\ConfigObject->setAssoc(Array, false)
      8. #4 /usr/share/openmediavault/engined/rpc/usermgmt.inc(351): OMV\Config\Database->getByFilter('conf.system.use...', Array)
      9. #5 [internal function]: OMVRpcServiceUserMgmt->getUserList(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getUserList', Array, Array)
      12. #8 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('UserMgmt', 'getUserList', Array, Array, 1)
      13. #9 {main}
      Display All
      or this one when I click on notifications:

      Shell-Script

      1. Error #0:
      2. exception 'OMV\Config\DatabaseException' with message 'The XPath query '//system/notification/notifications/notification[id='cronapt']' does not return the requested number of 1 object(s).' in /usr/share/php/openmediavault/config/database.inc:172
      3. Stack trace:
      4. #0 /usr/share/openmediavault/engined/rpc/notification.inc(66): OMV\Config\Database->getByFilter('conf.system.not...', Array, 1)
      5. #1 [internal function]: OMVRpcServiceNotification->get(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('get', Array, Array)
      8. #4 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Notification', 'get', Array, Array, 1)
      9. #5 {main}
      or this one when I click on SMART:

      Shell-Script

      1. Error
      2. The property 'monitor.device.0.type' does not exist in the model 'conf.service.smartmontools'.
      3. Error #0:
      4. exception 'OMV\AssertException' with message 'The property 'monitor.device.0.type' does not exist in the model 'conf.service.smartmontools'.' in /usr/share/php/openmediavault/config/configobject.inc:71
      5. Stack trace:
      6. #0 /usr/share/php/openmediavault/config/configobject.inc(186): OMV\Config\ConfigObject->assertExists('monitor.device....')
      7. #1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('monitor.device....', '', false)
      8. #2 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)
      9. #3 /usr/share/php/openmediavault/config/database.inc(90): OMV\Config\ConfigObject->setAssoc(Array, false)
      10. #4 /usr/share/openmediavault/engined/rpc/smart.inc(208): OMV\Config\Database->get('conf.service.sm...')
      11. #5 [internal function]: OMVRpcServiceSmart->getSettings(NULL, Array)
      12. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      13. #7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getSettings', NULL, Array)
      14. #8 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Smart', 'getSettings', NULL, Array, 1)
      15. #9 {main}
      Display All

      here are my installed plugins:

      Source Code

      1. ii openmediavault 3.0.87 all Open network attached storage solution
      2. pc openmediavault-docker-gui 0.2.21 amd64 OpenMediaVault plugin for Docker
      3. ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
      4. rc openmediavault-netatalk 3.2.10 all OpenMediaVault netatalk (AppleTalk Protocol Suite) plugin
      5. ii openmediavault-omvextrasorg 3.4.26 all OMV-Extras.org Package Repositories for OpenMediaVault
      6. rc openmediavault-openvpnas 1.0.10 all OpenVPN Acess Server plugin for OpenMediaVault.
      7. ii openmediavault-plexmediaserver 3.8.1 all OpenMediaVault Plex Media Server plugin
      8. ii openmediavault-virtualbox 3.0.8 all VirtualBox plugin for OpenMediaVault.


      I have a backup of my config.xml from before the upgrade. Is there a way to convert it so it's readable by 3.x?

      Thanks for anyone finding the time to help me.
    • 0mega wrote:

      I have a backup of my config.xml from before the upgrade. Is there a way to convert it so it's readable by 3.x?
      Sorry, I don´t think so. The file can only be used for reference.

      Did you remove all OMV 2 plugins not supported by OMV3 before you start the initial upgrade process? This is generally recommended.
      OMV 3.0.78 (Gray style)
      ASRock Rack C2550D4I - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304
    • If none help you with your broken upgrade, your best option is to do a fresh install on a new boot media ( to preserve your actual boot disk), and add sevices and configure all by hand.

      your data are safe on your data disk, and you only need to import on your new install,to access it, so you only need time to configure and have a usable NAS.
      OMV 3.0.84 x64 on a HP T510, 32GB SSD 2,5" disk, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ;
    • Users Online 2

      2 Guests