You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/moksha/hub/hub.py", line 455, in __init_producers
producer_obj = producer_class(self)
File "/usr/lib/python3.7/site-packages/moksha/hub/monitoring.py", line 47, in __init__
self.socket.bind(endpoint)
File "zmq/backend/cython/socket.pyx", line 547, in zmq.backend.cython.socket.Socket.bind
File "zmq/backend/cython/checkrc.pxd", line 25, in zmq.backend.cython.checkrc._check_rc
zmq.error.ZMQError: Permission denied
It turned out that it was unable to create /var/run/fedmsg/monitoring-fedmsg-hub.socket, but it would have made debugging easier for me if it had told me that along with the ZMQError.
Could we make it so that the error includes info about what it was getting permission denied on? Something like this would have been helpful:
zmq.error.ZMQError: Permission denied: Unable to bind to /var/run/fedmsg/monitoring-fedmsg-hub.socket
Thanks!
The text was updated successfully, but these errors were encountered:
That would indeed be great! It might be difficult, though, because we don't have path information in the underlying error. All we have is that it was EPERM.
To do this, I think we'd need to special-case error handing in bind/connect and re-raise a new error:
Greetings!
I recently received this traceback:
It turned out that it was unable to create
/var/run/fedmsg/monitoring-fedmsg-hub.socket
, but it would have made debugging easier for me if it had told me that along with theZMQError
.Could we make it so that the error includes info about what it was getting permission denied on? Something like this would have been helpful:
Thanks!
The text was updated successfully, but these errors were encountered: