[Cannot make changes to network] "Job for networking.service failed because the control process exited with error code"

    • OMV 4.x
    • Resolved
    • [Cannot make changes to network] "Job for networking.service failed because the control process exited with error code"

      Good evening.

      I have 2 NICs, Intel i-210 (eth0) and Intel i-219 (eth1) to which I cannot make any configuration changes either in CLI mode (omv-firstaid) or in the webUI (Network tab), as I always get this error:

      Source Code

      1. Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start 'networking' 2>&1' with exit code '1':
      2. Job for <a href="http://networking.service">networking.service</a> failed because the control process exited with error code.
      3. See "systemctl status <a href="http://networking.service" "="">networking.service"</a> and "journalctl -xe" for details

      In details:

      Source Code

      1. Error #0:
      2. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start 'networking' 2>&1' with exit code '1': Job for <a href="http://networking.service">networking.service</a> failed because the control process exited with error code.
      3. See "systemctl status <a href="http://networking.service" "="">networking.service"</a> and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:175
      4. Stack trace:
      5. #0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
      6. #1 /usr/share/php/openmediavault/system/systemctl.inc(146): OMV\System\SystemCtl->exec('start', NULL, false)
      7. #2 /usr/share/openmediavault/engined/module/networking.inc(44): OMV\System\SystemCtl->start()
      8. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleNetworking->startService()
      9. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)

      If I enter "systemctl status networking.service" I get:

      Source Code

      1. ● <a href="http://networking.service">networking.service</a> - Raise network interfaces
      2. Loaded: loaded (/<a href="http://lib/systemd/system/networking.service;">lib/systemd/system/networking.service;</a> enabled; vendor preset: enabled)
      3. Active: failed (Result: exit-code) since Fri 2017-12-08 14:04:10 CET; 13s ago
      4. Docs: man:interfaces(5)
      5. Process: 11629 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
      6. Process: 11624 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environmen
      7. Main PID: 11629 (code=exited, status=1/FAILURE)
      8. CPU: 182ms
      9. dic 08 14:04:10 olmos13nas systemd[1]: Starting Raise network interfaces...
      10. dic 08 14:04:10 olmos13nas ifup[11629]: ifquery: recursion detected for interface eth0 in post-up phase
      11. dic 08 14:04:10 olmos13nas ifup[11629]: run-parts: /etc/network/if-up.d/openmediavault-issue exited with return c
      12. dic 08 14:04:10 olmos13nas ifup[11629]: ifup: failed to bring up eth0
      13. dic 08 14:04:10 olmos13nas systemd[1]: <a href="http://networking.service:">networking.service:</a> Main process exited, code=exited, status=1/FAILURE
      14. dic 08 14:04:10 olmos13nas systemd[1]: Failed to start Raise network interfaces.
      15. dic 08 14:04:10 olmos13nas systemd[1]: <a href="http://networking.service:">networking.service:</a> Unit entered failed state.
      16. dic 08 14:04:10 olmos13nas systemd[1]: <a href="http://networking.service:">networking.service:</a> Failed with result 'exit-code'.
      Display All

      And if I enter "journalctl -xe" I get:

      Source Code

      1. dic 08 14:06:58 olmos13nas systemd[1]: Starting Raise network interfaces...
      2. -- Subject: Unit <a href="http://networking.service">networking.service</a> has begun start-up
      3. -- Defined-By: systemd
      4. -- Support: <a href="https://www.debian.org/support">https://www.debian.org/support</a>
      5. --
      6. -- Unit <a href="http://networking.service">networking.service</a> has begun starting up.
      7. dic 08 14:06:58 olmos13nas ifup[13693]: ifquery: recursion detected for interface eth0 in post-up phase
      8. dic 08 14:06:58 olmos13nas ifup[13693]: run-parts: /etc/network/if-up.d/openmediavault-issue exited with return code 1
      9. dic 08 14:06:58 olmos13nas ifup[13693]: ifup: failed to bring up eth0
      10. dic 08 14:06:58 olmos13nas systemd[1]: <a href="http://networking.service:">networking.service:</a> Main process exited, code=exited, status=1/FAILURE
      11. dic 08 14:06:58 olmos13nas systemd[1]: Failed to start Raise network interfaces.
      12. -- Subject: Unit <a href="http://networking.service">networking.service</a> has failed
      13. -- Defined-By: systemd
      14. -- Support: <a href="https://www.debian.org/support">https://www.debian.org/support</a>
      15. --
      16. -- Unit <a href="http://networking.service">networking.service</a> has failed.
      17. --
      18. -- The result is failed.
      19. dic 08 14:06:58 olmos13nas systemd[1]: <a href="http://networking.service:">networking.service:</a> Unit entered failed state.
      20. dic 08 14:06:58 olmos13nas systemd[1]: <a href="http://networking.service:">networking.service:</a> Failed with result 'exit-code'.
      Display All

      The main drawbacks are:

      - I cannot activate wake-on-lan so I have to go physically to power on the NAS when I need it.
      - I cannot do link-aggregation (eth0+eth1) to have a backup in case one of the NICs fail.

      Technically I can configure them, but at the moment of saving the changes in the webUI, it shows the errror and it does not take the changes.

      It seems that there is something wrong at the moment of raising the netowrk interface (if up).

      My /etc/network/interfaces looks like this:

      Source Code

      1. # The loopback network interface
      2. auto lo
      3. iface lo inet loopback
      4. # eth0 network interface
      5. auto eth0
      6. allow-hotplug eth0
      7. iface eth0 inet manual
      8. pre-down ip -4 addr flush dev $IFACE
      9. dns-search olmos13
      10. iface eth0 inet6 manual
      11. pre-down ip -6 addr flush dev $IFACE
      Display All

      Ifconfig gives the following information (masked the MAC parts):

      Source Code

      1. docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
      2. inet <a href="http://172.17.0.1">172.17.0.1</a> netmask <a href="http://255.255.0.0">255.255.0.0</a> broadcast <a href="http://0.0.0.0">0.0.0.0</a>
      3. ether XX:XX:XX:XX:XX:XX txqueuelen 0 (Ethernet)
      4. RX packets 0 bytes 0 (0.0 B)
      5. RX errors 0 dropped 0 overruns 0 frame 0
      6. TX packets 0 bytes 0 (0.0 B)
      7. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
      8. eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
      9. inet <a href="http://192.168.13.31">192.168.13.31</a> netmask <a href="http://255.255.255.0">255.255.255.0</a> broadcast <a href="http://192.168.13.255">192.168.13.255</a>
      10. ether XX:XX:XX:XX:XX:XX txqueuelen 1000 (Ethernet)
      11. RX packets 23820840 bytes 29159028858 (27.1 GiB)
      12. RX errors 0 dropped 0 overruns 622 frame 0
      13. TX packets 12043434 bytes 1909707069 (1.7 GiB)
      14. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
      15. device memory 0xdfe00000-dfe7ffff
      16. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
      17. inet <a href="http://127.0.0.1">127.0.0.1</a> netmask <a href="http://255.0.0.0">255.0.0.0</a>
      18. inet6 ::1 prefixlen 128 scopeid 0x10<host>
      19. loop txqueuelen 1000 (Local Loopback)
      20. RX packets 8368781 bytes 10767049842 (10.0 GiB)
      21. RX errors 0 dropped 0 overruns 0 frame 0
      22. TX packets 8368781 bytes 10767049842 (10.0 GiB)
      23. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
      Display All
      I tried:
      - Perform any change with the network cable attached and detached
      - Enter the command "ifconfig eht0 down" and "ifconfig eth1 down" and tried to perform any change
      - Enter "system restart networking" (command works)
      - Flush by entering: "ip addr flush dev eth0" and "ip addr flush dev eth1" (command works)

      Thanks in advance.

      Regards.
      || omv 4.0.14 | kernel 4.9.0 | omvextrasorg 4.1.0 ||
    • Which version are you using? I expect OMV3. If possible, upgrade to OMV4 which has some improvements related to this issue.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • votdev wrote:

      Which version are you using? I expect OMV3. If possible, upgrade to OMV4 which has some improvements related to this issue.
      Thank you for the quick response.

      Sorry I forgot the tag in the OP. I am running latest 4.0.14-1 arrakis.

      Curiously enough, in 3.0.94 erasmus I have it working with no issues (both WOL and Link-Aggregation).

      I got arrakis configured and running at 100% except for this issue.
      || omv 4.0.14 | kernel 4.9.0 | omvextrasorg 4.1.0 ||

      The post was edited 1 time, last by jfromeo ().

    • I am wondering now because OMV4 does not have the openmediavault-issue scripts anymore which are reported in your journal. They should have been removed during the package installation automatically.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Because of unknown reasons the files are not removed by the package management. The commit github.com/openmediavault/open…b9c6e56cd621371c15d69122e will fix that in openmediavault 4.0.15.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit