{"id":185,"date":"2020-05-11T15:26:00","date_gmt":"2020-05-11T13:26:00","guid":{"rendered":"https:\/\/camilomatajira.wordpress.com\/?p=185"},"modified":"2025-06-10T18:35:43","modified_gmt":"2025-06-10T18:35:43","slug":"celery-received-and-deleted-unknown-message-wrong-destination","status":"publish","type":"post","link":"https:\/\/camilo.matajira.com\/?p=185","title":{"rendered":"Celery &#8212; Received and deleted unknown message. Wrong destination?!?"},"content":{"rendered":"<p><strong>Root cause:<\/strong> in my case it was a discrepancy between the client (who pushes tasks) and the worker ( who received the tasks). In my case the client was an Ubuntu server with Python 3.8, while the client was Debian 9, with Python 3.5.<\/p>\n<p><strong>How to solve:<\/strong> standardize client and worker. I put my client to be also Debian 9 with Python 3.5.<\/p>\n<p><strong>Initial problem message:<\/strong><\/p>\n<p>worker1 | [2020-05-11 13:10:54,366: WARNING\/MainProcess] Received and deleted unknown message. Wrong destination?!?<br \/>\nworker1 |<br \/>\nworker1 | The full contents of the message body was: body: [[4, 4], {}, {&#8216;callbacks&#8217;: None, &#8216;chord&#8217;: None, &#8216;errbacks&#8217;: None, &#8216;chain&#8217;: None}] (81b)<br \/>\nworker1 | {content_type:&#8217;application\/json&#8217; content_encoding:&#8217;utf-8&#8242;<br \/>\nworker1 | delivery_info:{&#8216;routing_key&#8217;: &#8216;celery&#8217;, &#8216;redelivered&#8217;: False, &#8216;delivery_tag&#8217;: 1, &#8216;exchange&#8217;: &#8221;, &#8216;consumer_tag&#8217;: &#8216;None2&#8217;} headers={&#8216;expires&#8217;: None, &#8216;origin&#8217;: &#8216;gen101022@lenovo&#8217;, &#8216;retries&#8217;:<br \/>\n0, &#8216;shadow&#8217;: None, &#8216;root_id&#8217;: &#8216;3ad250be-952c-4dcc-ac3c-31245d83f216&#8217;, &#8216;eta&#8217;: None, &#8216;group&#8217;: None, &#8216;parent_id&#8217;: None, &#8216;task&#8217;: &#8216;tasks.add&#8217;, &#8216;lang&#8217;: &#8216;py&#8217;, &#8216;id&#8217;: &#8216;3ad250be-952c-4dcc-ac3c-31245d83f216&#8217;, &#8216;timeli<br \/>\nmit&#8217;: [None, None], &#8216;kwargsrepr&#8217;: &#8216;{}&#8217;, &#8216;argsrepr&#8217;: &#8216;(4, 4)&#8217;}}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Root cause: in my case it was a discrepancy between the client (who pushes tasks) and the worker ( who received the tasks). In my case the client was an Ubuntu server with Python 3.8, while the client was Debian 9, with Python 3.5. How to solve: standardize client and worker. I put my client&#8230;<\/p>\n","protected":false},"author":2,"featured_media":207,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[20,26,55],"class_list":["post-185","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debugging","tag-celery","tag-debugging","tag-python"],"_links":{"self":[{"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=185"}],"version-history":[{"count":1,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions"}],"predecessor-version":[{"id":534,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions\/534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/media\/207"}],"wp:attachment":[{"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}