[zope2-tracker] [Bug 1097817] [NEW] gaierror: [Errno 9] servname not supported for ai_socktype While starting zeo client

Mordicus et Cubitus 1097817 at bugs.launchpad.net
Wed Jan 9 15:57:12 UTC 2013


Public bug reported:

I've encountered this error today while starting Zeo client on FreeBSD
7.0 after having installed Plone with Unified installer for version
4.2.1 (Python 2.7 and Zope 2.13.16

> ./bin/client1 fg
2013-01-09 16:49:22 INFO ZServer HTTP server started at Wed Jan  9 16:49:22 2013
	Hostname: 0.0.0.0
	Port: 8080
2013-01-09 16:49:25 WARNING SecurityInfo Conflicting security declarations for "setText"
2013-01-09 16:49:25 WARNING SecurityInfo Class "ATTopic" had conflicting security declarations
2013-01-09 16:49:27 INFO ZEO.ClientStorage zeostorage ClientStorage (pid=36638) created RW/normal for storage: '1'
2013-01-09 16:49:27 INFO ZEO.cache created temporary cache file '<fdopen>'
Exception in thread Connect([(2, ('127.0.0.1', 8101))]):
Traceback (most recent call last):
  File "<path>/Python-2.7/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "<path>/buildout-cache/eggs/ZODB3-3.10.5-py2.7-freebsd-7.0-RELEASE-i386.egg/ZEO/zrpc/client.py", line 390, in run
    success = self.try_connecting(attempt_timeout)
  File "<path>/buildout-cache/eggs/ZODB3-3.10.5-py2.7-freebsd-7.0-RELEASE-i386.egg/ZEO/zrpc/client.py", line 414, in try_connecting
    wrappers = self._create_wrappers()
  File "<path>/buildout-cache/eggs/ZODB3-3.10.5-py2.7-freebsd-7.0-RELEASE-i386.egg/ZEO/zrpc/client.py", line 457, in _create_wrappers
    for domain, addr in self._expand_addrlist():
  File "<path>/buildout-cache/eggs/ZODB3-3.10.5-py2.7-freebsd-7.0-RELEASE-i386.egg/ZEO/zrpc/client.py", line 446, in _expand_addrlist
    ) in socket.getaddrinfo(host or 'localhost', port):
gaierror: [Errno 9] servname not supported for ai_socktype


Regarding my google friend advice : http://code.google.com/p/py-amqplib/issues/detail?id=41 I have updated the line 446 of ZEO/zrpc/client.py like this:


-                      ) in socket.getaddrinfo(host or 'localhost', port):
+                     ) in socket.getaddrinfo(host or 'localhost', port, 0, socket.SOCK_STREAM):

This has solved the defect.

If this can help creating a work around to this issue. Or if you have
another suggestion I'll be glad to know it.

With kind regards,

Gaël.

** Affects: zope2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/1097817

Title:
  gaierror: [Errno 9] servname not supported for ai_socktype While
  starting zeo client

To manage notifications about this bug go to:
https://bugs.launchpad.net/zope2/+bug/1097817/+subscriptions


More information about the zope2-tracker mailing list