I get errors when i run a packages update

  • root@Jarvis:/usr/share/openmediavault/confdb/migrations.d# omv-confdbadm migrate conf 5.0. 3

    Running migration conf_5.0.3

    Running migration conf_5.2.0

    Running migration conf_5.5.0

    Running migration conf_5.5.3

    INFO: The node 'clients' already exists at XPath '/config/system/time/ntp'.

    Running migration conf_5.6.0

    root@Jarvis:/usr/share/openmediavault/confdb/migrations.d#

    done but i still have the error: The property 'localmaster' does not exist in the model 'conf.service.smb'.



    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(187): OMV\Config\ConfigObject->assertExists('localmaster')
    #1 /usr/share/php/openmediavault/config/configobject.inc(272): OMV\Config\ConfigObject->set('localmaster', '1', false)
    #2 /usr/share/php/openmediavault/config/configobject.inc(234): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)
    #3 /usr/share/php/openmediavault/config/database.inc(99): 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}

  • root@Jarvis:/# dpkg -l | grep openm

    ii openmediavault 5.6.24-1 all openmediavault - The open network attached storage solution

    ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive

    ic openmediavault-usbbackup 4.0.5-1 all OpenMediaVault USB/eSATA backup plugin


    oot@Jarvis:/# sudo grep -iEw "numproc|recursive|localmaster" /etc/openmediavault/config.xml

    <localmaster>1</localmaster>

    <recursive>1</recursive>

    <recursive>1</recursive>

    <recursive>1</recursive>

    root@Jarvis:/#

  • root@Jarvis:/# omv-confdbadm populate

    [ERROR ] Exception during resolving address: [Errno 2] Host name lookup failure

    Traceback (most recent call last):

    File "/usr/sbin/omv-confdbadm", line 76, in <module>

    sys.exit(main())

    File "/usr/sbin/omv-confdbadm", line 72, in main

    return cmd_inst.execute(*sys.argv)

    File "/usr/share/openmediavault/confdbadm/commands.d/exists.py", line 55, in execute

    return 0 if db.exists(cmd_args.id, filter) else 1

    File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 164, in exists

    query.execute()

    File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 697, in execute

    self._response = self._elements_to_object(elements)

    File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 472, in _elements_to_object

    obj.set_dict(self._element_to_dict(element), False)

    File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 208, in set_dict

    self.set(key, value, validate)

    File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 182, in set

    self.assert_exists(name)

    File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 154, in assert_exists

    % (name, self.model.id)

    openmediavault.exceptions.AssertException: The property 'options' does not exist in the model 'conf.system.network.interface'.

    [ERROR ] Exception during resolving address: [Errno 2] Host name lookup failure

    [ERROR ] Exception during resolving address: [Errno 2] Host name lookup failure

    [ERROR ] An un-handled exception was caught by salt's global exception handler:

    ValueError: 'multicast' does not appear to be an IPv4 or IPv6 network

    Traceback (most recent call last):

    File "/usr/bin/salt-call", line 11, in <module>

    load_entry_point('salt==3003', 'console_scripts', 'salt-call')()

    File "/usr/lib/python3/dist-packages/salt/scripts.py", line 449, in salt_call

    client.run()

    File "/usr/lib/python3/dist-packages/salt/cli/call.py", line 58, in run

    caller.run()

    File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 112, in run

    ret = self.call()

    File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 220, in call

    self.opts, data, func, args, kwargs

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__

    return self.loader.run(run_func, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run

    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/executors/direct_call.py", line 12, in execute

    return func(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__

    return self.loader.run(run_func, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run

    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/modules/network.py", line 1764, in routes

    routes_ = _ip_route_linux()

    File "/usr/lib/python3/dist-packages/salt/modules/network.py", line 609, in _ip_route_linux

    address_mask = convert_cidr(comps[0])

    File "/usr/lib/python3/dist-packages/salt/modules/network.py", line 1232, in convert_cidr

    cidr = calc_net(cidr)

    File "/usr/lib/python3/dist-packages/salt/modules/network.py", line 1255, in calc_net

    return __utils__["network.calc_net"](ip_addr, netmask)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__

    return self.loader.run(run_func, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run

    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/utils/network.py", line 1185, in calc_net

    return str(ipaddress.ip_network(ipaddr, strict=False))

    File "/usr/lib/python3/dist-packages/salt/ext/ipaddress.py", line 108, in ip_network

    address)

    ValueError: 'multicast' does not appear to be an IPv4 or IPv6 network

    Traceback (most recent call last):

    File "/usr/bin/salt-call", line 11, in <module>

    load_entry_point('salt==3003', 'console_scripts', 'salt-call')()

    File "/usr/lib/python3/dist-packages/salt/scripts.py", line 449, in salt_call

    client.run()

    File "/usr/lib/python3/dist-packages/salt/cli/call.py", line 58, in run

    caller.run()

    File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 112, in run

    ret = self.call()

    File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 220, in call

    self.opts, data, func, args, kwargs

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__

    return self.loader.run(run_func, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run

    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/executors/direct_call.py", line 12, in execute

    return func(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__

    return self.loader.run(run_func, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run

    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/modules/network.py", line 1764, in routes

    routes_ = _ip_route_linux()

    File "/usr/lib/python3/dist-packages/salt/modules/network.py", line 609, in _ip_route_linux

    address_mask = convert_cidr(comps[0])

    File "/usr/lib/python3/dist-packages/salt/modules/network.py", line 1232, in convert_cidr

    cidr = calc_net(cidr)

    File "/usr/lib/python3/dist-packages/salt/modules/network.py", line 1255, in calc_net

    return __utils__["network.calc_net"](ip_addr, netmask)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__

    return self.loader.run(run_func, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run

    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/utils/network.py", line 1185, in calc_net

    return str(ipaddress.ip_network(ipaddr, strict=False))

    File "/usr/lib/python3/dist-packages/salt/ext/ipaddress.py", line 108, in ip_network

    address)

    ValueError: 'multicast' does not appear to be an IPv4 or IPv6 network

    [ERROR ] Exception during resolving address: [Errno 2] Host name lookup failure

    root@Jarvis:/#

  • # /etc/nsswitch.conf

    #

    # Example configuration of GNU Name Service Switch functionality.

    # If you have the `glibc-doc-reference' and `info' packages installed, try:

    # `info libc "Name Service Switch"' for information about this file.


    passwd: compat

    group: compat

    shadow: compat

    gshadow: files


    hosts: files mdns4_minimal [NOTFOUND=return] dns

    networks: files


    protocols: db files

    services: db files

    ethers: db files

    rpc: db files


    netgroup: nis



    Code
    should I change this line like this?
    hosts:          files mdns4_minimal [NOTFOUND=return] dns myhostname
  • I should start from conf_0.5.0.21.sh ?

    omv-confdbadm migrate conf conf_0.5.0.21.sh

    omv-confdbadm migrate con conf_0.5.15.sh etc ?

    You probably did not come from omv0.5, but from somehwre OMV4 or OMV4. So you start with the version you had before the mess started.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • What are you doing?


    You ran all migrations from version 5.0.3 onwards. I see in the code that in migration to version 5.0.0

    omv_config_delete "/config/services/smb/localmaster" 


    Have you been doing a release upgrade? including the operating system from debin 8 to debian 9 before?


    If yes, you need to run the migration for 5.0.0 (which has major changes).

    When all goes well, you can run the salt deploy command for all services.




    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Done

    root@Jarvis:/# omv-confdbadm migrate conf 5.0.0

    Running migration conf_5.0.0

    Running migration conf_5.0.3

    Running migration conf_5.2.0

    Running migration conf_5.5.0

    Running migration conf_5.5.3

    INFO: The node 'clients' already exists at XPath '/config/system/time/ntp'.

    Running migration conf_5.6.0

    root@Jarvis:/# salt deploy

    -bash: salt: command not found

    root@Jarvis:/# omv-confdbadm populate

    [ERROR ] Exception during resolving address: [Errno 2] Host name lookup failure

    [ERROR ] Exception during resolving address: [Errno 2] Host name lookup failure

  • This is the magic deploy all command: omv-salt stage run deploy as described in the docs.


    But there seems to be a problem with your dns too.


    After you ran the deploy command, ping www.google.com

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • root@Jarvis:/# cat /etc/openmediavault/config.xml | awk '/<dnsnameservers>/,/<\/dnsnameservers>/'

    <dnsnameservers></dnsnameservers>

    <dnsnameservers>8.8.8.8</dnsnameservers>

    <dnsnameservers>8.8.8.8</dnsnameservers>

    <dnsnameservers>8.8.8.8</dnsnameservers>

    <dnsnameservers>8.8.8.8</dnsnameservers>

    <dnsnameservers>8.8.8.8</dnsnameservers>

    root@Jarvis:/#

  • root@Jarvis:/# cat /etc/openmediavault/config.xml | awk '/<interfaces>/,/<\/interfaces>/'

    <interfaces>

    <!--

    <interface>

    <uuid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</uuid>

    <type>ethernet|bond|vlan|wireless|...</type>

    <devicename>xxx</devicename>

    <method>dhcp|static|manual</method>

    <address>xxx.xxx.xxx.xxx</address>

    <netmask>xxx.xxx.xxx.xxx</netmask>

    <gateway>xxx.xxx.xxx.xxx</gateway>

    <method6>auto|dhcp|static|manual</method6>

    <address6>xxxx:xxxx:...:xxxx</address6>

    <netmask6>0-128</netmask6>

    <gateway6>xxxx:xxxx:...:xxxx</gateway6>

    <dnsnameservers></dnsnameservers>

    <dnssearch></dnssearch>

    <mtu>0...n</mtu>

    <wol>0|1</wol>

    <options></options>

    <comment>xxx</comment>

    # Optional arguments by type:

    # - ethernet

    # - bond

    <slaves>((eth|wlan)\d+,)*(eth|wlan)\d+</slaves>

    <bondprimary>(eth|wlan)\d+</bondprimary>

    <bondmode>0|1|2|3|4|5|6</bondmode>

    <bondmiimon>0</bondmiimon>

    <bonddowndelay>0</bonddowndelay>

    <bondupdelay>0</bondupdelay>

    # - vlan

    <vlanid>1-4095</vlanid>

    <vlanrawdevice>(eth|wlan|bond)\d+</vlanrawdevice>

    # - wireless

    <wpassid>xxx</wpassid>

    <wpapsk>xxx</wpapsk>

    </interface>

    -->

    <interface>

    <uuid>67a4672e-81ca-4acd-8941-d5b266f351ad</uuid>

    <type>ethernet</type>

    <devicename>enp6s0</devicename>

    <method>static</method>

    <address>192.168.39.182</address>

    <netmask>255.255.255.0</netmask>

    <gateway>192.168.39.1</gateway>

    <method6>manual</method6>

    <address6></address6>

    <netmask6>64</netmask6>

    <gateway6></gateway6>

    <dnsnameservers>8.8.8.8</dnsnameservers>

    <dnssearch></dnssearch>

    <mtu>0</mtu>

    <wol>1</wol>

    <comment></comment>

    <slaves></slaves>

    <bondprimary></bondprimary>

    <bondmode>1</bondmode>

    <bondmiimon>0</bondmiimon>

    <bonddowndelay>0</bonddowndelay>

    <bondupdelay>0</bondupdelay>

    <vlanid>1</vlanid>

    <vlanrawdevice></vlanrawdevice>

    <wpassid></wpassid>

    <wpapsk></wpapsk>

    </interface>

    <interface>

    <uuid>b37fe9de-8dec-4f8f-ad43-a243ab0fe405</uuid>

    <type>ethernet</type>

    <devicename>enp6s0</devicename>

    <method>static</method>

    <address>192.168.39.182</address>

    <netmask>255.255.255.0</netmask>

    <gateway></gateway>

    <method6>manual</method6>

    <address6></address6>

    <netmask6>64</netmask6>

    <gateway6></gateway6>

    <dnsnameservers>8.8.8.8</dnsnameservers>

    <dnssearch></dnssearch>

    <mtu>0</mtu>

    <wol>0</wol>

    <comment></comment>

    <slaves></slaves>

    <bondprimary></bondprimary>

    <bondmode>1</bondmode>

    <bondmiimon>0</bondmiimon>

    <bonddowndelay>0</bonddowndelay>

    <bondupdelay>0</bondupdelay>

    <vlanid>1</vlanid>

    <vlanrawdevice></vlanrawdevice>

    <wpassid></wpassid>

    <wpapsk></wpapsk>

    </interface>

    <interface>

    <uuid>1c207fdc-a6b7-441f-8d22-ae05f1b24528</uuid>

    <type>ethernet</type>

    <devicename>enp6s0</devicename>

    <method>static</method>

    <address>192.168.39.182</address>

    <netmask>255.255.255.0</netmask>

    <gateway></gateway>

    <method6>manual</method6>

    <address6></address6>

    <netmask6>64</netmask6>

    <gateway6></gateway6>

    <dnsnameservers>8.8.8.8</dnsnameservers>

    <dnssearch></dnssearch>

    <mtu>0</mtu>

    <wol>0</wol>

    <comment></comment>

    <slaves></slaves>

    <bondprimary></bondprimary>

    <bondmode>1</bondmode>

    <bondmiimon>0</bondmiimon>

    <bonddowndelay>0</bonddowndelay>

    <bondupdelay>0</bondupdelay>

    <vlanid>1</vlanid>

    <vlanrawdevice></vlanrawdevice>

    <wpassid></wpassid>

    <wpapsk></wpapsk>

    </interface>

    <interface>

    <uuid>3ebae1a4-62fc-4083-b39e-12a858d18dd0</uuid>

    <type>ethernet</type>

    <devicename>enp6s0</devicename>

    <method>static</method>

    <address>192.168.39.182</address>

    <netmask>255.255.255.0</netmask>

    <gateway></gateway>

    <method6>manual</method6>

    <address6></address6>

    <netmask6>64</netmask6>

    <gateway6></gateway6>

    <dnsnameservers>8.8.8.8</dnsnameservers>

    <dnssearch></dnssearch>

    <mtu>0</mtu>

    <wol>0</wol>

    <comment></comment>

    <slaves></slaves>

    <bondprimary></bondprimary>

    <bondmode>1</bondmode>

    <bondmiimon>0</bondmiimon>

    <bonddowndelay>0</bonddowndelay>

    <bondupdelay>0</bondupdelay>

    <vlanid>1</vlanid>

    <vlanrawdevice></vlanrawdevice>

    <wpassid></wpassid>

    <wpapsk></wpapsk>

    </interface>

    <interface>

    <uuid>49b39081-6ce3-4be3-aa84-11dd4a1cedef</uuid>

    <type>ethernet</type>

    <devicename>enp6s0</devicename>

    <method>static</method>

    <address>192.168.39.182</address>

    <netmask>255.255.255.0</netmask>

    <gateway></gateway>

    <method6>manual</method6>

    <address6></address6>

    <netmask6>64</netmask6>

    <gateway6></gateway6>

    <dnsnameservers>8.8.8.8</dnsnameservers>

    <dnssearch></dnssearch>

    <mtu>0</mtu>

    <wol>0</wol>

    <comment></comment>

    <slaves></slaves>

    <bondprimary></bondprimary>

    <bondmode>1</bondmode>

    <bondmiimon>0</bondmiimon>

    <bonddowndelay>0</bonddowndelay>

    <bondupdelay>0</bondupdelay>

    <vlanid>1</vlanid>

    <vlanrawdevice></vlanrawdevice>

    <wpassid></wpassid>

    <wpapsk></wpapsk>

    </interface>

    </interfaces>

    root@Jarvis:/#

  • The config was not migrated properly, because migrations have to be run in order.


    Copy the backup of config.xml to /etc/openmediavault/config.xml

    Run the migrations starting from 5.0.0 and run the magic deploy command again.


    And you did not tell me: Did you try to do a release upgrade?

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • This


    Code
    oot@Jarvis:/# dpkg -l | grep openm
    ii openmediavault 5.6.24-1 all openmediavault - The open network attached storage solution
    ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
    ic openmediavault-usbbackup 4.0.5-1 all OpenMediaVault USB/eSATA backup plugin

    tells me, you have been trying a release update or your system got corrupted long ago.


    You can try to start with 4.0.6 and 4.0.17, then 5.0.0

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • This


    Code
    oot@Jarvis:/# dpkg -l | grep openm
    ii openmediavault 5.6.24-1 all openmediavault - The open network attached storage solution
    ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
    ic openmediavault-usbbackup 4.0.5-1 all OpenMediaVault USB/eSATA backup plugin

    tells me, you have been trying a release update or your system got corrupted long ago.


    You can try to start with 4.0.6 and 4.0.17, then 5.0.0

    root@Jarvis:/# dpkg -l | grep openm

    ii openmediavault 5.6.24-1 all openmediavault - The open network attached storage solution

    ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive

    ic openmediavault-usbbackup 4.0.5-1 all OpenMediaVault USB/eSATA backup plugin

    root@Jarvis:/#

  • This


    Code
    oot@Jarvis:/# dpkg -l | grep openm
    ii openmediavault 5.6.24-1 all openmediavault - The open network attached storage solution
    ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
    ic openmediavault-usbbackup 4.0.5-1 all OpenMediaVault USB/eSATA backup plugin

    tells me, you have been trying a release update or your system got corrupted long ago.


    You can try to start with 4.0.6 and 4.0.17, then 5.0.0

    I think so

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!