Error after upgrade to 3.0.63 - 'Failed to index key 'hostname' of 'hostname.0' because it has no children.'

  • As title says, after upgrading to the latest version i get this error when i go to network or on various modules that use hostname:
    Error #0:
    exception 'RuntimeException' with message 'Failed to index key 'hostname' of 'hostname.0' because it has no children.' in /usr/share/php/openmediavault/dictionary.inc:145
    Stack trace:
    #0 /usr/share/php/openmediavault/config/configobject.inc(193): OMV\Dictionary->set('hostname.0', 'influxomv')
    #1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('hostname.0', 'influxomv', 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/php/openmediavault/config/database.inc(96): OMV\Config\Database->get('conf.system.net...', NULL)
    #5 /usr/share/openmediavault/engined/rpc/letsencrypt.inc(85): OMV\Config\Database->getAssoc('conf.system.net...')
    #6 [internal function]: OMVRpcServiceLetsEncrypt->getSettings(NULL, Array)
    #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
    #8 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getSettings', NULL, Array)
    #9 /usr/sbin/omv-engined(522): OMV\Rpc\Rpc::call('LetsEncrypt', 'getSettings', NULL, Array, 1)


    #10 {main}

    • Official Post

    Post the output of: omv-showkey network

    omv 7.4.8-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.5 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thanks for reaching to me for this problem. The output is:

    • Official Post

    See all of the duplicate dns sections with hostname and domainname? Remove all of them so that you only have the following:



    Code
    <dns>
    <hostname>influxomv</hostname>
    <domainname>influx.ro</domainname>
    </dns>

    As root:
    cp /etc/openmediavault/config.xml /root/
    nano /etc/openmediavault/config.xml
    make changes
    ctrl-o to save
    ctrl-x to exit

    omv 7.4.8-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.5 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

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