{"id":928,"hash":"3844875706a1e56a95c35306b5863a01b1fcfcb4d6e51d4c2f43a259639fb0f4","pattern":"Django Celery - Cannot connect to amqp://guest@127.0.0.8000:5672//","full_message":"I'm trying to set up Django-Celery. I'm going through the tutorial \n\nhttp://docs.celeryproject.org/en/latest/django/first-steps-with-django.html\n\nwhen I run \n    $ python manage.py celery worker --loglevel=info\n\nI get \n\n[Tasks]\n\n/Users/msmith/Documents/dj/venv/lib/python2.7/site-packages/djcelery/loaders.py:133:     UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in     production environments!\nwarnings.warn('Using settings.DEBUG leads to a memory leak, never '\n\n[2013-08-08 11:15:25,368: WARNING/MainProcess] /Users/msmith/Documents/dj/venv/lib/python2.7/site-packages/djcelery/loaders.py:133: UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in production environments!\nwarnings.warn('Using settings.DEBUG leads to a memory leak, never '\n\n[2013-08-08 11:15:25,369: WARNING/MainProcess] celery@sfo-mpmgr ready.\n[2013-08-08 11:15:25,382: ERROR/MainProcess] consumer: Cannot connect to     amqp://guest@127.0.0.1:5672/celeryvhost: [Errno 61] Connection refused.\nTrying again in 2.00 seconds...\n\nhas anyone encountered this issue before?\n\nsettings.py\n\n# Django settings for summertime project.\nimport djcelery\ndjcelery.setup_loader()\n\nBROKER_URL = 'amqp://guest:guest@localhost:5672/'\n\n...\n\nINSTALLED_APPS = {\n    ...\n    'djcelery',\n    'celerytest'\n}\n\nwsgi.py\n\nimport djcelery\ndjcelery.setup_loader()","ecosystem":"pypi","package_name":"django","package_version":null,"solution":"Update Jan 2022: This answer is outdated. As suggested in comments, please refer to this link\n\nThe problem is that you are trying to connect to a local instance of RabbitMQ. Look at this line in your settings.py\n\nBROKER_URL = 'amqp://guest:guest@localhost:5672/'\n\nIf you are working currently on development, you could avoid setting up Rabbit and all the mess around it, and just use a development version of a message queue with the Django database.\n\nDo this by replacing your previous configuration with:\n\nBROKER_URL = 'django://'\n\n...and add this app:\n\nINSTALLED_APPS += ('kombu.transport.django', )\n\nFinally, launch the worker with:\n\n./manage.py celery worker --loglevel=info\n\nSource: http://docs.celeryproject.org/en/latest/getting-started/brokers/django.html","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/18133249/django-celery-cannot-connect-to-amqp-guest127-0-0-80005672","votes":62,"created_at":"2026-04-19T04:52:02.698729+00:00","updated_at":"2026-04-19T04:52:02.698729+00:00"}