Pending configuration changes Can't Apply Them

  • I can't apply configuration changes at all. So my new shares won't work, my backup tasks won't apply. Seems like my NAS at this point is a brick.


    I'm not sure why, but OMV seems to have a mind of it's own and likes to stop working correctly. Last time it did the same thing to me. Now this time all I try to do was add a new share folder for a drive.


    This is the errors I get split into a few posts.


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color iptables 2>&1' with exit code '1': debian:

    ----------

    ID: configure_firewall_script

    Function: file.managed

    Name: /etc/iptables/openmediavault-firewall.sh

    Result: True

    Comment: File /etc/iptables/openmediavault-firewall.sh is in the correct state

    Started: 00:20:39.982713

    Duration: 334.539 ms

    Changes:

    ----------

    ID: configure_firewall_unit_file

    Function: file.managed

    Name: /etc/systemd/system/openmediavault-firewall.service

    Result: True

    Comment: File /etc/systemd/system/openmediavault-firewall.service is in the correct state

    Started: 00:20:40.317541

    Duration: 107.381 ms

    Changes:

    ----------

    ID: iptables_systemctl_daemon_reload

    Function: module.run

    Result: True

    Comment: service.systemctl_reload: True

    Started: 00:20:40.426377

    Duration: 504.141 ms

    Changes:

    ----------

    service.systemctl_reload:

    True

    ----------

    ID: enable_firewall_service

    Function: service.enabled

    Name: openmediavault-firewall.service

    Result: True

    Comment: Service openmediavault-firewall.service is already enabled, and is in the desired state

    Started: 00:20:42.937375

    Duration: 72.79 ms

    Changes:

    ----------

    ID: restart_firewall_service

    Function: module.run

    Result: False

    Comment: An exception occurred in this state: Traceback (most recent call last):

    File "/usr/lib/python3/dist-packages/salt/state.py", line 2401, in call

    ret = self.states[cdata["full"]](

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

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

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

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

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

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1282, in wrapper

    return f(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 396, in run

    return _run(**kwargs)

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 451, in _run

    func_ret = _call_function(

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 497, in _call_function

    mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs)

    File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 174, in call_function

    return salt_function(*function_args, **function_kwargs)

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

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

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

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

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

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/modules/systemd_service.py", line 966, in restart

    raise CommandExecutionError(_strip_scope(ret["stderr"]))

    salt.exceptions.CommandExecutionError: Job for openmediavault-firewall.service failed because the control process exited with error code.

    See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details.

    Started: 00:20:43.010780

    Duration: 108.877 ms

    Changes:

  • Summary for debian

    ------------

    Succeeded: 4 (changed=1)

    Failed: 1

    ------------

    Total states run: 5

    Total run time: 1.128 s

    [ERROR ] Command '/bin/systemd-run' failed with return code: 1

    [ERROR ] stderr: Running scope as unit: run-r999c621e33bf4a55a83b290fbe763f67.scope

    Job for openmediavault-firewall.service failed because the control process exited with error code.

    See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details.

    [ERROR ] retcode: 1

    [ERROR ] An exception occurred in this state: Traceback (most recent call last):

    File "/usr/lib/python3/dist-packages/salt/state.py", line 2401, in call

    ret = self.states[cdata["full"]](

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

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

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

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

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

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1282, in wrapper

    return f(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 396, in run

    return _run(**kwargs)

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 451, in _run

    func_ret = _call_function(

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 497, in _call_function

    mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs)

    File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 174, in call_function

    return salt_function(*function_args, **function_kwargs)

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

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

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

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

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

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/modules/systemd_service.py", line 966, in restart

    raise CommandExecutionError(_strip_scope(ret["stderr"]))

    salt.exceptions.CommandExecutionError: Job for openmediavault-firewall.service failed because the control process exited with error code.

    See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details.



    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color iptables 2>&1' with exit code '1': debian:

    ----------

    ID: configure_firewall_script

    Function: file.managed

    Name: /etc/iptables/openmediavault-firewall.sh

    Result: True

    Comment: File /etc/iptables/openmediavault-firewall.sh is in the correct state

    Started: 00:20:39.982713

    Duration: 334.539 ms

    Changes:

    ----------

    ID: configure_firewall_unit_file

    Function: file.managed

    Name: /etc/systemd/system/openmediavault-firewall.service

    Result: True

    Comment: File /etc/systemd/system/openmediavault-firewall.service is in the correct state

    Started: 00:20:40.317541

    Duration: 107.381 ms

    Changes:

    ----------

    ID: iptables_systemctl_daemon_reload

    Function: module.run

    Result: True

    Comment: service.systemctl_reload: True

    Started: 00:20:40.426377

    Duration: 504.141 ms

    Changes:

    ----------

    service.systemctl_reload:

    True

    ----------

    ID: enable_firewall_service

    Function: service.enabled

    Name: openmediavault-firewall.service

    Result: True

    Comment: Service openmediavault-firewall.service is already enabled, and is in the desired state

    Started: 00:20:42.937375

    Duration: 72.79 ms

    Changes:

    ----------

    ID: restart_firewall_service

    Function: module.run

    Result: False

    Comment: An exception occurred in this state: Traceback (most recent call last):

    File "/usr/lib/python3/dist-packages/salt/state.py", line 2401, in call

    ret = self.states[cdata["full"]](

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

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

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

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

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

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1282, in wrapper

    return f(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 396, in run

    return _run(**kwargs)

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 451, in _run

    func_ret = _call_function(

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 497, in _call_function

    mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs)

    File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 174, in call_function

    return salt_function(*function_args, **function_kwargs)

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

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

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

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

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

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/modules/systemd_service.py", line 966, in restart

    raise CommandExecutionError(_strip_scope(ret["stderr"]))

    salt.exceptions.CommandExecutionError: Job for openmediavault-firewall.service failed because the control process exited with error code.

    See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details.

    Started: 00:20:43.010780

    Duration: 108.877 ms

    Changes:


    Summary for debian

    ------------

    Succeeded: 4 (changed=1)

    Failed: 1

    ------------

    Total states run: 5

    Total run time: 1.128 s

    [ERROR ] Command '/bin/systemd-run' failed with return code: 1

    [ERROR ] stderr: Running scope as unit: run-r999c621e33bf4a55a83b290fbe763f67.scope

    Job for openmediavault-firewall.service failed because the control process exited with error code.

    See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details.

    [ERROR ] retcode: 1

    [ERROR ] An exception occurred in this state: Traceback (most recent call last):

    File "/usr/lib/python3/dist-packages/salt/state.py", line 2401, in call

    ret = self.states[cdata["full"]](

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

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

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

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

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

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1282, in wrapper

    return f(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 396, in run

    return _run(**kwargs)

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 451, in _run

    func_ret = _call_function(

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 497, in _call_function

    mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs)

    File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 174, in call_function

    return salt_function(*function_args, **function_kwargs)

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

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

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

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

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

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/modules/systemd_service.py", line 966, in restart

    raise CommandExecutionError(_strip_scope(ret["stderr"]))

    salt.exceptions.CommandExecutionError: Job for openmediavault-firewall.service failed because the control process exited with error code.

    See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details.

    in /usr/share/php/openmediavault/system/process.inc:242

    Stack trace:

    #0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()

    #1 /usr/share/openmediavault/engined/rpc/config.inc(178): OMV\Engine\Module\ServiceAbstract->deploy()

    #2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)

    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)

    #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)

    #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(620): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusXm...', '/tmp/bgoutputGL...')

    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))

    #7 /usr/share/openmediavault/engined/rpc/config.inc(199): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)

    #8 [internal function]: Engined\Rpc\Config->applyChangesBg(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('applyChangesBg', Array, Array)

    #11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)

    #12 {main}

  • Still getting nowhere with this, Worst of all I can't store data to my new drives because I can't apply the changes with this stupid error to create the shares, that just pop out of nowhere. Meanwhile my 20TB drive is filled. It's a good thing I only use OMV for file storage and a rsync command to mirror the drives in case of failure. Just wish I knew why my OMV can just go from working fine to errors like this with no real changes or mods added.


    Just like to have a working NAS. A set it and forget it type of deal.

    • Official Post

    Job for openmediavault-firewall.service failed because the control process exited with error code.

    See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details.

    Post the output of these commands in a code box. See my signature for a guide how to do the posting.

  • Post the output of these commands in a code box. See my signature for a guide how to do the posting.

    That is the output from those commands. Hopefully this is something simple to fix.

  • That seems to be the problem.

    It was indeed, Although I'm not sure if it was caused by me or the issues I had about 2 years ago when I installed a new SATA PCI-E card that changed my network adapter settings (onboard NIC must share lanes with the PCI-E slot) and I had to make changes to the config.


    Anyway to help out others with the same issues. I went to Firewall Rules in OMV. There was rule in there, not sure if I made it or not.


    The rule had these settings.


    Family: IPv4

    Direction: INPUT

    Source: 192.168.1.0/252

    Protocol: TCP


    I changed the 252 of the mask to 24 as it's only the ending sublet of the IP that needs to change in my network for the subnet IP.


    So now the rules looks like this:


    Family: IPv4

    Direction: INPUT

    Source: 192.168.1.0/24

    Protocol: TCP

Participate now!

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