borg icon indicating copy to clipboard operation
borg copied to clipboard

`borg benchmark crud` does not respect `--remote-path`

Open ollyollyollyltd opened this issue 1 year ago • 0 comments

Have you checked borgbackup docs, FAQ, and open GitHub issues?

Yes

Is this a BUG / ISSUE report or a QUESTION?

Bug

System information. For client/server mode post info for both machines.

Your borg version (borg -V).

Local = 1.2.7 Remote 0.2.9 / 1.2.7

Full borg commandline that lead to the problem (leave away excludes and passwords)

borg --remote-path borg1 benchmark crud [email protected]:test

Describe the problem you're observing.

I am trying run a benchmark on an rsync.net server. rsync.net runs an outdated version of borg by default (0.2.9). In order to use v1.x the client is required to send --remote-path borg1 with each command.

If the argument is not set then a version mismath warning is displayed.

When borg --remote-path borg1 benchmark crud [email protected]:test the version mismatch is displayed, despite setting the argument. This suggests that this command is not respecting the --remote-path argument and running the default borg path on the server, rather than the requested borg1.

In addition, I am getting a borg.repository.DoesNotExist: /test error, but this may be to do with the mismatched versions, so I figured I would work that out first then move on to that.

Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.

borg --remote-path borg1 [email protected]:test
borg --remote-path borg1 benchmark crud [email protected]:test`

Include any warning/errors/backtraces from the system logs


$ borg --remote-path=borg1 init -e none ***@***.rsync.net:test
$ borg --remote-path=borg1 benchmark crud "***@***.rsync.net:./test" ./bm
Remote: Borg 0.29.0: exception in RPC call:
Remote: Traceback (most recent call last):
Remote:   File "/usr/home/kibab/borgbackup-0.29.0/borg/remote.py", line 96, in serve
Remote: TypeError: open() takes from 2 to 5 positional arguments but 7 were given
Remote: Command 'uname -p 2> /dev/null' is not in the allowed list.
Remote: Platform: FreeBSD ch-s014.rsync.net 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 rsync_13_1 amd64
Remote: Python: CPython 3.4.3
Remote: 
Please note:
If you see a TypeError complaining about the number of positional arguments
given to open(), you can ignore it if it comes from a borg version < 1.0.7.
This TypeError is a cosmetic side effect of the compatibility code borg
clients >= 1.0.7 have to support older borg servers.
This problem will go away as soon as the server has been upgraded to 1.0.7+.
Remote: Borg 0.29.0: exception in RPC call:
Remote: Traceback (most recent call last):
Remote:   File "/usr/home/kibab/borgbackup-0.29.0/borg/remote.py", line 96, in serve
Remote:   File "/usr/home/kibab/borgbackup-0.29.0/borg/remote.py", line 121, in open
Remote:   File "/usr/home/kibab/borgbackup-0.29.0/borg/repository.py", line 63, in __init__
Remote:   File "/usr/home/kibab/borgbackup-0.29.0/borg/repository.py", line 139, in open
Remote: borg.repository.DoesNotExist: /test
Remote: Platform: FreeBSD ch-s014.rsync.net 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 rsync_13_1 amd64
Remote: Python: CPython 3.4.3
Remote: 
Repository ssh://***@***.rsync.net/./test does not exist.

ollyollyollyltd avatar Feb 18 '24 11:02 ollyollyollyltd