summaryrefslogtreecommitdiff
path: root/doc/bugs/annex.gnupg-options_not_used_by_assistant.mdwn
blob: 67ebb88d6db5453b993330562c3d23259a61f934 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
### Please describe the problem.

I am using annex with a gcrypt encrypted repository but I am not able to sync content to the remote share via Webapp. If I sync via command line everything is working as expected but via Webapp I receive several error messages complaining about tty not available.

As I workaround I changed two things:

1. /usr/local/bin/git-remote-gcrypt: As $GPG_AGENT_INFO was not set I needed to include "--no-tty" on line 377
2. Add a line in ~/.gnupg/gpg.conf with option "no-tty"

As this breaks gpg2 for use on command line I wanted to provide the --no-tty via option **annex.gnupg-options** as mentioned in the manual. Not sure what I am doing wrong but the Webapp does not pick up these options.

```
[annex]
	gnupg-options = --no-tty
```


### What steps will reproduce the problem?

Create repository via

```sh
git annex initremote hidrive type=gcrypt gitrepo=rsync.hidrive.strato.com:/users/xxxxxx/hidrive.git chunk=5MiB keyid=XXXXXXXX
```
Launch Webapp

```sh
git annex webapp
```

Copy files to local annex directory

### What version of git-annex are you using? On what operating system?

OSX 10.11.4

gpg (GnuPG) 2.0.30
libgcrypt 1.7.0
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA, RSA, ELG, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2


git-annex version: 6.20160418
build flags: Assistant Webapp Pairing Testsuite WebDAV FsEvents XMPP ConcurrentOutput TorrentParser MagicMime Feeds Quvi
key/value backends: SHA256E SHA256 SHA512E SHA512 SHA224E SHA224 SHA384E SHA384 SHA3_256E SHA3_256 SHA3_512E SHA3_512 SHA3_224E SHA3_224 SHA3_384E SHA3_384 SKEIN256E SKEIN256 SKEIN512E SKEIN512 SHA1E SHA1 MD5E MD5 WORM URL
remote types: git gcrypt bup directory rsync web bittorrent webdav tahoe glacier ddar hook external
local repository version: 6
supported repository versions: 5 6
upgrade supported from repository versions: 0 1 2 4 5


### Please provide any additional information below.

[[!format sh """

[2016-05-05 15:04:31.059236] Pusher: Syncing with hidrive 
(recording state in git...)
gcrypt: Development version -- Repository format MAY CHANGE
gpg: cannot open `/dev/tty': Device not configured

  user error (gpg2 ["--quiet","--trust-model","always","--decrypt"] exited 2)
gpg: cannot open `/dev/tty': Device not configured

  user error (gpg2 ["--quiet","--trust-model","always","--decrypt"] exited 2)

"""]]

### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)


> added annex.gnupg-decrypt-options; done --[[Joey]]

>> Reopening, see comment. --[[Joey]]

>>> Fixed again, [[done]] --[[Joey]]