Connection problem with ZEO 5.1
Thierry Florac <[email protected]> Mon, 5 Feb 2018 09:17:28 +0100
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <CAPX_VWBm==DSKkyuH3Go=4u5KBy-U+nsg97rwaPY1PnFUz7MDw@mail.gmail.com> |
Hi ! I migrated recently a ZEO server from ZEO 4.2/ZODB 4.4 to ZEO 5.1/ZODB 5.3. I created a tasks scheduler which is used to pack the ZEO database. This code that was previously working now raises an exception: Traceback (most recent call last): > File "/var/local/eggs/ZEO-5.1.1-py3.5.egg/ZEO/asyncio/client.py", line > 743, in call > return self.wait_for_result(result, timeout) > File "/var/local/eggs/ZEO-5.1.1-py3.5.egg/ZEO/asyncio/client.py", line > 756, in wait_for_result > return future.result(timeout) > File "/usr/lib/python3.5/concurrent/futures/_base.py", line 405, in > result > return self.__get_result() > File "/usr/lib/python3.5/concurrent/futures/_base.py", line 357, in > __get_result > raise self._exception > ZEO.Exceptions.ClientDisconnected > During handling of the above exception, another exception occurred: > Traceback (most recent call last): > File > "/var/local/eggs/pyams_scheduler-0.1.8-py3.5.egg/pyams_scheduler/task.py", > line 267, in _run > task.run(report) > File > "/var/local/eggs/pyams_scheduler-0.1.8-py3.5.egg/pyams_scheduler/zodb.py", > line 46, in run > storage, db = zeo_connection.get_connection(get_storage=True) > File "/var/local/eggs/pyams_utils-0.1.11-py3.5.egg/pyams_utils/zodb.py", > line 163, in get_connection > db = DB(storage) > File "/var/local/eggs/ZODB-5.3.0-py3.5.egg/ZODB/DB.py", line 488, in > __init__ > conn.get(z64) > File "/var/local/eggs/ZODB-5.3.0-py3.5.egg/ZODB/Connection.py", line > 247, in get > p, _ = self._storage.load(oid) > File "/var/local/eggs/ZODB-5.3.0-py3.5.egg/ZODB/mvccadapter.py", line > 143, in load > r = self._storage.loadBefore(oid, self._start) > File "/var/local/eggs/ZEO-5.1.1-py3.5.egg/ZEO/ClientStorage.py", line > 522, in loadBefore > return self._server.load_before(oid, tid) > File "/var/local/eggs/ZEO-5.1.1-py3.5.egg/ZEO/asyncio/client.py", line > 783, in load_before > return self.__call(self.client.load_before_threadsafe, oid, tid) > File "/var/local/eggs/ZEO-5.1.1-py3.5.egg/ZEO/asyncio/client.py", line > 748, in call > return self.wait_for_result(result, self.timeout) > File "/var/local/eggs/ZEO-5.1.1-py3.5.egg/ZEO/asyncio/client.py", line > 756, in wait_for_result > return future.result(timeout) > File "/usr/lib/python3.5/concurrent/futures/_base.py", line 405, in > result > return self.__get_result() > File "/usr/lib/python3.5/concurrent/futures/_base.py", line 357, in > __get_result > raise self._exception > ZEO.Exceptions.ClientDisconnected: never connected Any idea? Best regards, Thierry -- http://www.imagesdusport.com -- http://www.ztfy.org -- You received this message because you are subscribed to the Google Groups "zodb" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.