2013-01-15 35 views
0

我嘗試使用django-celery-email。我用的RabbitMQdjango-celery-email with rabbitMQ - 無法連接。套接字關閉

如果我運行:python manage.py celeryd -l info

我有這些錯誤:

(job)[email protected]:~/Pulpit/job/dp$ python manage.py celeryd -l info 
/home/user/Pulpit/job/local/lib/python2.7/site-packages/celery/utils/__init__.py:71: CPendingDeprecationWarning: 
    The 'BROKER_HOST' setting is scheduled for deprecation in  version 2.5 and removal in version v4.0.  BROKER_URL 

    warnings.warn(w) 
/home/user/Pulpit/job/local/lib/python2.7/site-packages/celery/utils/__init__.py:71: CPendingDeprecationWarning: 
    The 'BROKER_USER' setting is scheduled for deprecation in  version 2.5 and removal in version v4.0.  BROKER_URL 

    warnings.warn(w) 
/home/user/Pulpit/job/local/lib/python2.7/site-packages/celery/utils/__init__.py:71: CPendingDeprecationWarning: 
    The 'BROKER_PASSWORD' setting is scheduled for deprecation in  version 2.5 and removal in version v4.0.  BROKER_URL 

    warnings.warn(w) 
/home/user/Pulpit/job/local/lib/python2.7/site-packages/celery/utils/__init__.py:71: CPendingDeprecationWarning: 
    The 'BROKER_PORT' setting is scheduled for deprecation in  version 2.5 and removal in version v4.0.  BROKER_URL 

    warnings.warn(w) 
/home/user/Pulpit/job/local/lib/python2.7/site-packages/celery/utils/__init__.py:71: CPendingDeprecationWarning: 
    The 'BROKER_VHOST' setting is scheduled for deprecation in  version 2.5 and removal in version v4.0.  BROKER_URL 

    warnings.warn(w) 

-------------- [email protected] v3.0.13 (Chiastic Slide) 
---- **** ----- 
--- * *** * -- [Configuration] 
-- * - **** --- . broker:  amqp://[email protected]:5672// 
- ** ---------- . app:   default:0xa8dfb2c (djcelery.loaders.DjangoLoader) 
- ** ---------- . concurrency: 2 (processes) 
- ** ---------- . events:  OFF (enable -E to monitor this worker) 
- ** ---------- 
- *** --- * --- [Queues] 
-- ******* ---- . celery:  exchange:celery(direct) binding:celery 
--- ***** ----- 

[Tasks] 
    . djcelery_email.tasks.SendEmailTask 

[2013-01-15 20:31:23,718: WARNING/MainProcess] [email protected] ready. 
[2013-01-15 20:31:26,735: ERROR/MainProcess] consumer: Cannot connect to amqp://[email protected]:5672//: Socket closed. 
Trying again in 2.00 seconds... 

[2013-01-15 20:31:31,746: ERROR/MainProcess] consumer: Cannot connect to amqp://[email protected]:5672//: Socket closed. 
Trying again in 4.00 seconds... 

在哪裏可以找到錯誤?

回答

0

您的RabbitMQ實例似乎未運行 - 這就是爲什麼您在錯誤日誌中看到consumer: Cannot connect to amqp://[email protected]:5672//: Socket closed.。您的RabbitMQ實例是否正在運行並接受127.0.0.1:5672上的連接?