Connection refused error on CentOS 7.2
  • Trying to run Booktype on CentOS 7.2 (no other choice, that's what our university offers). Everything works, except for exporting the books. The logs show the following:

    [19/May/2016 12:24:03] ERROR [sputnik:180] [remote_publish_book] Unknown exception.
    [19/May/2016 12:24:03] ERROR [sputnik:181] [Errno 111] Connection refused
    Traceback (most recent call last):
      File "/home/mjeltsch/mybooktype/Booktype/lib/sputnik/", line 165, in dispatcher
        ret = fnc(request, message, **a)
      File "/home/mjeltsch/mybooktype/Booktype/lib/booktype/apps/edit/", line 2059, in remote_publish_book
      File "/usr/lib/python2.7/site-packages/celery/app/", line 565, in apply_async
        **dict(self._get_exec_options(), **options)
      File "/usr/lib/python2.7/site-packages/celery/app/", line 354, in send_task
        reply_to=reply_to or self.oid, **options
      File "/usr/lib/python2.7/site-packages/celery/app/", line 310, in publish_task
      File "/usr/lib/python2.7/site-packages/kombu/", line 172, in publish
        routing_key, mandatory, immediate, exchange, declare)
      File "/usr/lib/python2.7/site-packages/kombu/", line 457, in _ensured
      File "/usr/lib/python2.7/site-packages/kombu/", line 369, in ensure_connection
        interval_start, interval_step, interval_max, callback)
      File "/usr/lib/python2.7/site-packages/kombu/utils/", line 246, in retry_over_time
        return fun(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/kombu/", line 237, in connect
        return self.connection
      File "/usr/lib/python2.7/site-packages/kombu/", line 742, in connection
        self._connection = self._establish_connection()
      File "/usr/lib/python2.7/site-packages/kombu/", line 697, in _establish_connection
        conn = self.transport.establish_connection()
      File "/usr/lib/python2.7/site-packages/kombu/transport/", line 116, in establish_connection
        conn = self.Connection(**opts)
      File "/usr/lib/python2.7/site-packages/amqp/", line 165, in __init__
        self.transport = self.Transport(host, connect_timeout, ssl)
      File "/usr/lib/python2.7/site-packages/amqp/", line 186, in Transport
        return create_transport(host, connect_timeout, ssl)
      File "/usr/lib/python2.7/site-packages/amqp/", line 299, in create_transport
        return TCPTransport(host, connect_timeout)
      File "/usr/lib/python2.7/site-packages/amqp/", line 95, in __init__
        raise socket.error(last_err)
    error: [Errno 111] Connection refused

    Any help is appreciated.

    Dr. Michael Jeltsch, group leader
    Wihuri Research Institute & Translational Cancer Biology Program
    University of Helsinki
    Haartmaninkatu 8 (Biomedicum Helsinki)
    FIN-00014 Helsinki
    +358-2941-25514 (work)
    +358-50-3200235 (mobile)

    Follow my lab's Google+ page at

  • 1 Comment sorted by
  • Hi Michael, 

    As discussed on the phone - get back to us as soon as you continue working on that.