Unable to mount Borg repo from UI, does mount with Borg CLI

  • I recently performed a clean install of OMV7 and got everything up and running, but when I try to mount a borg repo I'm met with the following error. I'm not sure why there's an extra / in /srv/mergerfs/Data/Backup/BorgBackup/MSOS//MSOS, but I'm wondering if that has something to do with it. I'm able to mount these repos fine using the borg cli.

    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 BORG_PASSPHRASE=xxxxxxx; /usr/bin/borg mount -o allow_other '/srv/mergerfs/Data/Backup/BorgBackup/MSOS/' '/srv/mergerfs/Data/Backup/BorgBackup/MSOS//MSOS'': 
    
    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 BORG_PASSPHRASE=xxxxxxx; /usr/bin/borg mount -o allow_other '/srv/mergerfs/Data/Backup/BorgBackup/MSOS/' '/srv/mergerfs/Data/Backup/BorgBackup/MSOS//MSOS'':  in /usr/share/openmediavault/engined/rpc/borgbackup.inc:295
    Stack trace:
    #0 [internal function]: OMVRpcServiceBorgBackup->mountRepo()
    #1 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()
    #2 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()
    #3 /usr/sbin/omv-engined(535): OMV\Rpc\Rpc::call()
    #4 {main}

    OMV7 | Xeon W-1250 | 48 GB | Linux 6.5 PVE

    • Official Post

    I'm not sure why there's an extra / in /srv/mergerfs/Data/Backup/BorgBackup/MSOS//MSOS, but I'm wondering if that has something to do with it.

    That isn't causing a problem. It happens because there is a slash on the end on your sharefolder path. I can look at improving it though.


    I'm able to mount these repos fine using the borg cli.

    You are using the exact same command as in the output? Does it work with double slashes?

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.7 | compose 7.6.7 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • You are using the exact same command as in the output? Does it work with double slashes?

    borg mount /srv/mergerfs/Data/Backup/BorgBackup/MSOS/ /srv/mergerfs/Data/Backup/BorgBackup/MSOS//MSOS is the command I used to manually mount the repo, it does work with the double slashes.

    OMV7 | Xeon W-1250 | 48 GB | Linux 6.5 PVE

    • Official Post

    s the command I used to manually mount the repo

    Can you please try the exact command in the error?


    I'll also say that this plugin was working as expected in OMV6.

    Nothing has changed in most of the borg plugin for OMV 7 including mounting a repo. I have no problem mounting a repo unless it has no archives (which makes sense since there is nothing to mount).

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.7 | compose 7.6.7 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Can you please try the exact command in the error?


    Nothing has changed in most of the borg plugin for OMV 7 including mounting a repo. I have no problem mounting a repo unless it has no archives (which makes sense since there is nothing to mount).

    Sorry, I misunderstood, running the below command

    Code
    export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export BORG_PASSPHRASE=xxxxxxx; /usr/bin/borg mount -o allow_other '/srv/mergerfs/Data/Backup/BorgBackup/MSOS/' '/srv/mergerfs/Data/Backup/BorgBackup/MSOS//MSOS'

    results with passphrase supplied in BORG_PASSPHRASE, by BORG_PASSCOMMAND or via BORG_PASSPHRASE_FD is incorrect., but commands like check, list, and info work without problem.

    OMV7 | Xeon W-1250 | 48 GB | Linux 6.5 PVE

    • Official Post

    results with passphrase supplied in BORG_PASSPHRASE, by BORG_PASSCOMMAND or via BORG_PASSPHRASE_FD is incorrect., but commands like check, list, and info work without problem.

    I guess I need to mention that you will have to change the 'xxxxxxx' to your passphrase. If I can't get a good error message, I don't know what to fix.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.7 | compose 7.6.7 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    When I change 'xxxxxxx' to my passphrase it mounts correctly.

    If you run echo $? immediately after that command, what does it output?

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.7 | compose 7.6.7 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    Well, the same command the plugin is running works and returns a zero exit code indicating success. I'm not sure what I can change in the plugin. Is it still failing? Do you have another repo to try mounting?

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.7 | compose 7.6.7 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    Can you try the mount from the web interface with omv-engined in debug mode?

    sudo monit stop omv-engined

    sudo killall omv-engined

    sudo omv-engined -df

    # try the mount in the web interface, post any error info

    sudo killall omv-engined



    # to put back in normal mode

    sudo monit start omv-engined

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.7 | compose 7.6.7 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    The web interface doesn't work when I perform those steps.

    Did you run the first three and check the web interface? The last two are to be done after you are done debugging.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.7 | compose 7.6.7 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    I use this all the time when testing plugin changes. Are there any errors in the output?

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.7 | compose 7.6.7 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    What output is on the command line though? It should show something.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.7 | compose 7.6.7 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • This is all I see

    Code
    root@omv:~# sudo monit stop omv-engined
    root@omv:~# sudo killall omv-engined
    omv-engined: no process found
    root@omv:~# sudo omv-engined -df
    omv-engined[1696339]: Daemon process started (pid=1696340)
    omv-engined[1696339]:
    root@omv:~#

    OMV7 | Xeon W-1250 | 48 GB | Linux 6.5 PVE

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!