#2717 fedmsg errors
Closed: Fixed 6 years ago Opened 6 years ago by wattersmt.

ImportError: No module named fedmsg

This error is repeated continuously in the apache error logs when the python2-fedmsg-core package is not installed. After installing the package a different error is then shown as follows.

[pid 24143] /usr/lib/python2.7/site-packages/fedmsg/core.py:159: UserWarning: fedmsg is not configured to send any zmq messages for name 'host.example.com'

I believe it would be helpful to add a configuration option to make fedmsg optional.


I'm also receiving errors from pagure when a merge is done.

Process Details
---------------
host:     git.example.com
PID:      16038
name:     celery
command:  /usr/bin/python /usr/bin/celery worker -A pagure.lib.tasks --loglevel=info

Message type:       ERROR
Location:           /usr/lib/python2.7/site-packages/pagure/lib/notify.py:53
Module:             notify
Function:           fedmsg_publish
Time:               2017-10-26 16:38:05,229


URL:    * Worker *
args:   
form:   -
user:   -


Message:
--------

Error sending fedmsg


Callstack that lead to the logging statement
--------------------------------------------

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pagure/lib/notify.py", line 51, in fedmsg_publish
    fedmsg.publish(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/fedmsg/__init__.py", line 81, in _wrapper
    return func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/fedmsg/__init__.py", line 93, in publish
    return __local.__context.publish(topic, msg, **kw)
  File "/usr/lib/python2.7/site-packages/fedmsg/core.py", line 330, in publish
    self.publisher.send_multipart(
AttributeError: 'FedMsgContext' object has no attribute 'publisher'

While these are safe to ignore I agree that not having them would be nice as well.

Let's had a configuration key for this :)

Metadata Update from @pingou:
- Issue tagged with: RFE, easyfix

6 years ago

i don't think it's easyfix

Metadata Update from @pingou:
- Issue assigned to pingou

6 years ago

Login to comment on this ticket.

Metadata