Re: Connection problem with ZEO 5.1
Jim Fulton <[email protected]> Mon, 5 Feb 2018 06:59:13 -0700
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <CAPDm-Fi4AK8f03GB1-Fub_1R1H3kjt+hv81c7g8X7vYr6udZFw@mail.gmail.com> |
On Mon, Feb 5, 2018 at 6:51 AM, Thierry Florac <[email protected]> wrote: > Problem solved! > The exception was raised when using a "wait=False" argument! > I replaced it with the "wait_timeout" argument and everything is OK... > Ah. The wait argument is more of a trap than anything else, although it's useful for some tests. Jim > > Regards, > Thierry > > 2018-02-05 9:17 GMT+01:00 Thierry Florac <[email protected]>: > >> 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 >> > > > > -- > 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. > -- Jim Fulton http://jimfulton.info -- 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.