error: [Errno 111] Connection refused

529 views
Skip to first unread message

Martin B.

unread,
Jul 3, 2012, 4:21:59 PM7/3/12
to typh...@googlegroups.com
Hi again,

I was just trying to follow the installation steps from INSTALL.txt and everything seemed to work fine up until I loaded the demo app and tried to open it at localhost:8080. What I keep getting is the following error message:

Traceback (most recent call last):
  File "/var/typhoonae/parts/google_appengine/google/appengine/ext/webapp/_webapp25.py", line 701, in __call__
    handler.get(*groups)
  File "/var/typhoonae/parts/demo/app.py", line 152, in get
    payload="%i delayed" % count)
  File "/var/typhoonae/parts/google_appengine/google/appengine/api/taskqueue/taskqueue.py", line 1611, in add
    queue_name=queue_name, transactional=transactional)
  File "/var/typhoonae/parts/google_appengine/google/appengine/api/taskqueue/taskqueue.py", line 954, in add
    return Queue(queue_name).add(self, transactional=transactional)
  File "/var/typhoonae/parts/google_appengine/google/appengine/api/taskqueue/taskqueue.py", line 1267, in add
    self.__AddTasks(tasks, transactional, self.__FillAddPushTasksRequest)
  File "/var/typhoonae/parts/google_appengine/google/appengine/api/taskqueue/taskqueue.py", line 1308, in __AddTasks
    apiproxy_stub_map.MakeSyncCall('taskqueue', 'BulkAdd', request, response)
  File "/var/typhoonae/parts/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 94, in MakeSyncCall
    return stubmap.MakeSyncCall(service, call, request, response)
  File "/var/typhoonae/parts/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 308, in MakeSyncCall
    rpc.CheckSuccess()
  File "/var/typhoonae/parts/google_appengine/google/appengine/api/apiproxy_rpc.py", line 156, in _WaitImpl
    self.request, self.response)
  File "/var/typhoonae/parts/google_appengine/google/appengine/api/apiproxy_stub.py", line 87, in MakeSyncCall
    method(request, response)
  File "/var/typhoonae/src/typhoonae/taskqueue/taskqueue_celery_stub.py", line 143, in _Dynamic_BulkAdd
    publishers[queue] = task.get_publisher()
  File "/var/typhoonae/eggs/celery-2.3.3-py2.6.egg/celery/app/task/__init__.py", line 286, in get_publisher
    **options)
  File "/var/typhoonae/eggs/celery-2.3.3-py2.6.egg/celery/app/amqp.py", line 324, in TaskPublisher
    return TaskPublisher(*args, **self.app.merge(defaults, kwargs))
  File "/var/typhoonae/eggs/celery-2.3.3-py2.6.egg/celery/app/amqp.py", line 156, in __init__
    super(TaskPublisher, self).__init__(*args, **kwargs)
  File "/var/typhoonae/eggs/kombu-1.4.1-py2.6.egg/kombu/compat.py", line 44, in __init__
    self.backend = connection.channel()
  File "/var/typhoonae/eggs/kombu-1.4.1-py2.6.egg/kombu/connection.py", line 159, in channel
    chan = self.transport.create_channel(self.connection)
  File "/var/typhoonae/eggs/kombu-1.4.1-py2.6.egg/kombu/connection.py", line 560, in connection
    self._connection = self._establish_connection()
  File "/var/typhoonae/eggs/kombu-1.4.1-py2.6.egg/kombu/connection.py", line 521, in _establish_connection
    conn = self.transport.establish_connection()
  File "/var/typhoonae/eggs/kombu-1.4.1-py2.6.egg/kombu/transport/pyamqplib.py", line 255, in establish_connection
    connect_timeout=conninfo.connect_timeout)
  File "/var/typhoonae/eggs/kombu-1.4.1-py2.6.egg/kombu/transport/pyamqplib.py", line 52, in __init__
    super(Connection, self).__init__(*args, **kwargs)
  File "/var/typhoonae/eggs/amqplib-1.0.2-py2.6.egg/amqplib/client_0_8/connection.py", line 129, in __init__
    self.transport = create_transport(host, connect_timeout, ssl)
  File "/var/typhoonae/eggs/amqplib-1.0.2-py2.6.egg/amqplib/client_0_8/transport.py", line 281, in create_transport
    return TCPTransport(host, connect_timeout)
  File "/var/typhoonae/eggs/amqplib-1.0.2-py2.6.egg/amqplib/client_0_8/transport.py", line 85, in __init__
    raise socket.error, msg
