Comments (4)
Sorry, I should also say, these are the versions I'm using:
celery==3.0.6
django-celery==3.0.6
amqp==0.9.2
kombu==2.4.0
amqplib==1.0.2
from py-amqp.
I'm not able to reproduce here :(
What value are you specifying for the heartbeat?
Could you dump out what the value is when it crashes (see cf06eba)?
from py-amqp.
So, I upgraded amqp, and I'm still seeing the same error. The 'BROKER_HEARTBEAT' setting is set to '10' in this traceback, but it happens with any value.
(tapp-deps)andrew@cronus:~/code/mxml/lanai/tapp (master)$ manage celery worker -c2
/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/djcelery/loaders.py:116: UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in production environments!
warnings.warn("Using settings.DEBUG leads to a memory leak, never "
-------------- celery@cronus v3.0.7 (Chiastic Slide)
---- **** -----
--- * *** * -- [Configuration]
-- * - **** --- . broker: pyamqp://tapp_dev@interscope.int.sfo01.mml:5672/tapp_dev
- ** ---------- . app: default:0x2370a10 (djcelery.loaders.DjangoLoader)
- ** ---------- . concurrency: 2 (processes)
- ** ---------- . events: OFF (enable -E to monitor this worker)
- ** ----------
- *** --- * --- [Queues]
-- ******* ---- . barracuda: exchange:tasks(topic) binding:barracuda.#
--- ***** ----- . crawl: exchange:tasks(topic) binding:crawl.#
-------------- . low_priority: exchange:tasks(topic) binding:low_priority.#
. mixpanel: exchange:tasks(topic) binding:mixpanel.#
. tasks: exchange:tasks(topic) binding:task.#
2012-08-29 17:58:11,114 cronus.int.sfo01.mml WARNING stdout: celery@cronus has started.
2012-08-29 17:58:11,124 cronus.int.sfo01.mml DEBUG amqp: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2011 VMware, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'consumer_cancel_notify': True, u'publisher_confirms': True, u'basic.nack': True}, u'platform': u'Erlang/OTP', u'version': u'2.7.1'}, mechanisms: [u'PLAIN', u'AMQPLAIN'], locales: [u'en_US']
2012-08-29 17:58:11,125 cronus.int.sfo01.mml ERROR celery.worker: Unrecoverable error: ValueError("Octet '10' out of range 0..65535",)
Traceback (most recent call last):
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/celery/worker/__init__.py", line 353, in start
component.start()
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 368, in start
self.reset_connection()
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 703, in reset_connection
self.connection = self._open_connection()
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 766, in _open_connection
callback=self.maybe_shutdown)
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/kombu/connection.py", line 272, in ensure_connection
interval_start, interval_step, interval_max, callback)
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/kombu/utils/__init__.py", line 158, in retry_over_time
return fun(*args, **kwargs)
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/kombu/connection.py", line 162, in connect
return self.connection
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/kombu/connection.py", line 617, in connection
self._connection = self._establish_connection()
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/kombu/connection.py", line 576, in _establish_connection
conn = self.transport.establish_connection()
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 102, in establish_connection
heartbeat=conninfo.heartbeat)
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/amqp/connection.py", line 157, in __init__
(10, 30), # tune
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/amqp/abstract_channel.py", line 70, in wait
return self.dispatch_method(method_sig, args, content)
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/amqp/abstract_channel.py", line 87, in dispatch_method
return amqp_method(self, args)
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/amqp/connection.py", line 808, in _tune
self._x_tune_ok(self.channel_max, self.frame_max, self.heartbeat)
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/amqp/connection.py", line 890, in _x_tune_ok
args.write_short(heartbeat or 0)
File "/home/andrew/.env/tapp-deps/local/lib/python2.7/site-packages/amqp/serialization.py", line 231, in write_short
raise ValueError('Octet %r out of range 0..65535' % (n, ))
ValueError: Octet '10' out of range 0..65535
One question I have is should amqplib be installed? It's pulled in via requirements by something.
All my dependencies are the same as I noted above except celery (3.0.7) and amqp (0.9.3). Let me know if you need anything else from me.
from py-amqp.
Hahahahaha, wow, stupid mistake on my part. I was quoting the BROKER_HEARTBEAT value...once I stopped doing that, everything works as expected. Sorry about that.
from py-amqp.
Related Issues (20)
- Version 5.0.4 has an error HOT 16
- TCP_USER_TIMEOUT doesn't exist on solaris 11.4 HOT 2
- [BUG] Cannot set cert_reqs=ssl.CERT_NONE due to order of context modification in _wrap_socker_sni HOT 1
- Potentially broken _AbstractTransport.__repr__ HOT 4
- 5.0.6: sphinx warnings HOT 6
- 5.0.6: test suite is using `case` which uses `nose` (which is outdated) HOT 2
- Initial Update
- 5.0.7 SSL connection problem HOT 4
- Celery broken after release 5.0.8 HOT 6
- 5.1.1: pytest warnings HOT 2
- 'Server unexpectedly closed connection' HOT 6
- Waht is stable version? HOT 1
- amqp.exceptions.NotFound: Queue.declare: (404) NOT_FOUND
- pyamqp won't send heartbeat?
- 5.1.1: documentation build fails with sphinx 6.1.3 HOT 3
- Maximum recursion depth exceeded
- How does pyamqp/kombu make multiple threads share the same amqp connection? HOT 5
- bug: version 5.2.0 breaks celery with sqs msg processing HOT 3
- Client which use amqp lib always think that connection is blocked.
- Basic.publish: (406) PRECONDITION_FAILED - message size larger than configured max HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-amqp.