napalm-logs icon indicating copy to clipboard operation
napalm-logs copied to clipboard

OSError: [Errno 9] Bad file descriptor

Open dpizzle opened this issue 5 years ago • 2 comments

Hi, I am seeing this error in /var/log/napalm/logs, after the napalm-logs process is started. Is this is known error?

/etc/napalm # napalm-logs --version
napalm-logs 0.9.0
2020-10-05 01:00:03,548,548 [napalm_logs.listener.udp][ERROR   ] Received listener socket error: [Errno 9] Bad file descriptor
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/napalm_logs/listener/udp.py", line 69, in receive
    msg, addr = self.skt.recvfrom(self.buffer_size)
OSError: [Errno 9] Bad file descriptor

dpizzle avatar Oct 05 '20 09:10 dpizzle

Could you try the develop branch to check if the error persists? There were some recent changes in the UDP listener over the last months, which haven't been released yet, so that may help.

mirceaulinic avatar Oct 23 '20 13:10 mirceaulinic

Hello, error is still happening and logs are not being published at all after that.

# napalm-logs --version
napalm-logs 0.10.0
2021-05-11 04:18:21,909,909 [napalm_logs.listener.udp][ERROR   ] Received listener socket error: [Errno 9] Bad file descriptor
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/napalm_logs/listener/udp.py", line 73, in receive
    msg, addr = self.skt.recvfrom(self.buffer_size)
OSError: [Errno 9] Bad file descriptor

Any suggestions?

cyb0 avatar May 11 '21 08:05 cyb0