Failed set static IP to 2nd networkcard

    • OMV 4.x

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

    • Failed set static IP to 2nd networkcard

      Hey guys,

      Hardware
      HP Gen8 Microserver
      Xeon E3 1260L
      16GB Ram
      4 x 4 TB Hard Disk
      1 x 120 GB root ssd

      in OMV 2.X it was working.
      Eno1 was 192.168.2.3
      Eno2 was 192.168.2.4

      I made a clean install months ago to OMV 4.x.
      Now on 4.1.18-1
      with Kermel 4.18.0

      Everything looks and runs good. Docker, sharing, emby and so on no prpblems.

      But when I try to set a static IP in WebUI for the second network card i get this error.

      Source Code

      1. Fehler #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.UTF-8; systemctl start 'networking' 2>&1' with exit code '1': Job for networking.service failed because the control process exited with error code.
      3. See "systemctl status networking.service" and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:182
      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)
      10. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      11. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      12. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusGj...', '/tmp/bgoutputzc...')
      13. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      14. #9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      15. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      16. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      17. #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      18. #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      19. #14 {main}
      Display All

      networkinterfaces looks like that:

      Source Code

      1. # eno1 network interface
      2. auto eno1
      3. allow-hotplug eno1
      4. iface eno1 inet static
      5. address 192.168.2.3
      6. gateway 192.168.2.1
      7. netmask 255.255.255.0
      8. dns-nameservers 192.168.2.1
      9. pre-down ethtool -s $IFACE wol g
      10. iface eno1 inet6 manual
      11. pre-down ip -6 addr flush dev $IFACE
      12. # Include additional interface stanzas.
      13. # Include additional interface stanzas.
      14. source-directory interfaces.d
      15. # The loopback network interface
      16. auto lo
      17. iface lo inet loopback
      Display All

      Source Code

      1. root@NAS02-OMV:~# systemctl status networking.service
      2. ● networking.service - Raise network interfaces
      3. Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
      4. Active: failed (Result: exit-code) since Mon 2019-02-04 09:19:35 CET; 3min 31s ago
      5. Docs: man:interfaces(5)
      6. Process: 11157 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
      7. Process: 11148 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited, status=0/S
      8. UCCESS)
      9. Main PID: 11157 (code=exited, status=1/FAILURE)
      10. CPU: 452ms
      11. Feb 04 09:19:34 NAS02-OMV systemd[1]: Starting Raise network interfaces...
      12. Feb 04 09:19:35 NAS02-OMV ifup[11157]: RTNETLINK answers: File exists
      13. Feb 04 09:19:35 NAS02-OMV ifup[11157]: ifup: failed to bring up eno2
      14. Feb 04 09:19:35 NAS02-OMV systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
      15. Feb 04 09:19:35 NAS02-OMV systemd[1]: Failed to start Raise network interfaces.
      16. Feb 04 09:19:35 NAS02-OMV systemd[1]: networking.service: Unit entered failed state.
      17. Feb 04 09:19:35 NAS02-OMV systemd[1]: networking.service: Failed with result 'exit-code'.
      Display All

      Somebody can give me an advise how to solv it?

      The funny thing is, i can log into the machine with 192.168.2.4

      The post was edited 1 time, last by Funky-Fab-4Strings ().

    • I'm having the same exact issue right now. I can set an IP from omv-firstaid, but only on one NIC. If I try one NIC or the other the oposite NIC will go down and not be able to be brought back online.

      Web interface produces 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.UTF-8; systemctl start 'networking' 2>&1' with exit code '1': Job for networking.service failed because the control process exited with error code. See "systemctl status networking.service" and "journalctl -xe" for details.
      2. Error #0:
      3. 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; systemctl start 'networking' 2>&1' with exit code '1': Job for networking.service failed because the control process exited with error code.
      4. See "systemctl status networking.service" and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:182
      5. Stack trace:
      6. #0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
      7. #1 /usr/share/php/openmediavault/system/systemctl.inc(146): OMV\System\SystemCtl->exec('start', NULL, false)
      8. #2 /usr/share/openmediavault/engined/module/networking.inc(44): OMV\System\SystemCtl->start()
      9. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleNetworking->startService()
      10. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      11. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      12. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      13. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatus7n...', '/tmp/bgoutputFj...')
      14. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      15. #9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      16. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      17. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      18. #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      19. #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      20. #14 {main}
      Display All
    • I believe this may be caused by having two gateways on one server. Do you have gateways set on both NICs? I removed one and the error seems to be gone. Now I have to figure out the route...


      Never mind that, I made a change to the network in the GUI and it still had the error with no gateway.

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

    • Hey there bud i have been tinkering with getting a good pair of intel branded nics installed into my omv box. i had 1 network card initiated and every time i tried to activate another my omv network shut down and i had to reboot the system then it would just cycle asking to apply/reverse the change .

      i solved this by going into the bios and disabling the onboard nic so my to pci nics could be used in balanced mode and it applied and worked straight away.

      this probably might not apply to you just thought i would lay it out there just in case your in the same boat that i was.
    • dommiel24 wrote:

      Hey there bud i have been tinkering with getting a good pair of intel branded nics installed into my omv box. i had 1 network card initiated and every time i tried to activate another my omv network shut down and i had to reboot the system then it would just cycle asking to apply/reverse the change .

      i solved this by going into the bios and disabling the onboard nic so my to pci nics could be used in balanced mode and it applied and worked straight away.

      this probably might not apply to you just thought i would lay it out there just in case your in the same boat that i was.
      Thanks for the info. The Gen8 has overall 3 nic's onboard. And I want to use 2 of them for traffic. the third one is for ILO