summaryrefslogtreecommitdiff
path: root/doc/forum/propellor_--add-key_fails.mdwn
blob: 8b42cc5a93e76c9bf4343da142810fb0baa2fe0a (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
Hi,

When following the instructions on the web site, I get the following error in step 4:

```
olpe4718@admin:~$ propellor --add-key CD9BFD10
Building propellor-2.8.0...
Preprocessing library propellor-2.8.0...
In-place registering propellor-2.8.0...
Preprocessing executable 'propellor' for propellor-2.8.0...
Preprocessing executable 'propellor-config' for propellor-2.8.0...
Propellor build ... done


gpg: privdata/keyring.gpg: nyckelring skapad
gpg: nyckel CD9BFD10: publika nyckeln "Per Olofsson (DSV) <pelle@dsv.su.se>" importerades
gpg: Totalt antal behandlade enheter: 1
gpg:                     importerade: 1  (RSA: 1)
adding key to propellor's keyring ... done
staging propellor's keyring ... done
updating encryption of any privdata ... done
configuring git commit signing to use key ... done
error: pathspec 'privdata/privdata.gpg' did not match any file(s) known to git.
committing changes ... failed
```

Simply running `git commit -S` afterwards seems to work though.

Debug mode output:

```
olpe4718@admin:~$ PROPELLOR_DEBUG=1 propellor --add-key CD9BFD10                      
Building propellor-2.8.0...
Preprocessing library propellor-2.8.0...
In-place registering propellor-2.8.0...
Preprocessing executable 'propellor' for propellor-2.8.0...
Preprocessing executable 'propellor-config' for propellor-2.8.0...
Propellor build ... done


[2015-10-04 10:55:50 CEST] command line:  AddKey "CD9BFD10"
[2015-10-04 10:55:50 CEST] call: sh ["-c","gpg --export CD9BFD10 | gpg --options /dev/null --no-default-keyring --keyring privdata/keyring.gpg --import"]
gpg: privdata/keyring.gpg: nyckelring skapad
gpg: nyckel CD9BFD10: publika nyckeln "Per Olofsson (DSV) <pelle@dsv.su.se>" importerades
gpg: Totalt antal behandlade enheter: 1
gpg:                     importerade: 1  (RSA: 1)
[2015-10-04 10:55:50 CEST] process done ExitSuccess
adding key to propellor's keyring ... done
[2015-10-04 10:55:50 CEST] call: git ["add","privdata/keyring.gpg"]
[2015-10-04 10:55:50 CEST] process done ExitSuccess
staging propellor's keyring ... done
updating encryption of any privdata ... done
[2015-10-04 10:55:50 CEST] read: gpg ["--list-secret-keys","CD9BFD10"]
[2015-10-04 10:55:50 CEST] process done ExitSuccess
[2015-10-04 10:55:50 CEST] call: git ["config","user.signingkey","CD9BFD10"]
[2015-10-04 10:55:50 CEST] process done ExitSuccess
configuring git commit signing to use key ... done
[2015-10-04 10:55:50 CEST] call: git ["commit","privdata/keyring.gpg","privdata/privdata.gpg","-m","propellor add-key","--gpg-sign"]
error: pathspec 'privdata/privdata.gpg' did not match any file(s) known to git.
[2015-10-04 10:55:50 CEST] process done ExitFailure 1
committing changes ... failed
```

Seems that it tries to check in privdata.gpg which does not exist yet.