Why are the errors “gofer.messaging.adapter.connect” repeatedly logged in /var/log/messages On RHEL
Issue
goferd
errors are reported in /var/log/messages:Sep 29 03:19:22 abcxyz goferd: [ERROR][worker-0] gofer.messaging.adapter.connect:33 - connect: proton+amqps://subscription.rhsm.redhat.com:5647, failed: Connection amqps://subscription.rhsm.redhat.com:5647 disconnected: Condition('proton:io', 'recv: Connection refused') Sep 29 03:19:22 abcxyz goferd: [INFO][worker-0] gofer.messaging.adapter.connect:35 - retry in 106 seconds Sep 29 03:20:01 abcxyz systemd: Started Session 131 of user root. Sep 29 03:21:09 abcxyz goferd: [INFO][worker-0] gofer.messaging.adapter.connect:28 - connecting: proton+amqps://subscription.rhsm.redhat.com:5647 Sep 29 03:21:09 abcxyz goferd: [INFO][worker-0] gofer.messaging.adapter.proton.connection:87 - open: URL: amqps://subscription.rhsm.redhat.com:5647|SSL: ca: /etc/rhsm/ca/redhat-uep.pem|key: None|certificate: /etc/pki/consumer/bundle.pem|host-validation: None
Resolution
- If the system is not using satellite then errors can be fixed using below workaround:
- Edit the plugin and disable it to avoid getting the error messages:
# vi /etc/gofer/plugins/katello.conf
[main]
enabled=0 <<===
latency=1
- Once this is done, restart the
goferd
service then stop and disable it.
# systemctl stop goferd
# systemctl disable goferd
- Check the status of the service, the errors should not be logging now.