I'm running OMV with 1 SSD and a ZFS pool, and right now I'm trying to get a borg backup set up for the SSD which contains the OS (version 4.1.22-1) and other configs.
I have a remote backup server (not OMV) which I can access through VPN at 192.168.2.100, the OMV server is local with ip 192.168.1.100.
I've set up ssh keys for root and "adm" user (adm is a user I created for accessing omv with ssh), both are able to reach the remote server by running
ssh borg@192.168.2.100
the borg user on the remote server requires a passphrase to access.
Borg on my OMV machine is version 1.1.5 and I updated the remote server to have the same.
So now I try to set up borg backup using the plugin in the UI and set it up like this:
This results in an error:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; BORG_PASSPHRASE='XXXXXX' /usr/bin/borg init --encryption=none 'borg@192.168.2.100:/volume1/backups/borg'' with exit code '2':
The detailed stacktrace:
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; BORG_PASSPHRASE='XXXXXX' /usr/bin/borg init --encryption=none 'borg@192.168.2.100:/volume1/backups/borg'' with exit code '2': in /usr/share/php/openmediavault/system/process.inc:182Stack trace:#0 /usr/share/openmediavault/engined/rpc/borgbackup.inc(152): OMV\System\Process->execute(Array)#1 [internal function]: OMVRpcServiceBorgBackup->setRepo(Array, Array)#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setRepo', Array, Array)#4 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('BorgBackup', 'setRepo', Array, Array, 1)#5 {main}
This error doesn't really tell me anything other than a setRepo rpc seems to fail.
So first off I haven't been able to find any documentation for the plugin, so that would be great.
Which user does the plugin use for connecting through ssh to the remote server?
Suggestions to troubleshoot this? I'll supply more information if I happened to leave something out.