Only a while after removing a broken external disk, I wanted to clean up the configuration. Removed sharing from services/SMB, then wanted to delete the shared folder (to be able to remove the disk). When selecting delete ("Löschen") and applying I received a popup with the following content:
Code
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start 'sharedfolders-Elements.mount' 2>&1' with exit code '4': Failed to start sharedfolders-Elements.mount: Access deniedSee system logs and 'systemctl status sharedfolders-Elements.mount' for details.
Fehler #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 start 'sharedfolders-Elements.mount' 2>&1' with exit code '4': Failed to start sharedfolders-Elements.mount: Access denied
See system logs and 'systemctl status sharedfolders-Elements.mount' for details. in /usr/share/php/openmediavault/system/process.inc:175
Stack trace:
#0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 4)
#1 /usr/share/php/openmediavault/system/systemctl.inc(104): OMV\System\SystemCtl->exec('start', NULL, false)
#2 /usr/share/openmediavault/engined/module/sharedfolders.inc(59): OMV\System\SystemCtl->enable(true)
#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/bgstatusJd...', '/tmp/bgoutputEj...')
#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}
[b][/b][i][/i][u][/u][sub][/sub][sup][/sup][s][/s]
[b][/b][i][/i][u][/u][sub][/sub][sup][/sup][s][/s]
Alles anzeigen
systemctl status sharedfolders-Elements.mount yields:
Code
● sharedfolders-Elements.mount - Mount shared folder Elements to /sharedfolders/Elements
Loaded: error (Reason: Operation not permitted)
Active: inactive (dead)
Where: /sharedfolders/Elements
What: /srv/dev-disk-by-label-Elements4TB/.
Jun 09 15:20:11 hpms systemd[1]: [/etc/systemd/system/sharedfolders-Elements.mount:7] Failed to add required mount "/srv/dev-disk-by-label-Elements4TB/.", ignoring: Operation n
Jun 09 15:20:11 hpms systemd[1]: sharedfolders-Elements.mount: Cannot add dependency job, ignoring: Access denied
Jun 09 15:20:12 hpms systemd[1]: [/etc/systemd/system/sharedfolders-Elements.mount:7] Failed to add required mount "/srv/dev-disk-by-label-Elements4TB/.", ignoring: Operation n
Jun 09 15:20:12 hpms systemd[1]: [/etc/systemd/system/sharedfolders-Elements.mount:7] Failed to add required mount "/srv/dev-disk-by-label-Elements4TB/.", ignoring: Operation n
Jun 09 15:20:12 hpms systemd[1]: [/etc/systemd/system/sharedfolders-Elements.mount:7] Failed to add required mount "/srv/dev-disk-by-label-Elements4TB/.", ignoring: Operation n
Jun 09 15:20:12 hpms systemd[1]: [/etc/systemd/system/sharedfolders-Elements.mount:7] Failed to add required mount "/srv/dev-disk-by-label-Elements4TB/.", ignoring: Operation n
Jun 09 15:20:12 hpms systemd[1]: [/etc/systemd/system/sharedfolders-Elements.mount:7] Failed to add required mount "/srv/dev-disk-by-label-Elements4TB/.", ignoring: Operation n
Alles anzeigen
The disk mentioned in the systemctl command above (/srv/dev-disk-by-label-Elements4TB/) is still there (not the failed one) and seems to work correctly.
What to do?
Recently I had upgraded from OMV3 to 4, which seemed to proceed without any errors.