Added a comment: Similar Borg sync issue
This commit is contained in:
parent
1b6c33a38e
commit
3f2957d0e4
1 changed files with 53 additions and 0 deletions
|
@ -0,0 +1,53 @@
|
|||
[[!comment format=mdwn
|
||||
username="Rick"
|
||||
avatar="http://cdn.libravatar.org/avatar/bbc227c89f7136fbb191127764e9d02c"
|
||||
subject="Similar Borg sync issue"
|
||||
date="2024-09-03T19:40:57Z"
|
||||
content="""
|
||||
I'm also getting `list borg failed` when I run `git annex sync borg`. In my case, syncing succeeds after creating the first borg archive but fails when the borg repo contains a second archive.
|
||||
|
||||
I'm running:
|
||||
|
||||
- git-annex 10.20240731
|
||||
- borg 1.4.0
|
||||
- NixOS 24.11.20240821.c374d94 (Vicuna)
|
||||
|
||||
To reproduce this problem:
|
||||
|
||||
```
|
||||
borg init --encryption=keyfile /path/to/borgrepo
|
||||
git annex initremote borg type=borg borgrepo=/path/to/borgrepo
|
||||
borg create /path/to/borgrepo::archive1 `pwd`
|
||||
git annex sync borg
|
||||
git annex add newfile
|
||||
borg create /path/to/borgrepo::archive2 `pwd`
|
||||
git annex sync borg
|
||||
```
|
||||
|
||||
From the debug output the first time running `git-annex sync`, the only ExitFailure line:
|
||||
|
||||
```
|
||||
[2024-08-28 19:13:31.056388087] (Utility.Process) process [79595] done ExitFailure 1
|
||||
ok
|
||||
````
|
||||
|
||||
And the first appearance of process 79595:
|
||||
|
||||
```
|
||||
[2024-08-28 19:13:31.011783181] (utility.process) process [79595] call: git [\"--git-dir=.git\",\"--work-tree=.\",\"--literal-pathspecs\",\"commit\",\"-a\",\"-m\",\"git-annex in user@nixos:~/sandbox/gr\"]
|
||||
```
|
||||
|
||||
Only once, after running the command a second time, I got the following additional lines:
|
||||
|
||||
```
|
||||
[2024-08-28 19:48:41.942245332] (Utility.Process) process [122585] read: borg [\"list\",\"--format\",\"{size}{NUL}{path}{NUL}{extra}{NUL}\",\"/home/user/sandbox/br::archive2\",\"\"]
|
||||
...
|
||||
borg list: error: argument PATH: Empty strings are not accepted as paths.
|
||||
[2024-08-28 19:48:42.296294751] (Utility.Process) process [122585] done ExitFailure 2
|
||||
```
|
||||
|
||||
I have set `LANG=C` and `git annex enableremote borg subdir=` as suggested in this thread to no avail.
|
||||
|
||||
Thanks in advance for your help! I have used and loved git-annex for years and am very thankful for the work Joey and others have put into it. I'm planning to buy a git-annex backpack soon.
|
||||
|
||||
"""]]
|
Loading…
Add table
Reference in a new issue