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

Celery in Docker won't start #3364

Closed
bykof opened this issue Nov 30, 2018 · 0 comments · Fixed by #3374
Closed

Celery in Docker won't start #3364

bykof opened this issue Nov 30, 2018 · 0 comments · Fixed by #3374

Comments

@bykof
Copy link
Contributor

bykof commented Nov 30, 2018

What I'm trying to achieve

Hi guys,
I want to develop saleor with docker-compose

Steps to reproduce the problem

  1. I pulled the project via: git clone https://github.com/mirumee/saleor.git.
  2. Then I run docker-compose up.
  3. Error shows up

What I expected to happen

That it should work? :D

Stacktrace

celery_1  |  -------------- celery@1c13f3acc574 v4.2.1 (windowlicker)
celery_1  | ---- **** -----
celery_1  | --- * ***  * -- Linux-4.9.125-linuxkit-x86_64-with-debian-9.6 2018-11-30 07:28:26
celery_1  | -- * - **** ---
celery_1  | - ** ---------- [config]
celery_1  | - ** ---------- .> app:         saleor:0x7f40d790b438
celery_1  | - ** ---------- .> transport:   redis://redis:6379/1
celery_1  | - ** ---------- .> results:
celery_1  | - *** --- * --- .> concurrency: 4 (prefork)
celery_1  | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
celery_1  | --- ***** -----
celery_1  |  -------------- [queues]
celery_1  |                 .> celery           exchange=celery(direct) key=celery
celery_1  |
celery_1  |
celery_1  | [tasks]
celery_1  |   . saleor.account.emails.send_account_delete_confirmation_email
celery_1  |   . saleor.account.emails.send_password_reset_email
celery_1  |   . saleor.core.analytics.ga_report
celery_1  |   . saleor.dashboard.emails.send_promote_customer_to_staff_email
celery_1  |   . saleor.dashboard.emails.send_set_password_email
celery_1  |   . saleor.order.emails.send_fulfillment_confirmation
celery_1  |   . saleor.order.emails.send_fulfillment_update
celery_1  |   . saleor.order.emails.send_order_confirmation
celery_1  |   . saleor.order.emails.send_payment_confirmation
celery_1  |   . saleor.product.tasks.update_variants_names
celery_1  |   . saleor.product.thumbnails.create_category_background_image_thumbnails
celery_1  |   . saleor.product.thumbnails.create_collection_background_image_thumbnails
celery_1  |   . saleor.product.thumbnails.create_product_thumbnails
celery_1  |
celery_1  | [2018-11-30 07:28:27,403: INFO/MainProcess] Connected to redis://redis:6379/1
celery_1  | [2018-11-30 07:28:27,412: INFO/MainProcess] mingle: searching for neighbors
celery_1  | [2018-11-30 07:28:28,434: INFO/MainProcess] mingle: all alone
celery_1  | [2018-11-30 07:28:28,453: WARNING/MainProcess] /usr/local/lib/python3.6/site-packages/celery/fixups/django.py:200: UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in production environments!
celery_1  |   warnings.warn('Using settings.DEBUG leads to a memory leak, never '
celery_1  | [2018-11-30 07:28:28,453: INFO/MainProcess] celery@1c13f3acc574 ready.
celery_1  | [2018-11-30 07:28:28,606: CRITICAL/MainProcess] Unrecoverable error: AttributeError("'float' object has no attribute 'items'",)
celery_1  | Traceback (most recent call last):
celery_1  |   File "/usr/local/lib/python3.6/site-packages/celery/worker/worker.py", line 205, in start
celery_1  |     self.blueprint.start(self)
celery_1  |   File "/usr/local/lib/python3.6/site-packages/celery/bootsteps.py", line 119, in start
celery_1  |     step.start(parent)
celery_1  |   File "/usr/local/lib/python3.6/site-packages/celery/bootsteps.py", line 369, in start
celery_1  |     return self.obj.start()
celery_1  |   File "/usr/local/lib/python3.6/site-packages/celery/worker/consumer/consumer.py", line 317, in start
celery_1  |     blueprint.start(self)
celery_1  |   File "/usr/local/lib/python3.6/site-packages/celery/bootsteps.py", line 119, in start
celery_1  |     step.start(parent)
celery_1  |   File "/usr/local/lib/python3.6/site-packages/celery/worker/consumer/consumer.py", line 593, in start
celery_1  |     c.loop(*c.loop_args())
celery_1  |   File "/usr/local/lib/python3.6/site-packages/celery/worker/loops.py", line 91, in asynloop
celery_1  |     next(loop)
celery_1  |   File "/usr/local/lib/python3.6/site-packages/kombu/asynchronous/hub.py", line 354, in create_loop
celery_1  |     cb(*cbargs)
celery_1  |   File "/usr/local/lib/python3.6/site-packages/kombu/transport/redis.py", line 1040, in on_readable
celery_1  |     self.cycle.on_readable(fileno)
celery_1  |   File "/usr/local/lib/python3.6/site-packages/kombu/transport/redis.py", line 337, in on_readable
celery_1  |     chan.handlers[type]()
celery_1  |   File "/usr/local/lib/python3.6/site-packages/kombu/transport/redis.py", line 724, in _brpop_read
celery_1  |     self.connection._deliver(loads(bytes_to_str(item)), dest)
celery_1  |   File "/usr/local/lib/python3.6/site-packages/kombu/transport/virtual/base.py", line 983, in _deliver
celery_1  |     callback(message)
celery_1  |   File "/usr/local/lib/python3.6/site-packages/kombu/transport/virtual/base.py", line 632, in _callback
celery_1  |     self.qos.append(message, message.delivery_tag)
celery_1  |   File "/usr/local/lib/python3.6/site-packages/kombu/transport/redis.py", line 149, in append
celery_1  |     pipe.zadd(self.unacked_index_key, time(), delivery_tag) \
celery_1  |   File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 2263, in zadd
celery_1  |     for pair in iteritems(mapping):
celery_1  |   File "/usr/local/lib/python3.6/site-packages/redis/_compat.py", line 123, in iteritems
celery_1  |     return iter(x.items())
celery_1  | AttributeError: 'float' object has no attribute 'items'

Screenshots

bildschirmfoto 2018-11-30 um 14 31 43

Possible solution

The error is related to following problem: celery/celery#5175
They say that one should use plain celery and redis = "~=2.10.6".

System information
Operating system: Mac OSX 10.14.1
Browser: Chrome?

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

Successfully merging a pull request may close this issue.

1 participant