Connection Refused when viewing question

Hello!

I'm sorry to ask this, as it has to be simple thing I'm missing/user error. But I'm getting a "Connection refused" error when viewing a question. It looks like I don't have the rabbitMQ / celery setup correctly.

The highlights of the stack:

askbot/models/__init__.py record_question_visit

    defer_celery_task(
            tasks.record_question_visit,

Then it goes through celery, to kombu, to amqp to where it bombs out in ampq/transpart.py create_transport

        if not self.sock:
            # Didn't connect, return the most recent error message
                        raise socket.error(last_err) 

And raises the exception:

[Errno 111] Connection refused

trying to connect to host:

1127.0.0.1:56721

I'm using the default settings from the repo, including the lines:

BROKER_TRANSPORT = "djkombu.transport.DatabaseTransport"
CELERY_ALWAYS_EAGER = True

import djcelery
djcelery.setup_loader()

I'm assuming I just don't have something running on the backend to handle those requests, though looks like CELERY_ALWAYS_EAGER = True should do local processing/not require a backend?

Any pointers/suggestions on where to look would be most appreciated! Thanks!

albrnick's avatar
65
albrnick
asked 2016-06-30 14:24:25 -0600, updated 2016-06-30 14:24:54 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments