Failed to index key 'hostname' of 'hostname.0' because it has no children.

    • OMV 3.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Failed to index key 'hostname' of 'hostname.0' because it has no children.

      Ich benutze OMV 3.x schon eine ganze Zeit und bislang war die network Seite immer leer. Seit dem letzten Update (omv 3.0.64) erscheint beim Aufrufen der Seite die folgende Fehlermeldung / call Stack:

      Source Code

      1. #0 /usr/share/php/openmediavault/config/configobject.inc(193): OMV\Dictionary->set('hostname.0', 'marvin')
      2. #1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('hostname.0', 'marvin', false)
      3. #2 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)
      4. #3 /usr/share/php/openmediavault/config/database.inc(90): OMV\Config\ConfigObject->setAssoc(Array, false)
      5. #4 /usr/share/openmediavault/engined/rpc/network.inc(169): OMV\Config\Database->get('conf.system.net...')
      6. #5 [internal function]: OMVRpcServiceNetwork->getGeneralSettings(NULL, Array)
      7. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      8. #7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getGeneralSetti...', NULL, Array) #8 /usr/sbin/omv-engined(522): OMV\Rpc\Rpc::call('Network', 'getGeneralSetti...', NULL, Array, 1)
      9. #9 {main}
    • jodokus wrote:

      Ich benutze OMV 3.x schon eine ganze Zeit und bislang war die network Seite immer leer. Seit dem letzten Update (omv 3.0.64) erscheint beim Aufrufen der Seite die folgende Fehlermeldung / call Stack:

      Source Code

      1. #0 /usr/share/php/openmediavault/config/configobject.inc(193): OMV\Dictionary->set('hostname.0', 'marvin')
      2. #1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('hostname.0', 'marvin', false)
      3. #2 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)
      4. #3 /usr/share/php/openmediavault/config/database.inc(90): OMV\Config\ConfigObject->setAssoc(Array, false)
      5. #4 /usr/share/openmediavault/engined/rpc/network.inc(169): OMV\Config\Database->get('conf.system.net...')
      6. #5 [internal function]: OMVRpcServiceNetwork->getGeneralSettings(NULL, Array)
      7. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      8. #7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getGeneralSetti...', NULL, Array) #8 /usr/sbin/omv-engined(522): OMV\Rpc\Rpc::call('Network', 'getGeneralSetti...', NULL, Array, 1)
      9. #9 {main}
      I'm sure I broke some rule by doing this... I have the same problem after upgrading to 3.0.64

      Failed to index key 'hostname' of 'hostname.0' because it has no children.
      Obviously the hostname differs, but the stacktrace is the same...
      Thanks,
      Dan
    • As root:
      cp /etc/openmediavault/config.xml /root/
      nano /etc/openmediavault/config.xml

      Find the sections and change to the following (just involves removing lines):

      XML Source Code

      1. <network>
      2. <interfaces>
      3. <!--
      4. <interface>
      5. <uuid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</uuid>
      6. <type>ethernet|bond|vlan|wireless|...</type>
      7. <devicename>xxx</devicename>
      8. <method>dhcp|static|manual</method>
      9. <address>xxx.xxx.xxx.xxx</address>
      10. <netmask>xxx.xxx.xxx.xxx</netmask>
      11. <gateway>xxx.xxx.xxx.xxx</gateway>
      12. <method6>auto|dhcp|static|manual</method6>
      13. <address6>xxxx:xxxx:...:xxxx</address6>
      14. <netmask6>0-128</netmask6>
      15. <gateway6>xxxx:xxxx:...:xxxx</gateway6>
      16. <dnsnameservers></dnsnameservers>
      17. <dnssearch></dnssearch>
      18. <mtu></mtu>
      19. <wol>0|1</wol>
      20. <options></options>
      21. <comment>xxx</comment>
      22. # Optional arguments by type:
      23. # - ethernet
      24. # - bond
      25. <slaves>((eth|wlan)\d+,)*(eth|wlan)\d+</slaves>
      26. <bondprimary>(eth|wlan)\d+</bondprimary>
      27. <bondmode>0|1|2|3|4|5|6</bondmode>
      28. <bondmiimon>0</bondmiimon>
      29. <bonddowndelay>0</bonddowndelay>
      30. <bondupdelay>0</bondupdelay>
      31. # - vlan
      32. <vlanid>1-4095</vlanid>
      33. <vlanrawdevice>(eth|wlan|bond)\d+</vlanrawdevice>
      34. # - wireless
      35. <wpassid>xxx</wpassid>
      36. <wpapsk>xxx</wpapsk>
      37. </interface>
      38. -->
      39. <interface>
      40. <uuid>44eaadbd-9a86-4962-a7a2-6a969f0932a0</uuid>
      41. <type>ethernet</type>
      42. <devicename>eth1</devicename>
      43. <method>dhcp</method>
      44. <address/>
      45. <netmask/>
      46. <gateway/>
      47. <method6>manual</method6>
      48. <address6/>
      49. <netmask6>64</netmask6>
      50. <gateway6/>
      51. <dnsnameservers/>
      52. <dnssearch/>
      53. <mtu>0</mtu>
      54. <wol>1</wol>
      55. <options/>
      56. <comment/>
      57. <slaves/>
      58. <bondprimary/>
      59. <bondmode>1</bondmode>
      60. <bondmiimon>0</bondmiimon>
      61. <bonddowndelay>0</bonddowndelay>
      62. <bondupdelay>0</bondupdelay>
      63. <vlanid>1</vlanid>
      64. <vlanrawdevice/>
      65. <wpassid/>
      66. <wpapsk/>
      67. </interface>
      68. <interface>
      69. <uuid>d677e9b1-f44f-46e3-915a-90f4198e5b6c</uuid>
      70. <type>ethernet</type>
      71. <devicename>eth0</devicename>
      72. <method>dhcp</method>
      73. <address/>
      74. <netmask/>
      75. <gateway/>
      76. <method6>manual</method6>
      77. <address6/>
      78. <netmask6>64</netmask6>
      79. <gateway6/>
      80. <dnsnameservers/>
      81. <dnssearch/>
      82. <mtu>0</mtu>
      83. <wol>0</wol>
      84. <options/>
      85. <comment/>
      86. <slaves/>
      87. <bondprimary/>
      88. <bondmode>1</bondmode>
      89. <bondmiimon>0</bondmiimon>
      90. <bonddowndelay>0</bonddowndelay>
      91. <bondupdelay>0</bondupdelay>
      92. <vlanid>1</vlanid>
      93. <vlanrawdevice/>
      94. <wpassid/>
      95. <wpapsk/>
      96. </interface>
      97. </interfaces>
      98. <iptables>
      99. <!--
      100. <rule>
      101. <uuid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</uuid>
      102. <family>inet|inet6</family>
      103. <rulenum>1...x</rulenum>
      104. <chain>INPUT|OUTPUT</chain>
      105. <action>ACCEPT|REJECT|DROP|LOG|</action>
      106. <source>[!]?xxx.xxx.xxx.xxx|[!]?xxx.xxx.xxx.xxx/xx|xxx.xxx.xxx.xxx-yyy.yyy.yyy.yyy</source>
      107. <sport>xxx|xxx-yyy</sport>
      108. <destination>[!]?xxx.xxx.xxx.xxx|[!]?xxx.xxx.xxx.xxx/xx|xxx.xxx.xxx.xxx-yyy.yyy.yyy.yyy</destination>
      109. <dport>xxx|xxx-yyy</dport>
      110. <protocol>[!]?(tcp|udp|icmp|icmpv6)|all</protocol>
      111. <extraoptions>xxx</extraoptions>
      112. <comment>xxx</comment>
      113. </rule>
      114. -->
      115. </iptables>
      116. <proxy>
      117. <http>
      118. <enable>0</enable>
      119. <host/>
      120. <port>8080</port>
      121. <username/>
      122. <password/>
      123. </http>
      124. <https>
      125. <enable>0</enable>
      126. <host/>
      127. <port>4443</port>
      128. <username/>
      129. <password/>
      130. </https>
      131. <ftp>
      132. <enable>0</enable>
      133. <host/>
      134. <port>2121</port>
      135. <username/>
      136. <password/>
      137. </ftp>
      138. </proxy>
      139. <dns>
      140. <hostname>crushinator</hostname>
      141. <domainname/>
      142. </dns>
      143. </network>
      Display All
      ctrl-o to save ctrl-x to exit
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ahasuerus wrote:

      can you elaborate a bit on the changes and why were they necessary?
      Something in an update/upgrade went wrong and probably happened multiple times. I haven't run into this myself so not sure what is causing it. They were necessary because the duplicate XML elements were causing a problem for OMV.
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!