Repository navigation
Open
Description
Checklist
- I have included the output of
celery -A proj reportin the issue.
(if you are not able to do this, then at least specify the Celery
version affected).
software -> celery:4.0.2 (latentcall) kombu:4.0.2 py:3.4.3
billiard:3.5.0.2 py-amqp:2.1.4
platform -> system:Linux arch:64bit, ELF imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:disabled
- I have verified that the issue exists against the
masterbranch of Celery.
Steps to reproduce
Upgrade to Celery 4.0.2.
Expected behavior
No error.
Actual behavior
Getting this error from my workers:
[2017-01-19 04:07:57,411: CRITICAL/MainProcess] Couldn't ack 461, reason:BrokenPipeError(32, 'Broken pipe')
Traceback (most recent call last):
File "/opt/app/current/venv/lib/python3.4/site-packages/kombu/message.py", line 130, in ack_log_error
self.ack(multiple=multiple)
File "/opt/app/current/venv/lib/python3.4/site-packages/kombu/message.py", line 125, in ack
self.channel.basic_ack(self.delivery_tag, multiple=multiple)
File "/opt/app/current/venv/lib/python3.4/site-packages/amqp/channel.py", line 1408, in basic_ack
spec.Basic.Ack, argsig, (delivery_tag, multiple),
File "/opt/app/current/venv/lib/python3.4/site-packages/amqp/abstract_channel.py", line 64, in send_method
conn.frame_writer(1, self.channel_id, sig, args, content)
File "/opt/app/current/venv/lib/python3.4/site-packages/amqp/method_framing.py", line 174, in write_frame
write(view[:offset])
File "/opt/app/current/venv/lib/python3.4/site-packages/amqp/transport.py", line 269, in write
self._write(s)
BrokenPipeError: [Errno 32] Broken pipe
This causes the worker to reset it's connection to RabbitMQ every few seconds, and sometimes leads to hitting the max connection limit allowed on the RabbitMQ server.
Reacted by Tim Bachofen, Marco Glauser, Jeppe Vesterbæk, Leonard Buskin, chet, Vihan, ShiHan Wan, nixawk, Elton DSouza, BR and 37 more
Activity
alanhamlett commentedon Jan 19, 2017
alanhamlett commentedon Jan 25, 2017
chrisseto commentedon Feb 14, 2017
I'm also seeing this issue, albeit on a slightly older version of celery.
donhoff commentedon Aug 10, 2017
+1 seeing on 4.1.0
leobuskin commentedon Aug 22, 2017
+1 seeing on celery (4.1.0), gevent
elephanter commentedon Aug 25, 2017
+1 celery 4.1.0
gustavorps commentedon Oct 11, 2017
+1
Happens when a revoke task with
terminateargument:app.control.revoke(t.id, terminate=True)Same when terminate the task from Flower.
fanhaipeng0403 commentedon Nov 8, 2017
+1 celery 4.0.0
auvipy commentedon Dec 20, 2017
see the last explanation of @mihajenko #3377
nixawk commentedon Dec 22, 2017
+1 celery (4.0.2)
alanhamlett commentedon Dec 22, 2017
129 remaining items
bdoublet91 commentedon Jun 20, 2025
Hi,
we are using celery in docker in production. We are trying to solve this error and I'm not sure to full understand this comment #3773 (comment), we need to put an Haproxy in front of rabbitmq to keep the session alive ?
thanks