OMV Failed to execute command

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

    • OMV Failed to execute command

      Tried to change privileges of a folder and got the following error. HDD is still mounted and okay. All the shared folders on it are accessible. Any ideas?



      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.UTF-8; systemctl restart 'sharedfolders-appData.mount' 2>&1' with exit code '1': Job for sharedfolders-appData.mount failed.
      3. See "systemctl status sharedfolders-appData.mount" 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(160): OMV\System\SystemCtl->exec('restart', NULL, false)
      7. #2 /usr/share/openmediavault/engined/module/sharedfolders.inc(66): OMV\System\SystemCtl->restart()
      8. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleSharedfolders->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/bgstatusff...', '/tmp/bgoutput9P...')
      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(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      19. #14 {main}
      Display All
      Images
      • systemctl.PNG

        130.44 kB, 2,084×807, viewed 47 times

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

    • As I can see it tries to unmount shared mount point, but with no luck.
      Probably /sharedfolders/appData are in use by some user, device, process, daemon, etc.
      Try to run this as root in CLI to check who is using this folder.

      Shell-Script

      1. lsof +D /sharedfolders/appData
      2. lsof -i 4 /sharedfolders/appData
      It will gives you a list of processes using the folder. Try to reset connection or stop daemon (or disable whatever else which blocks the folder).
      Then try to change privileges again.