Some problems after upgrade from OMV 4 to 5

  • Hi all,


    After the upgrade from OMV 4 to 5, i've noticed some problems:


    Network:


    Errore #0:
    OMV\AssertException: The property 'options' does not exist in the model 'conf.system.network.interface'. in /usr/share/php/openmediavault/config/configobject.inc:71
    Stack trace:
    #0 /usr/share/php/openmediavault/config/configobject.inc(186): OMV\Config\ConfigObject->assertExists('options')
    #1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('options', '', false)
    #2 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)
    #3 /usr/share/php/openmediavault/config/database.inc(85): OMV\Config\ConfigObject->setAssoc(Array, false)
    #4 /usr/share/openmediavault/engined/rpc/network.inc(326): OMV\Config\Database->get('conf.system.net...')
    #5 [internal function]: Engined\Rpc\Network->enumerateConfiguredDevices(Array, Array)
    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #7 /usr/share/openmediavault/engined/rpc/network.inc(416): OMV\Rpc\ServiceAbstract->callMethod('enumerateConfig...', Array, Array)
    #8 [internal function]: Engined\Rpc\Network->getInterfaceList(Array, Array)
    #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getInterfaceLis...', Array, Array)
    #11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Network', 'getInterfaceLis...', Array, Array, 1)
    #12 {main}

    ---


    Services/NFS:


    Errore #0:
    OMV\AssertException: The property 'numproc' does not exist in the model 'conf.service.nfs'. in /usr/share/php/openmediavault/config/configobject.inc:71
    Stack trace:
    #0 /usr/share/php/openmediavault/config/configobject.inc(186): OMV\Config\ConfigObject->assertExists('numproc')
    #1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('numproc', '8', false)
    #2 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)
    #3 /usr/share/php/openmediavault/config/database.inc(90): OMV\Config\ConfigObject->setAssoc(Array, false)
    #4 /usr/share/openmediavault/engined/rpc/nfs.inc(57): OMV\Config\Database->get('conf.service.nf...')
    #5 [internal function]: Engined\Rpc\Nfs->getSettings(NULL, Array)
    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getSettings', NULL, Array)
    #8 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('NFS', 'getSettings', NULL, Array, 1)
    #9 {main}

    ---

    Services/Rsync


    Errore #0:
    OMV\AssertException: The property 'recursive' does not exist in the model 'conf.service.rsync.job'. in /usr/share/php/openmediavault/config/configobject.inc:71
    Stack trace:
    #0 /usr/share/php/openmediavault/config/configobject.inc(186): OMV\Config\ConfigObject->assertExists('recursive')
    #1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('recursive', '1', false)
    #2 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)
    #3 /usr/share/php/openmediavault/config/database.inc(85): OMV\Config\ConfigObject->setAssoc(Array, false)
    #4 /usr/share/openmediavault/engined/rpc/rsync.inc(66): OMV\Config\Database->get('conf.service.rs...')
    #5 [internal function]: Engined\Rpc\Rsync->getList(Array, Array)
    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getList', Array, Array)
    #8 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Rsync', 'getList', Array, Array, 1)
    #9 {main}


    ---


    Services/SMB/CIFS


    Errore #0:
    OMV\AssertException: The property 'localmaster' does not exist in the model 'conf.service.smb'. in /usr/share/php/openmediavault/config/configobject.inc:71
    Stack trace:
    #0 /usr/share/php/openmediavault/config/configobject.inc(186): OMV\Config\ConfigObject->assertExists('localmaster')
    #1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('localmaster', '0', false)
    #2 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)
    #3 /usr/share/php/openmediavault/config/database.inc(90): OMV\Config\ConfigObject->setAssoc(Array, false)
    #4 /usr/share/openmediavault/engined/rpc/smb.inc(59): OMV\Config\Database->get('conf.service.sm...')
    #5 [internal function]: Engined\Rpc\Smb->getSettings(NULL, Array)
    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getSettings', NULL, Array)
    #8 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('SMB', 'getSettings', NULL, Array, 1)
    #9 {main}


    ---


    OMV-Extras


    Errore #0:
    OMV\AssertException: The property 'repos.repo.0.uuid' does not exist in the model 'conf.system.omvextras'. in /usr/share/php/openmediavault/config/configobject.inc:71
    Stack trace:
    #0 /usr/share/php/openmediavault/config/configobject.inc(186): OMV\Config\ConfigObject->assertExists('repos.repo.0.uu...')
    #1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('repos.repo.0.uu...', 'eafccbb8-0e48-1...', false)
    #2 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)
    #3 /usr/share/php/openmediavault/config/database.inc(90): OMV\Config\ConfigObject->setAssoc(Array, false)
    #4 /usr/share/openmediavault/engined/rpc/omvextras.inc(56): OMV\Config\Database->get('conf.system.omv...')
    #5 [internal function]: OMVRpcServiceOmvExtras->getSettings(NULL, Array)
    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getSettings', NULL, Array)
    #8 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('OmvExtras', 'getSettings', NULL, Array, 1)
    #9 {main}

    ---

    Obviously i had already cleaned the cache, changed browser and i had tryed another PC, but the errors persist.

    The SMB's folders are accessible normally in R/W.

    Rebooting the server was useless.

    Any ideas?

  • fter the upgrade from OMV 4 to 5,

    How did you upgrade? Some of your errors look like openmediavault isn't fully installed and at least one of them looks like omv-extras wasn't purged as in my directions - RE: OMV 5.0 - finally out! :-)

    omv 5.5.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • How did you upgrade? Some of your errors look like openmediavault isn't fully installed and at least one of them looks like omv-extras wasn't purged as in my directions - RE: OMV 5.0 - finally out! :-)

    The "OMV-Extras" error was fixed after another run of:

    apt-get purge openmediavault-omvextrasorg resolvconf

    wget -O - https://github.com/OpenMediaVa…ckages/raw/master/install | bash

    apt-get update

    apt-get dist-upgrade

    Now works fine.

    The upgrade from 4 to 5 was done with:

    sed -i "s/stretch/buster/g" /etc/apt/sources.list

    sed -i "s/stretch/buster/g" /etc/apt/sources.list.d/*

    sed -i "s/arrakis/usul/g" /etc/apt/sources.list.d/*

    sed -i "/[Dd]ocker/d" /etc/apt/sources.list.d/omv-extras-org.list

    apt-get update

    apt-get dist-upgrade

    reboot


    There's some errors?

  • You were missing the lines after reboot that you said you ran again. What is the output of: dpkg -l | grep openm

    root@NAS-CASA:~# dpkg -l | grep openm

    ii openmediavault 5.3.9-1 a ll openmediavault - The open network attached storage solution

    ii openmediavault-backup 5.2 a ll backup plugin for OpenMediaVault.

    ii openmediavault-keyring 1.0 a ll GnuPG archive keys of the OpenMediaVault archive

    ii openmediavault-omvextrasorg 5.2.6 a ll OMV-Extras.org Package Repositories for OpenMediaVault

    ii openmediavault-wol 3.4.2 a ll OpenMediaVault WOL plugin

  • Well, it is installed. And since the errors are looking for fields that don't exist on current OMV 5.x, all I can say is you didn't clear the cache properly. Maybe the server-side cache needs to be cleaned? I would click the apt clean button in omv-extras and ctrl-shift-R on any form that is giving you an error.

    omv 5.5.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • What is the output of: sudo grep -iEw "numproc|recursive|localmaster" /etc/openmediavault/config.xml

    omv 5.5.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • What is the output of: sudo grep -iEw "numproc|recursive|localmaster" /etc/openmediavault/config.xml

    root@NAS-CASA:~# sudo grep -iEw "numproc|recursive|localmaster" /etc/openmediavault/config.xml

    <numproc>8</numproc>

    <localmaster>0</localmaster>

    <recursive>1</recursive>

    <recursive>1</recursive>

    <recursive>1</recursive>

    <recursive>1</recursive>

    <recursive>1</recursive>

  • Your database upgrade never happened. I would backup your install and run the following:


    sudo /usr/share/openmediavault/confdb/migrations.d/conf_5.0.0.sh

    sudo /usr/share/openmediavault/confdb/migrations.d/conf_5.0.3.sh

    sudo /usr/share/openmediavault/confdb/migrations.d/conf_5.2.0.sh

    omv 5.5.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Your database upgrade never happened. I would backup your install and run the following:


    sudo /usr/share/openmediavault/confdb/migrations.d/conf_5.0.0.sh

    sudo /usr/share/openmediavault/confdb/migrations.d/conf_5.0.3.sh

    sudo /usr/share/openmediavault/confdb/migrations.d/conf_5.2.0.sh

    Oh! Finally! Many thanks! Now all errors disappeared and all works perfectly!

  • Your database upgrade never happened. I would backup your install and run the following:


    sudo /usr/share/openmediavault/confdb/migrations.d/conf_5.0.0.sh

    sudo /usr/share/openmediavault/confdb/migrations.d/conf_5.0.3.sh

    sudo /usr/share/openmediavault/confdb/migrations.d/conf_5.2.0.sh

    how can we check if it has happened in other cases? i followed the same procedure and i don't have problems, but i would like to check

  • how can we check if it has happened in other cases? i followed the same procedure and i don't have problems, but i would like to check

    I wouldn't assume that it didn't work. The migration scripts happen in the postinst file. The only way I can think of that they wouldn't run is if someone had a problem and fixed it in a weird way. Since these scripts are generally changing database schema, you will know right away if something wasn't updated because you will get errors like the OP.

    omv 5.5.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Thormir84

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!