error: [Errno 111] Connection refused

Any idea what this is about or how to fix it? Thanks in advance!

Rafael Sierra

unread,
Jul 3, 2012, 4:26:27 PM7/3/12
to Martin B., typh...@googlegroups.com
> --
> You received this message because you are subscribed to the Google
> Groups "typhoonae" group.
> To post to this group, send email to typh...@googlegroups.com
> To unsubscribe from this group, send email to
> typhoonae+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/typhoonae?hl=en

Is seems you need to setup RabbitMQ (I'm not really sure, just saying
that based on the fail to connect somewhere with amqplib)

--
Rafael Sierra
http://blog.rafaelsdm.com/

Martin B.

unread,
Jul 3, 2012, 4:58:39 PM7/3/12
to typh...@googlegroups.com, Martin B.
Any suggestions what do I need to do to "setup" it?

I found this http://stackoverflow.com/questions/10855824/celery-flask-error-errno-111-connection-refused which seems to be very related. Tried updating celery to 2.5.5 in versions.cfg of TAE, but it ends up having the exact same problem again. :(
> typhoonae+unsubscribe@googlegroups.com

Rafael Sierra

unread,
Jul 3, 2012, 5:03:51 PM7/3/12
to Martin B., typh...@googlegroups.com
If you are using ubuntu/debian there's a package named "rabbitmq" (not
sure about the fullname).

Just run `aptitude search rabbitmq` and install the one that has
exactly this name or the one with "server" in its name (you must run
this as root).
>> > typhoonae+...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/typhoonae?hl=en
>>
>> Is seems you need to setup RabbitMQ (I'm not really sure, just saying
>> that based on the fail to connect somewhere with amqplib)
>>
>> --
>> Rafael Sierra
>> http://blog.rafaelsdm.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "typhoonae" group.
> To post to this group, send email to typh...@googlegroups.com
> To unsubscribe from this group, send email to
> typhoonae+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/typhoonae?hl=en



Martin B.

unread,
Jul 3, 2012, 5:11:33 PM7/3/12
to typh...@googlegroups.com, Martin B.
Heh, that's what I just did having written my last message :) installed rabbitmq-server package.. it did throw some errors saying it couldn't start properly (similar to http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-August/014396.html ), but the log says that everything did indeed start properly and localhost:8080 comes up with the demo app and no errors.

So I guess problem solved o_O Thanks!
>> > typhoonae+unsubscribe@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/typhoonae?hl=en
>>
>> Is seems you need to setup RabbitMQ (I'm not really sure, just saying
>> that based on the fail to connect somewhere with amqplib)
>>
>> --
>> Rafael Sierra
>> http://blog.rafaelsdm.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "typhoonae" group.
> To post to this group, send email to typh...@googlegroups.com
> To unsubscribe from this group, send email to
> typhoonae+unsubscribe@googlegroups.com

Rafael Sierra

unread,
Jul 3, 2012, 5:15:09 PM7/3/12
to Martin B., typh...@googlegroups.com
Inline image 1

And that's how I feel right now...

>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/typhoonae?hl=en
>> >>
>> >> Is seems you need to setup RabbitMQ (I'm not really sure, just saying
>> >> that based on the fail to connect somewhere with amqplib)
>> >>
>> >> --
>> >> Rafael Sierra
>> >> http://blog.rafaelsdm.com/
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "typhoonae" group.
>> > To post to this group, send email to typh...@googlegroups.com
>> > To unsubscribe from this group, send email to

>> > For more options, visit this group at
>> > http://groups.google.com/group/typhoonae?hl=en
>>
>>
>>
>> --
>> Rafael Sierra
>> http://blog.rafaelsdm.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "typhoonae" group.
> To post to this group, send email to typh...@googlegroups.com
> To unsubscribe from this group, send email to
image.png
Reply all
Reply to author
Forward
0 new messages