Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [Errno 9] Bad file descriptor #342

Open
dpizzle opened this issue Oct 5, 2020 · 2 comments
Open

OSError: [Errno 9] Bad file descriptor #342

dpizzle opened this issue Oct 5, 2020 · 2 comments
Labels
Milestone

Comments

@dpizzle
Copy link

dpizzle commented Oct 5, 2020

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
@mirceaulinic
Copy link
Member

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 mirceaulinic added this to the DISCUSSION milestone Oct 23, 2020
@cyb0
Copy link

cyb0 commented May 11, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants