Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin ...

    • Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin ...

      Hello,

      after the upgrade from omv 3 to 4, I am trying so add some shared folders or remove some, where the hdd does not exist anymore.
      For both I get:

      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; systemctl restart 'sharedfolders-hdtv.mount' 2>&1' with exit code '1': A dependency job for sharedfolders-hdtv.mount failed. See 'journalctl -xe' for details. in /usr/share/php/openmediavault/system/process.inc:182
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
      5. #1 /usr/share/php/openmediavault/system/systemctl.inc(160): OMV\System\SystemCtl->exec('restart', NULL, false)
      6. #2 /usr/share/openmediavault/engined/module/sharedfolders.inc(66): OMV\System\SystemCtl->restart()
      7. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleSharedfolders->startService()
      8. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      9. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusDK...', '/tmp/bgoutputFH...')
      12. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      13. #9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      14. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      15. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      16. #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      17. #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      18. #14 {main}
      Display All
      For 'journalctl -xe' I get:


      Source Code

      1. root@openmediavault:~# journalctl -xe
      2. Sep 21 19:00:21 openmediavault systemd[1]: Dependency failed for /srv/dev-disk-b
      3. -- Subject: Unit srv-dev\x2ddisk\x2dby\x2dlabel\x2d640GB.mount has failed
      4. -- Defined-By: systemd
      5. -- Support: https://www.debian.org/support
      6. --
      7. -- Unit srv-dev\x2ddisk\x2dby\x2dlabel\x2d640GB.mount has failed.
      8. --
      9. -- The result is dependency.
      10. Sep 21 19:00:21 openmediavault systemd[1]: Dependency failed for Mount shared fo
      11. -- Subject: Unit sharedfolders-hdtv.mount has failed
      12. -- Defined-By: systemd
      13. -- Support: https://www.debian.org/support
      14. --
      15. -- Unit sharedfolders-hdtv.mount has failed.
      16. --
      17. -- The result is dependency.
      18. Sep 21 19:00:21 openmediavault systemd[1]: sharedfolders-hdtv.mount: Job sharedf
      19. Sep 21 19:00:21 openmediavault systemd[1]: srv-dev\x2ddisk\x2dby\x2dlabel\x2d640
      20. Sep 21 19:00:21 openmediavault systemd[1]: systemd-fsck@dev-disk-by\x2dlabel-640
      21. Sep 21 19:00:21 openmediavault systemd[1]: dev-disk-by\x2dlabel-640GB.device: Jo
      22. Sep 21 19:00:37 openmediavault monit[1536]: 'mountpoint_srv_dev-disk-by-label-64
      23. Sep 21 19:00:37 openmediavault monit[1536]: 'filesystem_srv_dev-disk-by-id-md-na
      24. Sep 21 19:01:04 openmediavault dhclient[7298]: DHCPDISCOVER on veth6632706 to 25
      25. lines 2276-2298/2298 (END)
      26. -- The result is dependency.
      27. Sep 21 19:00:21 openmediavault systemd[1]: Dependency failed for /srv/dev-disk-by-label-640GB.
      28. -- Subject: Unit srv-dev\x2ddisk\x2dby\x2dlabel\x2d640GB.mount has failed
      29. -- Defined-By: systemd
      30. -- Support: https://www.debian.org/support
      31. --
      32. -- Unit srv-dev\x2ddisk\x2dby\x2dlabel\x2d640GB.mount has failed.
      33. --
      34. -- The result is dependency.
      35. Sep 21 19:00:21 openmediavault systemd[1]: Dependency failed for Mount shared folder hdtv to /sharedfolders/hdtv.
      36. -- Subject: Unit sharedfolders-hdtv.mount has failed
      37. -- Defined-By: systemd
      38. -- Support: https://www.debian.org/support
      39. --
      40. -- Unit sharedfolders-hdtv.mount has failed.
      41. --
      42. -- The result is dependency.
      43. Sep 21 19:00:21 openmediavault systemd[1]: sharedfolders-hdtv.mount: Job sharedfolders-hdtv.mount/start failed with result 'dependency'.
      44. Sep 21 19:00:21 openmediavault systemd[1]: srv-dev\x2ddisk\x2dby\x2dlabel\x2d640GB.mount: Job srv-dev\x2ddisk\x2dby\x2dlabel\x2d640GB.mount/start failed with result 'depend
      45. Sep 21 19:00:21 openmediavault systemd[1]: systemd-fsck@dev-disk-by\x2dlabel-640GB.service: Job systemd-fsck@dev-disk-by\x2dlabel-640GB.service/start failed with result 'de
      46. Sep 21 19:00:21 openmediavault systemd[1]: dev-disk-by\x2dlabel-640GB.device: Job dev-disk-by\x2dlabel-640GB.device/start failed with result 'timeout'.
      47. Sep 21 19:00:37 openmediavault monit[1536]: 'mountpoint_srv_dev-disk-by-label-640GB' status failed (1) -- /srv/dev-disk-by-label-640GB is not a mountpoint
      48. Sep 21 19:00:37 openmediavault monit[1536]: 'filesystem_srv_dev-disk-by-id-md-name-openmediavault-500GBRaid' space usage 85.9% matches resource limit [space usage>85.0%]
      49. Sep 21 19:01:04 openmediavault dhclient[7298]: DHCPDISCOVER on veth6632706 to 255.255.255.255 port 67 interval 5
      50. lines 2276-2298/2298 (END)
      Display All


      Can anybody please help me, how to fix the problem? ;(

      Regards, Tomte
    • Tomte wrote:

      Thanks for the answer!
      It was an USB drive, I pulled it off. Not nice, but I did it.
      Is this really the problem? Do I need to find it, attach it, and then I can remove it?
      Yes!! Attach the drive, remove any shared folders associated with that drive, you'll probably get a save configuration message come up...save and apply changes, do that with each share. If you have Samba shares do them first, then remove/unmount the drive again save configuration, the error regarding the shared folder/s and the 'mount has failed' should resolve themselves.
      Raid is not a backup! Would you go skydiving without a parachute?
    • Users Online 1

      1 Guest