From a399c468c6dd69d4f1d76934de9cf894f3c85ded Mon Sep 17 00:00:00 2001 From: pelle@ba198ff1d4d5d5f4a0940522e68695a99a1ce0ee Date: Sun, 4 Oct 2015 08:58:01 +0000 Subject: add debug mode output --- doc/forum/propellor_--add-key_fails.mdwn | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/doc/forum/propellor_--add-key_fails.mdwn b/doc/forum/propellor_--add-key_fails.mdwn index 8ed4a871..8b42cc5a 100644 --- a/doc/forum/propellor_--add-key_fails.mdwn +++ b/doc/forum/propellor_--add-key_fails.mdwn @@ -25,3 +25,40 @@ 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) " 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. -- cgit v1.2.3