summaryrefslogtreecommitdiff
path: root/doc/bugs/GPG_issues_with_pubkey___40__Again__63____41__.mdwn
blob: bf7f4f3918f764c03f9ffd848c8551cebcd59891 (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
### Please describe the problem.
When I try to create a megaannex remote with pubkey encryption GPG complains about not finding the public key.

### What steps will reproduce the problem?
See below


### What version of git-annex are you using? On what operating system?
5.20140129 under OSX.


### Please provide any additional information below.

[[!format sh """
% USERNAME="<username>" PASSWORD='<password>' git annex -vd initremote mega type=external externaltype=mega encryption=pubkey keyid=X folder=Documents mac=HMACSHA512
[2014-02-06 11:39:14 CET] read: git ["--git-dir=/Users/dxtr/Documents/.git","--work-tree=/Users/dxtr/Documents","show-ref","git-annex"]
[2014-02-06 11:39:14 CET] read: git ["--git-dir=/Users/dxtr/Documents/.git","--work-tree=/Users/dxtr/Documents","show-ref","--hash","refs/heads/git-annex"]
[2014-02-06 11:39:14 CET] read: git ["--git-dir=/Users/dxtr/Documents/.git","--work-tree=/Users/dxtr/Documents","log","refs/heads/git-annex..62dc22cced06268fa5adcf54992eb1169c6ca1aa","--oneline","-n1"]
[2014-02-06 11:39:14 CET] chat: git ["--git-dir=/Users/dxtr/Documents/.git","--work-tree=/Users/dxtr/Documents","cat-file","--batch"]
initremote mega (encryption setup) [2014-02-06 11:39:14 CET] read: gpg ["--batch","--no-tty","--use-agent","--quiet","--trust-model","always","--with-colons","--list-public-keys","46726B9A"]
[2014-02-06 11:39:14 CET] read: gpg ["--batch","--no-tty","--use-agent","--quiet","--trust-model","always","--gen-random","--armor","2","256"]
[2014-02-06 11:39:14 CET] chat: gpg ["--batch","--no-tty","--use-agent","--quiet","--trust-model","always","--recipient","X","--encrypt","--no-encrypt-to","--no-default-recipient","--force-mdc","--no-textmode"]
(pubkey crypto with gpg key X) [2014-02-06 11:39:15 CET] chat: git-annex-remote-mega []
[2014-02-06 11:39:15 CET] git-annex-remote-mega --> VERSION 1
[2014-02-06 11:39:15 CET] git-annex-remote-mega <-- INITREMOTE
[2014-02-06 11:39:15 CET] git-annex-remote-mega --> GETCONFIG encryption
[2014-02-06 11:39:15 CET] git-annex-remote-mega <-- VALUE pubkey
[2014-02-06 11:39:15 CET] git-annex-remote-mega --> GETCONFIG folder
[2014-02-06 11:39:15 CET] git-annex-remote-mega <-- VALUE Documents
[2014-02-06 11:39:15 CET] git-annex-remote-mega --> SETCREDS mycreds <username> <password>
(gpg) [2014-02-06 11:39:15 CET] chat: gpg ["--batch","--no-tty","--use-agent","--quiet","--trust-model","always","--decrypt"]
[2014-02-06 11:39:15 CET] chat: gpg ["--batch","--no-tty","--use-agent","--quiet","--trust-model","always","--batch","--encrypt","--no-encrypt-to","--no-default-recipient","--force-mdc","--no-textmode"]
gpg: no valid addressees
gpg: [stdin]: encryption failed: no such user id

git-annex: user error (gpg ["--batch","--no-tty","--use-agent","--quiet","--trust-model","always","--batch","--encrypt","--no-encrypt-to","--no-default-recipient","--force-mdc","--no-textmode"] exited 2)
failed
git-annex: initremote: 1 failed


# End of transcript or log.
"""]]

> [[fixed|done]] --[[Joey]]