I'm trying to use the scheduled jobs to run a script to fix an ftp issue.. so
I tried to set it up like this:
but when I try to execute it it fails with this error:
Code
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.UTF-8; export SHELL=/bin/sh; sudo --shell --non-interactive --user=root -- sh /etc/init.d/proftpd restart 2>&1' with exit code '1': Restarting proftpd (via systemctl): proftpd.service
Job for proftpd.service failed because the control process exited with error code.
See "systemctl status proftpd.service" and "journalctl -xe" for details.
failed! in /usr/share/openmediavault/engined/rpc/cron.inc:177
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): Engined\Rpc\Cron->Engined\Rpc\{closure}('/tmp/bgstatus0x...', '/tmp/bgoutputkX...')
#1 /usr/share/openmediavault/engined/rpc/cron.inc(181): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: Engined\Rpc\Cron->execute(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('execute', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Cron', 'execute', Array, Array, 1)
#6 {main}
Alles anzeigen
any ideas?
The issues I'm actually having is described here, but nobody seems to know how to fix it except for manually restarting the service:
https://forum.openmediavault.o…?postID=219161#post219161
edit: nevermind, it somehow, just works after rebooting, guess I can just ignore that error.