Repository navigation
Closed
Description
If you keep the process in idle, it will show this error:
The RabbitMQ(RabbitMQ 3.6.6, Erlang 19.0.7) show this error:
rabbitmq_1 | =ERROR REPORT==== 3-Dec-2016::19:28:52 ===
rabbitmq_1 | closing AMQP connection <0.2500.1> (172.19.0.4:42882 -> 172.19.0.3:5672):
rabbitmq_1 | missed heartbeats from client, timeout: 60s
And the celery Traceback:
celery_1 | [2016-12-03 17:28:52,147: WARNING/MainProcess] Traceback (most recent call last):
celery_1 | [2016-12-03 17:28:52,150: WARNING/MainProcess] File "/usr/local/lib/python3.5/site-packages/gevent/hub.py", line 846, in switch
celery_1 | switch(value)
celery_1 | [2016-12-03 17:28:52,153: WARNING/MainProcess] File "/usr/local/lib/python3.5/site-packages/celery/worker/pidbox.py", line 116, in loop
celery_1 | connection.drain_events(timeout=1.0)
celery_1 | [2016-12-03 17:28:52,154: WARNING/MainProcess] File "/usr/local/lib/python3.5/site-packages/kombu/connection.py", line 301, in drain_events
celery_1 | return self.transport.drain_events(self.connection, **kwargs)
celery_1 | [2016-12-03 17:28:52,156: WARNING/MainProcess] File "/usr/local/lib/python3.5/site-packages/kombu/transport/pyamqp.py", line 103, in drain_events
celery_1 | return connection.drain_events(**kwargs)
celery_1 | [2016-12-03 17:28:52,158: WARNING/MainProcess] File "/usr/local/lib/python3.5/site-packages/amqp/connection.py", line 464, in drain_events
celery_1 | return self.blocking_read(timeout)
celery_1 | [2016-12-03 17:28:52,158: WARNING/MainProcess] File "/usr/local/lib/python3.5/site-packages/amqp/connection.py", line 468, in blocking_read
celery_1 | frame = self.transport.read_frame()
celery_1 | [2016-12-03 17:28:52,159: WARNING/MainProcess] File "/usr/local/lib/python3.5/site-packages/amqp/transport.py", line 223, in read_frame
celery_1 | frame_header = read(7, True)
celery_1 | [2016-12-03 17:28:52,161: WARNING/MainProcess] File "/usr/local/lib/python3.5/site-packages/amqp/transport.py", line 363, in _read
celery_1 | s = recv(n - len(rbuf))
celery_1 | [2016-12-03 17:28:52,162: WARNING/MainProcess] File "/usr/local/lib/python3.5/site-packages/gevent/_socket3.py", line 313, in recv
celery_1 | return _socket.socket.recv(self._sock, *args)
celery_1 | [2016-12-03 17:28:52,162: WARNING/MainProcess] ConnectionResetError: [Errno 104] Connection reset by peer
celery_1 | [2016-12-03 17:28:52,163: WARNING/MainProcess] <built-in method switch of greenlet.greenlet object at 0x7efedbf853d8> failed with ConnectionResetError
More info about the environment:
root@5631e10b158e:/usr/src/app# celery -A notification report
software -> celery:4.0.0 (latentcall) kombu:4.0.0 py:3.5.2
billiard:3.5.0.2 py-amqp:2.1.1
platform -> system:Linux arch:64bit, ELF imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:disabled
include: ['notification.tasks']
broker_url: 'amqp://guest:********@rabbitmq:5672//'
task_default_queue: 'notification'
root@5631e10b158e:/usr/src/app# celery -A notification report
amqp (2.1.1)
billiard (3.5.0.2)
celery (4.0.0)
click (6.6)
Flask (0.11.1)
gevent (1.1.2)
greenlet (0.4.10)
gunicorn (19.6.0)
itsdangerous (0.24)
Jinja2 (2.8)
kombu (4.0.0)
MarkupSafe (0.23)
notification (1.0, /usr/src/app)
pip (9.0.1)
python-decouple (3.0)
pytz (2016.7)
requests (2.12.3)
setuptools (30.1.0)
toolz (0.8.0)
vine (1.1.3)
Werkzeug (0.11.11)
The celery was executed with the command: celery -A notification worker -P gevent -c 8 -l info
Metadata
Metadata
Assignees
Labels
No labels
Activity
emilhdiaz commentedon Dec 6, 2016
I'm also experiencing the same issue with the gevent pool. Here is my report output:
and the exception stack trace:
robsonpeixoto commentedon Dec 7, 2016
@ask Are there plans of a near release with bug fixes?
amirrustam commentedon Dec 9, 2016
I disabled heartbeats to temporarily "deal" with this issue. Workers don't seem to sending heart beats to RabbitMQ.
failedguidedog commentedon Mar 23, 2017
@ask Was this problem fixed in 4.0.2?
I'm asking because we're running a similar environment as the OP, with eventlet pools, and we're seeing a lot of this errors: (more details in the sentry log:
celery_control_command_error_connectionreseterror.json.txt)
We've upgraded to 4.0.2 last weekend and this is causing a lot of sleepless nights :( Please help.
Worker: Fixes heartbeats for gevent/eventlet. Closes celery#3649
Fix "ConnectionResetError: [Errno 54] Connection reset by peer"
arvindnrbt commentedon Aug 15, 2018
Celery 4.2.1 I'm still facing this issue.
RabbitMQ log
Celery -A proj inspect activeAfter 5 min,
RabbitMQ
celery -A proj inspect activeI'm running celery inside docker container and I'm worried about celery performing consistently with no downtime as we had
Connection reset by peererror in our tests often. Please throw some light on this.