File: git-remote-gcrypt_and_rsyncd.mdwn

package info (click to toggle)
git-annex 10.20250721-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 74,484 kB
  • sloc: haskell: 90,982; javascript: 9,103; sh: 1,469; makefile: 213; perl: 137; ansic: 44
file content (32 lines) | stat: -rw-r--r-- 1,503 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
In an attempt to simplify my setup, I have been trying to setup an encrypted repository on a `rsyncd`-based server via [`git-remote-gcrypt`](https://git-annex.branchable.com/tips/fully_encrypted_git_repositories_with_gcrypt/), which would house the file history and the annexed files themselves. I cannot provide an SSH connection to the server, so the `rsyncd` method seemed appealing.

Using the rsync format url with "::" to signal the rsyncd method, the connection seems successful, but the initialization does not complete. 

```
git annex initremote gcrypt-rsyncd type=gcrypt gitrepo=rsync://***::a/test keyid=*** encryption=hybrid

initremote gcrypt-rsyncd (encryption setup) (to gpg keys: ***) gcrypt
 Decrypting manifest
gpg: Signature made Wed Nov 22 22:23:16 2023 CET
gpg:                using EDDSA key ***
gpg: Good signature from "archive-990" [ultimate]
gcrypt: Remote ID is :id:ya5ZivzWNEOUtVg2R0L9
From gcrypt::rsync://***::a/test
 * [new branch]      git-annex  -> gcrypt-rsyncd/git-annex
gcrypt: Decrypting manifest
gpg: Signature made Wed Nov 22 22:23:16 2023 CET
gpg:                using EDDSA key ***
gpg: Good signature from "archive-990" [ultimate]
Everything up-to-date

git-annex: git: createProcess: chdir: invalid argument (Bad file descriptor)
failed
initremote: 1 failed
```

Logs from the daemon show the following error:
```
rsync to a/test/annex/objects from ***
```

I don't know whether this error is imputable to `git-annex`, or `git-remote-gcrypt`, or my settings.