Skip to content

Instantly share code, notes, and snippets.

@stavxyz
Last active December 29, 2015 00:29
Show Gist options
  • Save stavxyz/7586639 to your computer and use it in GitHub Desktop.
Save stavxyz/7586639 to your computer and use it in GitHub Desktop.
Unrecoverable error: error(9, 'Bad file descriptor')
Traceback (most recent call last):
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/celery/worker/__init__.py", line 212, in start
    self.blueprint.start(self)
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/celery/bootsteps.py", line 123, in start
    step.start(parent)
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/celery/bootsteps.py", line 373, in start
    return self.obj.start()
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 271, in start
    blueprint.start(self)
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/celery/bootsteps.py", line 123, in start
    step.start(parent)
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 766, in start
    c.loop(*c.loop_args())
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/celery/worker/loops.py", line 99, in synloop
    connection.drain_events(timeout=2.0)
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/kombu/connection.py", line 280, in drain_events
    return self.transport.drain_events(self.connection, **kwargs)
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/kombu/transport/virtual/__init__.py", line 800, in drain_events
    item, channel = get(timeout=timeout)
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 294, in get
    self._register_LISTEN(channel)
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 249, in _register_LISTEN
    self._register(channel, channel.subclient, 'LISTEN')
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 223, in _register
    self._unregister(channel, client, type)
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 232, in _unregister
    self.poller.unregister(self._chan_to_sock[(channel, client, type)])
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/kombu/utils/eventio.py", line 205, in unregister
    fd = fileno(fd)
  File "/home/sstav/.virtualenvs/project/local/lib/python2.7/site-packages/kombu/utils/__init__.py", line 422, in fileno
    return f.fileno()
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
  File "/usr/lib/python2.7/socket.py", line 170, in _dummy
    raise error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment