I have an OMV that started as an OMV 2.? that has been upgraded to OMV 3 and now OMV 4.1.12 in case that matters. As far as I could tell everything was working just fine for about a month. All my drives are present and shares are working. All my plugins work after I reinstalled them.
Yesterday I got a new external hard drive and I formatted and created an EXT4 file system on it through OMV. I can verify that the drive is mounted to /srv and I can create files and such on it. So far so good.
However, when I try to create a share (so far I've tried Apple and NFS) on this drive I get the following error:
Error #0:
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-backups.mount' 2>&1' with exit code '1': A dependency job for sharedfolders-backups.mount failed. See 'journalctl -xe' for details. in /usr/share/php/openmediavault/system/process.inc:182
Stack trace:
#0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
#1 /usr/share/php/openmediavault/system/systemctl.inc(160): OMV\System\SystemCtl->exec('restart', NULL, false)
#2 /usr/share/openmediavault/engined/module/sharedfolders.inc(66): OMV\System\SystemCtl->restart()
#3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleSharedfolders->startService()
#4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatus9D...', '/tmp/bgoutputQv...')
#8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#14 {main}
Alles anzeigen
When I run journalctl -xe I see the following line over an over from monit: 'mountpoint_media_bb921ad9-1f85-4062-9469-a81004ed2c6a' status failed (1) -- /media/bb921ad9-1f85-4062-9469-a81004ed2c6a is not a mountpoint.
So somehow and somewhere there appears to be a missmatch where the drive is mounted to /srv as it should be in OMV 4 but the rest of the system is looking for it in /media.
When I look in fstab I see that it is indeed configured to mount the drive to media instead of srv.
When I reboot the drive comes back mounted to /srv.
When I unmount the drive in /srv and try to mount /media/bb921ad9-1f85-4062-9469-a81004ed2c6a the command happily runs without error but doesn't mount the drive.
I am far from an expert in OMV.
Is there something I can do to fix this or should I trash it and install OMV 4 from scratch?
Many thanks
Rich