Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to apply changes #153

Closed
andocromn opened this Issue Aug 1, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@andocromn
Copy link

andocromn commented Aug 1, 2018

Openmediavault seems to be masking services and then failing as a result. I have unmasked them manually and successfully started collectd. but when open media vault tries to do the same it results in the error below

Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start 'collectd' 2>&1' with exit code '1': Failed to start collectd.service: Unit media-7f866823\x2d941b\x2d41d0\x2d8cf4\x2d02cdcc5381ef-drives-data5.mount is masked.
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 start 'collectd' 2>&1' with exit code '1': Failed to start collectd.service: Unit media-7f866823\x2d941b\x2d41d0\x2d8cf4\x2d02cdcc5381ef-drives-data5.mount is masked. 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, 1)
#1 /usr/share/php/openmediavault/system/systemctl.inc(104): OMV\System\SystemCtl->exec('start', NULL, false)
#2 /usr/share/openmediavault/engined/module/collectd.inc(76): OMV\System\SystemCtl->enable(true)
#3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleCollectd->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/bgstatusBR...', '/tmp/bgoutputLh...')
#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}
@votdev

This comment has been minimized.

Copy link
Collaborator

votdev commented Aug 2, 2018

OMV does not mask serice units itself. To me it seems the auto-generated unit file for mounts is masked, but this is completely done by systemd.
How can we reproduce this behaviour? i did not see that ever.

@votdev votdev added the 4.x label Aug 2, 2018

@votdev votdev closed this Jan 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.