Skip to content

Instantly share code, notes, and snippets.

@vitorbaptista
Created July 9, 2012 16:16
Show Gist options
  • Save vitorbaptista/3077398 to your computer and use it in GitHub Desktop.
Save vitorbaptista/3077398 to your computer and use it in GitHub Desktop.
$ paster celeryd development.ini
[2012-07-09 13:13:38,415: WARNING/MainProcess]
-------------- celery@samba v2.4.4
---- **** -----
--- * *** * -- [Configuration]
-- * - **** --- . broker: amqp://guest@localhost:5672//
- ** ---------- . loader: openspending.command.celery.loader.PylonsLoader
- ** ---------- . logfile: [stderr]@DEBUG
- ** ---------- . concurrency: 4 - ** ---------- . events: OFF
- *** --- * --- . beat: OFF
-- ******* ----
--- ***** ----- [Queues]
-------------- . celery: exchange:celery (direct) binding:celery
[Tasks]
. celery.backend_cleanup
. celery.chord
. celery.chord_unlock
. celery.ping
. openspending.tasks.analyze_all_sources
. openspending.tasks.analyze_source
. openspending.tasks.clean_sessions
. openspending.tasks.index_dataset
. openspending.tasks.load_source
. openspending.tasks.ping
[2012-07-09 13:13:38,417: DEBUG/MainProcess] Instantiating thread components...
[2012-07-09 13:13:38,419: DEBUG/MainProcess] Starting thread TaskPool...
[2012-07-09 13:13:38,422: DEBUG/MainProcess] created semlock with handle 47548921921536
[2012-07-09 13:13:38,422: DEBUG/MainProcess] created semlock with handle 47548921925632
[2012-07-09 13:13:38,422: DEBUG/MainProcess] created semlock with handle 47548921929728
[2012-07-09 13:13:38,422: DEBUG/MainProcess] created semlock with handle 47548921933824
[2012-07-09 13:13:38,433: INFO/PoolWorker-1] child process calling self.run()
[2012-07-09 13:13:38,462: INFO/PoolWorker-3] child process calling self.run()
[2012-07-09 13:13:38,470: INFO/PoolWorker-2] child process calling self.run()
[2012-07-09 13:13:38,479: INFO/PoolWorker-4] child process calling self.run()
[2012-07-09 13:13:38,485: DEBUG/MainProcess] worker handler starting
[2012-07-09 13:13:38,487: DEBUG/MainProcess] result handler starting
[2012-07-09 13:13:38,488: DEBUG/MainProcess] Starting thread Mediator...
[2012-07-09 13:13:38,492: DEBUG/MainProcess] Starting thread Timer...
[2012-07-09 13:13:38,493: DEBUG/MainProcess] Starting thread Consumer...
[2012-07-09 13:13:38,493: WARNING/MainProcess] celery@samba has started.
[2012-07-09 13:13:38,493: DEBUG/MainProcess] Consumer: Re-establishing connection to the broker...
[2012-07-09 13:13:38,496: DEBUG/MainProcess] Start from server, version: 8.0, properties: {u'information': u'Licensed under the MPL. See http://www.ra
bbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2012 VMware, Inc.', u'capabilities': {}, u'platform': u'Erlang/OTP', u'versio
n': u'2.8.4'}, mechanisms: [u'PLAIN', u'AMQPLAIN'], locales: [u'en_US']
[2012-07-09 13:13:38,505: DEBUG/MainProcess] Open OK! known_hosts []
[2012-07-09 13:13:38,505: DEBUG/MainProcess] Consumer: Connection established.
[2012-07-09 13:13:38,505: DEBUG/MainProcess] using channel_id: 1
[2012-07-09 13:13:38,509: DEBUG/MainProcess] Channel open
[2012-07-09 13:13:38,520: DEBUG/MainProcess] basic.qos: prefetch_count->16
[2012-07-09 13:13:38,524: DEBUG/MainProcess] using channel_id: 2
[2012-07-09 13:13:38,528: DEBUG/MainProcess] Channel open
[2012-07-09 13:13:38,530: DEBUG/MainProcess] Closed channel #2
[2012-07-09 13:13:38,530: ERROR/MainProcess] Unrecoverable error: AMQPChannelException(406, u"PRECONDITION_FAILED - cannot redeclare exchange 'celeryd.
pidbox' in vhost '/' with different type, durable, internal or autodelete value", (40, 10), 'Channel.exchange_declare')
Traceback (most recent call last):
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/celery/worker/__init__.py", line 268, in start
component.start()
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 309, in start
self.reset_connection()
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 592, in reset_connection
self.reset_pidbox_node()
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 531, in reset_pidbox_node
callback=self.on_control)
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/kombu/pidbox.py", line 65, in listen
callbacks=[callback or self.handle_message])
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/kombu/pidbox.py", line 56, in Consumer
**options)
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/kombu/messaging.py", line 285, in __init__
self.declare()
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/kombu/messaging.py", line 295, in declare
queue.declare()
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/kombu/entity.py", line 387, in declare
self.exchange.declare(nowait)
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/kombu/entity.py", line 157, in declare
nowait=nowait)
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/amqplib/client_0_8/channel.py", line 843, in exchange_declare
(40, 11), # Channel.exchange_declare_ok
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/amqplib/client_0_8/abstract_channel.py", line 97, in wait
return self.dispatch_method(method_sig, args, content)
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/amqplib/client_0_8/abstract_channel.py", line 115, in dispatch_method
return amqp_method(self, args)
File "/home/vitor/Projects/openspending/pyenv/local/lib/python2.7/site-packages/amqplib/client_0_8/channel.py", line 273, in _close
(class_id, method_id))
AMQPChannelException: (406, u"PRECONDITION_FAILED - cannot redeclare exchange 'celeryd.pidbox' in vhost '/' with different type, durable, internal or a
utodelete value", (40, 10), 'Channel.exchange_declare')
[2012-07-09 13:13:38,533: DEBUG/MainProcess] Stopping thread Consumer...
[2012-07-09 13:13:38,533: DEBUG/MainProcess] Consumer: Stopping consumers...
[2012-07-09 13:13:38,534: DEBUG/MainProcess] Stopping thread Timer...
[2012-07-09 13:13:39,501: DEBUG/MainProcess] Stopping thread Mediator...
[2012-07-09 13:13:40,492: DEBUG/MainProcess] Stopping thread TaskPool...
[2012-07-09 13:13:40,493: DEBUG/MainProcess] closing pool
[2012-07-09 13:13:40,886: DEBUG/MainProcess] worker handler exiting
[2012-07-09 13:13:40,887: DEBUG/MainProcess] joining worker handler
[2012-07-09 13:13:40,887: DEBUG/MainProcess] joining task handler
[2012-07-09 13:13:40,887: DEBUG/MainProcess] task handler got sentinel
[2012-07-09 13:13:40,887: DEBUG/MainProcess] task handler sending sentinel to result handler
[2012-07-09 13:13:40,887: DEBUG/MainProcess] result handler got sentinel
[2012-07-09 13:13:40,887: DEBUG/MainProcess] ensuring that outqueue is not full
[2012-07-09 13:13:40,887: DEBUG/MainProcess] result handler exiting: len(cache)=0, thread._state=0
[2012-07-09 13:13:40,888: DEBUG/MainProcess] task handler sending sentinel to workers
[2012-07-09 13:13:40,888: DEBUG/PoolWorker-4] worker got sentinel -- exiting
[2012-07-09 13:13:40,888: DEBUG/PoolWorker-4] worker exiting after 0 tasks
[2012-07-09 13:13:40,888: INFO/PoolWorker-4] process shutting down
[2012-07-09 13:13:40,889: DEBUG/PoolWorker-4] running all "atexit" finalizers with priority >= 0
[2012-07-09 13:13:40,889: DEBUG/PoolWorker-4] running the remaining "atexit" finalizers
[2012-07-09 13:13:40,889: INFO/PoolWorker-4] process exiting with exitcode 0
[2012-07-09 13:13:40,900: DEBUG/PoolWorker-3] worker got sentinel -- exiting
[2012-07-09 13:13:40,901: DEBUG/PoolWorker-3] worker exiting after 0 tasks
[2012-07-09 13:13:40,901: INFO/PoolWorker-3] process shutting down
[2012-07-09 13:13:40,902: DEBUG/PoolWorker-3] running all "atexit" finalizers with priority >= 0
[2012-07-09 13:13:40,902: DEBUG/PoolWorker-3] running the remaining "atexit" finalizers
[2012-07-09 13:13:40,902: INFO/PoolWorker-3] process exiting with exitcode 0
[2012-07-09 13:13:40,903: DEBUG/MainProcess] task handler exiting
[2012-07-09 13:13:40,904: DEBUG/PoolWorker-2] worker got sentinel -- exiting
[2012-07-09 13:13:40,905: DEBUG/PoolWorker-2] worker exiting after 0 tasks
[2012-07-09 13:13:40,906: INFO/PoolWorker-2] process shutting down
[2012-07-09 13:13:40,906: DEBUG/PoolWorker-2] running all "atexit" finalizers with priority >= 0
[2012-07-09 13:13:40,906: DEBUG/PoolWorker-2] running the remaining "atexit" finalizers
[2012-07-09 13:13:40,906: INFO/PoolWorker-2] process exiting with exitcode 0
[2012-07-09 13:13:40,906: DEBUG/MainProcess] joining result handler
[2012-07-09 13:13:40,906: DEBUG/MainProcess] result handler joined
[2012-07-09 13:13:40,906: DEBUG/MainProcess] joining worker 0/4 (<Process(PoolWorker-1, started daemon)>)
[2012-07-09 13:13:40,914: DEBUG/PoolWorker-1] worker got sentinel -- exiting
[2012-07-09 13:13:40,915: DEBUG/PoolWorker-1] worker exiting after 0 tasks
[2012-07-09 13:13:40,915: INFO/PoolWorker-1] process shutting down
[2012-07-09 13:13:40,915: DEBUG/PoolWorker-1] running all "atexit" finalizers with priority >= 0
[2012-07-09 13:13:40,916: DEBUG/PoolWorker-1] running the remaining "atexit" finalizers
[2012-07-09 13:13:40,916: INFO/PoolWorker-1] process exiting with exitcode 0
[2012-07-09 13:13:40,928: DEBUG/MainProcess] joining worker 1/4 (<Process(PoolWorker-2, stopped daemon)>)
[2012-07-09 13:13:40,928: DEBUG/MainProcess] joining worker 2/4 (<Process(PoolWorker-3, stopped daemon)>)
[2012-07-09 13:13:40,928: DEBUG/MainProcess] joining worker 3/4 (<Process(PoolWorker-4, stopped daemon)>)
[2012-07-09 13:13:40,928: DEBUG/MainProcess] Consumer: Closing consumer channel...
[2012-07-09 13:13:40,929: DEBUG/MainProcess] Closed channel #1
[2012-07-09 13:13:40,929: DEBUG/MainProcess] Consumer: Closing broker connection...
[2012-07-09 13:13:40,934: INFO/MainProcess] process shutting down
[2012-07-09 13:13:40,934: DEBUG/MainProcess] running all "atexit" finalizers with priority >= 0
[2012-07-09 13:13:40,934: DEBUG/MainProcess] finalizing pool
[2012-07-09 13:13:40,934: DEBUG/MainProcess] helping task handler/workers to finish
[2012-07-09 13:13:40,934: DEBUG/MainProcess] removing tasks from inqueue until task handler finished
[2012-07-09 13:13:40,934: DEBUG/MainProcess] terminating workers
[2012-07-09 13:13:40,934: DEBUG/MainProcess] joining task handler
[2012-07-09 13:13:40,935: DEBUG/MainProcess] joining result handler
[2012-07-09 13:13:40,935: DEBUG/MainProcess] joining pool workers
[2012-07-09 13:13:40,935: DEBUG/MainProcess] pool workers joined
[2012-07-09 13:13:40,935: DEBUG/MainProcess] running the remaining "atexit" finalizers
Babel==0.9.6
Beaker==1.6.3
FormEncode==1.2.4
Genshi==0.6
Jinja2==2.6
Mako==0.7.1
MarkupSafe==0.15
Paste==1.7.5.1
PasteDeploy==1.5.0
PasteScript==1.7.5
Pygments==1.5
Pylons==1.0
Routes==1.13
SQLAlchemy==0.7.2
Sphinx==1.0.7
Tempita==0.5.1
Unidecode==0.04.9
WebError==0.10.3
WebHelpers==1.3
WebOb==1.0.8
WebTest==1.3.4
amqplib==1.0.2
anyjson==0.3.3
argparse==1.2.1
celery==2.4.4
certifi==0.0.8
chardet==1.0.1
colander==0.9.3
decorator==3.3.3
distribute==0.6.27
docutils==0.9.1
iso8601==0.1.4
kombu==2.1.1
lxml==2.3.4
messytables==0.2.1
mock==0.8.0
nose==1.1.2
oauthlib==0.1.3
openpyxl==1.5.7
-e [email protected]:openspending/openspending.git@c2425407f16a74951d6648fc5f60d95511316a89#egg=openspending-dev
ordereddict==1.1
osvalidate==2012-05-29.01
psycopg2==2.4.5
pyasn1==0.1.3
python-dateutil==1.5
repoze.lru==0.5
repoze.who==2.0
repoze.who-friendlyform==1.0.8
requests==0.12.1
rsa==3.1.1
simplejson==2.6.0
solrpy==0.9.4
sqlalchemy-migrate==0.7.1
translationstring==1.1
wsgiref==0.1.2
xlrd==0.7.1
zope.interface==4.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment