Ask Your Question

Revision history [back]

swift-init all start unable to bind to port

I ran swift-init all start on an allinone installation done using Ubuntu.

It is failing while trying to start the object-server with the following error:

Traceback (most recent call last):
  File "/usr/local/bin/swift-proxy-server", line 7, in <module>
    execfile(__file__)
  File "/opt/stack/swift/bin/swift-proxy-server", line 23, in <module>
    sys.exit(run_wsgi(conf_file, 'proxy-server', default_port=8080, **options))
  File "/opt/stack/swift/swift/common/wsgi.py", line 379, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/opt/stack/swift/swift/common/wsgi.py", line 171, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds


Traceback (most recent call last):
  File "/usr/local/bin/swift-container-server", line 7, in <module>
    execfile(__file__)
  File "/opt/stack/swift/bin/swift-container-server", line 24, in <module>
    'container-server', default_port=6001, **options))
  File "/opt/stack/swift/swift/common/wsgi.py", line 379, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/opt/stack/swift/swift/common/wsgi.py", line 171, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 0.0.0.0:6011 after trying for 30 seconds


Traceback (most recent call last):
  File "/usr/local/bin/swift-account-server", line 7, in <module>
    execfile(__file__)
  File "/opt/stack/swift/bin/swift-account-server", line 24, in <module>
    'account-server', default_port=6002, **options))
  File "/opt/stack/swift/swift/common/wsgi.py", line 379, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/opt/stack/swift/swift/common/wsgi.py", line 171, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 0.0.0.0:6012 after trying for 30 seconds


Traceback (most recent call last):
  File "/usr/local/bin/swift-object-server", line 7, in <module>
    execfile(__file__)
  File "/opt/stack/swift/bin/swift-object-server", line 27, in <module>
    **options))
  File "/opt/stack/swift/swift/common/wsgi.py", line 379, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/opt/stack/swift/swift/common/wsgi.py", line 171, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 0.0.0.0:6013 after trying for 30 seconds

Any idea what is going on here?

swift-init all start unable to bind to port

I ran swift-init all start on an allinone installation done on Ubuntu using Ubuntu.devstack.

It is failing while trying to start the object-server with the following error:

Traceback (most recent call last):
  File "/usr/local/bin/swift-proxy-server", line 7, in <module>
    execfile(__file__)
  File "/opt/stack/swift/bin/swift-proxy-server", line 23, in <module>
    sys.exit(run_wsgi(conf_file, 'proxy-server', default_port=8080, **options))
  File "/opt/stack/swift/swift/common/wsgi.py", line 379, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/opt/stack/swift/swift/common/wsgi.py", line 171, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds


Traceback (most recent call last):
  File "/usr/local/bin/swift-container-server", line 7, in <module>
    execfile(__file__)
  File "/opt/stack/swift/bin/swift-container-server", line 24, in <module>
    'container-server', default_port=6001, **options))
  File "/opt/stack/swift/swift/common/wsgi.py", line 379, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/opt/stack/swift/swift/common/wsgi.py", line 171, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 0.0.0.0:6011 after trying for 30 seconds


Traceback (most recent call last):
  File "/usr/local/bin/swift-account-server", line 7, in <module>
    execfile(__file__)
  File "/opt/stack/swift/bin/swift-account-server", line 24, in <module>
    'account-server', default_port=6002, **options))
  File "/opt/stack/swift/swift/common/wsgi.py", line 379, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/opt/stack/swift/swift/common/wsgi.py", line 171, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 0.0.0.0:6012 after trying for 30 seconds


Traceback (most recent call last):
  File "/usr/local/bin/swift-object-server", line 7, in <module>
    execfile(__file__)
  File "/opt/stack/swift/bin/swift-object-server", line 27, in <module>
    **options))
  File "/opt/stack/swift/swift/common/wsgi.py", line 379, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/opt/stack/swift/swift/common/wsgi.py", line 171, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 0.0.0.0:6013 after trying for 30 seconds

Any idea what is going on here?