---
title: "Service check for system updates fails due to a GPG signature error"
description: "Service checks for system updates fail due to a GPG signature error caused by missing keys for the monitor user. Running dnf check-update as the monitor user or using asmonitor with root resolves the issue."
url: "https://docs.itrsgroup.com/docs/faq/op5/5080942747037-op5-monitor-service-check-for-system-updates-fails-due-to-a-gpg-signature-error/index.html"
---
## Related to

After installing or upgrading to OP5 Monitor 9, running the service to check for system updates returns a GPG signature error.

### Problem

You have a service that checks for system updates and it is returning an error:

![Screenshot](https://docscdn.itrsgroup.com/faq/images/op5/5080942747037-inline-1-mceclip0.png)

Running "Test this check" returns an error as well:

```
_USER1_/check_yum_update
Result code: 3
ERROR OUTPUT:
Importing GPG key 0xF6E3ADE7:
 Userid     : "op5 AB (op5 AB rpm signing) <support@op5.com>"
 Fingerprint: 5063 C039 1143 B66E C653 D467 2F24 77F3 F6E3 ADE7
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-op5
Error: Failed to download metadata for repo 'op5-monitor-9-updates': repomd.xml GPG signature verification error: Bad GPG signature
====================
STANDARD OUTPUT:
Unknown problem
```

However, running the check when logged in as root user on the command line works without problem:

```
[root@mon9 ~]# /opt/plugins/check_yum_update
There are 38 updates available for your system |Available packages: Last, NetworkManager.x86_64, ...
```

### Possible Cause(s)

This is caused by the *monitor* user not being able to acquire the GPG keys. The *root* user has the keys since it has previously been able to run dnf-related commands such as **dnf check-update**, while the *monitor* user has not.

### Possible Solution(s)

Either login as the *monitor* user and run a **dnf check-update** to obtain the GPG keys or as a root or sudo-enabled user, run **asmonitor dnf check-update.**

Functionality can be verified after by running the plugin on the command line through **asmonitor**:

```
## asmonitor dnf check-update

## asmonitor /opt/plugins/check_yum_update
No read/execute access in current directory, moving to /
Your system is fully updated
```

NOTE: This has been addressed in OP5 Monitor version 9.1 and above. Refer to the [release notes](https://docs.itrsgroup.com/docs/all/release-notes/op5-monitor/release-notes.htm#OP5_Monitor_9.1) for more information.

## Related Articles

- [Installing OP5 Monitor 9](https://docs.itrsgroup.com/docs/op5-monitor/current/topics/install/install-monitor.html#Install_OP5_Monitor)
- [Upgrading to OP5 Monitor 9](https://docs.itrsgroup.com/docs/op5-monitor/current/topics/install/upgrade.html)
- [Plugin Reference - check\_yum\_update](https://docs.itrsgroup.com/docs/op5-monitor/current/topics/plugins/plugin-reference.html#check_yum_update)


