OMV Failed to execute command

    • 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/
      4. Stack trace:
      5. #0 /usr/share/php/openmediavault/system/ OMV\System\Process->execute(Array, 1)
      6. #1 /usr/share/php/openmediavault/system/ OMV\System\SystemCtl->exec('restart', NULL, false)
      7. #2 /usr/share/openmediavault/engined/module/ OMV\System\SystemCtl->restart()
      8. #3 /usr/share/openmediavault/engined/rpc/ OMVModuleSharedfolders->startService()
      9. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      10. #5 /usr/share/php/openmediavault/rpc/ call_user_func_array(Array, Array)
      11. #6 /usr/share/php/openmediavault/rpc/ OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      12. #7 /usr/share/php/openmediavault/rpc/ OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusff...', '/tmp/bgoutput9P...')
      13. #8 /usr/share/php/openmediavault/rpc/ OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      14. #9 /usr/share/openmediavault/engined/rpc/ OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      15. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      16. #11 /usr/share/php/openmediavault/rpc/ call_user_func_array(Array, Array)
      17. #12 /usr/share/php/openmediavault/rpc/ 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
      • systemctl.PNG

        130.44 kB, 2,084×807, viewed 51 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.


      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.