First time here? Check out the FAQ!

Revision history  [back]

Connection Refused

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!

Connection Refused

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!