Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
1.98k stars 571 forks source link

gpg: no valid OpenPGP data found. #10053

Closed DeepakAuti closed 1 month ago

DeepakAuti commented 2 months ago

Hi ,

I am installing Icinga 2 on my system details are as below : OS Version ; Ubantu 22.04

Error : gpg: no valid OpenPGP data found.

Kindly guide

DeepakAuti commented 2 months ago

wget -O - /home/monitoring/icinga | gpg --dearmor -o /usr/share/keyrings/icinga-archive-keyring.gpg

oxzi commented 2 months ago

I am not quite sure what exactly is wrong, but at least your wget command misses an URL.

wget -O - /home/monitoring/icinga | gpg --dearmor -o /usr/share/keyrings/icinga-archive-keyring.gpg

Your wget has a local path instead of an URL, as specified in the installation documentation.

DeepakAuti commented 2 months ago

Hi,

I have tried with URL but it is showing connection timed out error so i have downloaded Key externally and stored it in directory and added that path in command

yhabteab commented 1 month ago

Hi,

I have tried with URL but it is showing connection timed out error so i have downloaded Key externally and stored it in directory and added that path in command

The website might have been down on maintenance issues at the time you did that, and retrying it might work. However, if you have already downloaded the Icinga KEY manually, you do not need wget -O ..., you can simply do it as follows.

gpg --dearmor -o /usr/share/keyrings/icinga-archive-keyring.gpg /PATH/TO/THE/DOWNLOADED/ICINGA.KEY
oxzi commented 1 month ago

For the record, this wget command should not work, as it expects some URL. I just tested a file:// URL, but this wasn't supported by my wget version. Thus, just use cat or pipe it into the other command's stdin.