I just updated OMV 5 to 6 and everything seems to be fine except the cron job for SnapRaid seems to be failing. Here is the error when trying to execute the cron job manually:
Code
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export SHELL=/bin/sh; sudo --shell --non-interactive --user='root' -- /var/lib/openmediavault/cron.d/userdefined-57e13a3c-5a94-11ec-8153-3f587eab8e1f 2>&1' with exit code '1':
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 LANGUAGE=; export SHELL=/bin/sh; sudo --shell --non-interactive --user='root' -- /var/lib/openmediavault/cron.d/userdefined-57e13a3c-5a94-11ec-8153-3f587eab8e1f 2>&1' with exit code '1': in /usr/share/openmediavault/engined/rpc/cron.inc:198
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): Engined\Rpc\Cron->Engined\Rpc\{closure}('/tmp/bgstatusIG...', '/tmp/bgoutputdc...')
#1 /usr/share/openmediavault/engined/rpc/cron.inc(202): 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
I tried replicating to see which step is failing and it's failing at some logging conditional. Doesn't seem like it's the actual root cause. If I add everything on the script prior to this line, it works. If I add just this line to the end, it fails.