jpgview
Posts: 14
Joined: Fri Feb 03, 2017 11:07 am

gpgconf: fatal error (exit status 1)

Sun Feb 16, 2020 10:24 am

Raspbian Version: February 2020 Release date: 2020-02-13
fresh install, running on raspberry pi 3B
uname -a: Linux raspberrypi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux

error in syslog:
Feb 16 10:27:39 raspberrypi systemd[2220]: gpgconf: running /usr/bin/gpg-agent failed (exitcode=2): General error
Feb 16 10:27:39 raspberrypi systemd[2220]: gpgconf: fatal error (exit status 1)

search the forum for gpgconf and duckduckgo for various combinations of the error message, unfortunately, no results...

The error doesn't appear to have a negative effect on using the system (using it for pihole), but I like to keep the syslog clean...

un99kn
Posts: 7
Joined: Sat Mar 21, 2020 6:19 pm

Re: gpgconf: fatal error (exit status 1)

Sun Mar 29, 2020 1:49 pm

Hi,
faced same issue, found solution after long time ....
Just do:

- cd /home
- sudo mkdir pihole
- sudo chown pihole:pihole pihole
- cd pihole
- sudo mkdir .gnupg
- sudo chown pihole:pihole .gnupg
- sudo chmod 700 .gnupg

.. and u r done, error removed from syslog.

BR,
Mike

un99kn
Posts: 7
Joined: Sat Mar 21, 2020 6:19 pm

Re: gpgconf: fatal error (exit status 1)

Mon Apr 06, 2020 7:39 am

in additon

create in /var/www

drwxr-xr-x 13 root root 4096 Mar 28 18:09 ..
drwxr-xr-x 4 root root 4096 Apr 1 09:40 .
drwx------ 3 www-data www-data 4096 Apr 2 06:25 .gnupg
drwxrwxr-x 4 www-data www-data 4096 Apr 3 17:11 html


gnupg creates:

drwxr-xr-x 4 root root 4096 Apr 1 09:40 ..
drwx------ 2 www-data www-data 4096 Apr 2 06:25 private-keys-v1.d
drwx------ 3 www-data www-data 4096 Apr 2 06:25 .

Return to “Raspberry Pi OS”