socket.gaierror: (-5, 'No address associated with hostname')

asked 2015-04-16 07:45:35 -0600

manikanta2006 gravatar image

updated 2015-04-20 02:15:16 -0600

SGPJ gravatar image

while starting the services i getting the below error

[root@storage1 swift]# swift-init main start
proxy-server running (1688 - /etc/swift/proxy-server.conf)
proxy-server already started...
Starting container-server...(/etc/swift/container-server.conf)
Starting account-server...(/etc/swift/account-server.conf)
Starting object-server...(/etc/swift/object-server.conf)
Traceback (most recent call last):
  File "/usr/bin/swift-container-server", line 24, in <module>
    'container-server', default_port=6001, **options))
  File "/usr/lib/python2.6/site-packages/swift/common/wsgi.py", line 378, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.6/site-packages/swift/common/wsgi.py", line 150, in get_socket
    bind_addr[0], bind_addr[1], socket.AF_UNSPEC, socket.SOCK_STREAM)
  File "/usr/lib/python2.6/site-packages/eventlet/support/greendns.py", line 173, in getaddrinfo
    rrset = resolve(host)
  File "/usr/lib/python2.6/site-packages/eventlet/support/greendns.py", line 132, in resolve
    raise socket.gaierror(error)
socket.gaierror: (-5, 'No address associated with hostname')

Traceback (most recent call last):
  File "/usr/bin/swift-account-server", line 24, in <module>
    'account-server', default_port=6002, **options))
  File "/usr/lib/python2.6/site-packages/swift/common/wsgi.py", line 378, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.6/site-packages/swift/common/wsgi.py", line 150, in get_socket
    bind_addr[0], bind_addr[1], socket.AF_UNSPEC, socket.SOCK_STREAM)
  File "/usr/lib/python2.6/site-packages/eventlet/support/greendns.py", line 173, in getaddrinfo
    rrset = resolve(host)
  File "/usr/lib/python2.6/site-packages/eventlet/support/greendns.py", line 132, in resolve
    raise socket.gaierror(error)
socket.gaierror: (-5, 'No address associated with hostname')

Traceback (most recent call last):
  File "/usr/bin/swift-object-server", line 27, in <module>
    **options))
  File "/usr/lib/python2.6/site-packages/swift/common/wsgi.py", line 378, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.6/site-packages/swift/common/wsgi.py", line 150, in get_socket
    bind_addr[0], bind_addr[1], socket.AF_UNSPEC, socket.SOCK_STREAM)
  File "/usr/lib/python2.6/site-packages/eventlet/support/greendns.py", line 173, in getaddrinfo
    rrset = resolve(host)
  File "/usr/lib/python2.6/site-packages/eventlet/support/greendns.py", line 132, in resolve
    raise socket.gaierror(error)
socket.gaierror: (-5, 'No address associated with hostname')

[root@storage1 swift]# 

========================

[root@storage1 swift]# cat account-server.conf 

[DEFAULT]
devices = /srv/node/sdb1
mount_check = false
disable_fallocate = true
bind_ip = 2607:f0d0:1002:11::2
bind_port = 6002
workers = 1        
user = swift
log_facility = LOG_LOCAL2 
recon_cache_path = /var/cache/swift
eventlet_debug = true
db_preallocation = on

[pipeline:main]
pipeline = recon account-server

[app:account-server]
use = egg:swift#account

[filter:recon]
use = egg:swift#recon

[account-replicator]

[account-auditor]

[account-reaper]
[root@storage1 swift]# 

============================


[root@storage1 swift]# cat object-server.conf 
[DEFAULT]
devices = /srv/node/sdb1
mount_check = false
disable_fallocate = true
bind_ip = 2607:f0d0:1002:11::2
bind_port = 6000
workers = 1
user = swift
log_facility = LOG_LOCAL2
recon_cache_path = /var/cache/swift
eventlet_debug = true

[pipeline:main]
pipeline = recon object-server

[app:object-server]
use = egg:swift#object

[filter:recon]
use = egg:swift#recon

[object-replicator]

[object-updater]

[object-auditor]
[root@storage1 swift]# 
==================================


[root@storage1 swift]# cat container-server.conf 
[DEFAULT]
devices = /srv/node/sdb1
mount_check = false
disable_fallocate = true
bind_ip = 2607:f0d0:1002:11::2
bind_port = 6001
workers = 1
user = swift ...
(more)
edit retag flag offensive close merge delete

Comments

can you please give more explanation and edit the question.

SGPJ gravatar imageSGPJ ( 2015-04-20 02:16:00 -0600 )edit

We are testing the IP v6 support for swift 1.12. while starting the services we facing the error .

manikanta2006 gravatar imagemanikanta2006 ( 2015-04-20 03:04:18 -0600 )edit