System Update results in error due to missing GoAccess Key

Wednesday 23 September 2020  19:21:56 +0000 (0:00:01.041)       0:00:13.037 *** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: meza-ansible
<localhost> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-cniuoqaphtmjltkugovvzvqghwyktxsy; /usr/bin/python'"'"' && sleep 0'
The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
  File "/tmp/ansible_apt_payload_OfoRso/__main__.py", line 1026, in main
    cache.update()
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 485, in update
    raise FetchFailedException()

fatal: [localhost]: FAILED! => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "allow_unauthenticated": false, 
            "autoclean": false, 
root@scg:/opt/meza# sudo apt update
Get:1 http://deb.goaccess.io stretch InRelease [2,337 B]
Hit:2 http://security.debian.org stretch/updates InRelease                       
Ign:3 http://mirrors.digitalocean.com/debian stretch InRelease                   
Hit:4 http://mirrors.digitalocean.com/debian stretch-updates InRelease
Hit:5 http://mirrors.digitalocean.com/debian stretch Release
Hit:6 https://repos.sonar.digitalocean.com/apt main InRelease
Hit:7 https://packages.sury.org/php stretch InRelease
Ign:8 https://artifacts.elastic.co/packages/5.x/apt stable InRelease
Hit:9 https://artifacts.elastic.co/packages/6.x/apt stable InRelease
Hit:10 https://artifacts.elastic.co/packages/5.x/apt stable Release
Err:1 http://deb.goaccess.io stretch InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 97BD1A0133449C3D

Work Around:

wget -O - https://deb.goaccess.io/gnugpg.key | sudo apt-key --keyring /etc/apt/trusted.gpg.d/goaccess.gpg add -

--2020-09-23 19:24:32--  https://deb.goaccess.io/gnugpg.key
Resolving deb.goaccess.io (deb.goaccess.io)... 67.205.130.138
Connecting to deb.goaccess.io (deb.goaccess.io)|67.205.130.138|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2468 (2.4K) [application/octet-stream]
Saving to: ‘STDOUT’

-                                               100%[=====================================================================================================>]   2.41K  --.-KB/s    in 0s      

2020-09-23 19:24:32 (237 MB/s) - written to stdout [2468/2468]

OK

The GoAccess role installs the key, however a new key has been released [1].

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.