Andreas Jung

Results 87 comments of Andreas Jung

Sorry, there is some context missing. These kinds of errors occur frequently during export migrations with collective.exportimport (which uses plone.restapi under the hood). The error usually occurs when you export...

> The index likely contains both "int" and "string" values. Under Python 3, `BTrees` can no longer have keys of different types: `BTrees` are based on an order and Python...

``` (Pdb) pickletools.dis(pickle) 0: \x80 PROTO 3 2: c GLOBAL 'BTrees.OOBTree OOBTree' 26: q BINPUT 0 28: . STOP highest protocol among opcodes = 2 (Pdb) for x in pickletools.genops(pickle):...

The analysis is like this: The issue is clearly an index corruption that happened within a Plone migration after a series of plone.restapi calls. The affected field index is department...

> I have told you that the returned pickle consists of *2* adjacent > pickles (first class, second state). > Above you show the not very interesting first pickle. >...

There is no Python 2 in the game here. The ZODB was created from scratch under Python 3.7/Plone 5.2RC3

Likely related to generating the index file (created 32 minutes after replacing the Data.fs). ``` s -la var/filestorage/ total 41311940 drwxr-xr-x 2 ajung users 4096 Jul 1 10:20 . drwxr-xr-x...

Nothing special in the zeo.log ``` 2018-02-21T09:23:38 daemonizing the process 2018-02-21T09:23:38 set current directory: '/home/plone/sandboxes/dynamore.buildout.plone5/parts/zeo' 2018-02-21T09:23:38 daemon manager started 2018-02-21T09:23:38 spawned process pid=29481 2018-02-21T09:23:39 (29481) created PID file '/home/plone/sandboxes/dynamore.buildout.plone5/var/zeo.pid' 2018-02-21T09:23:39...

The issue is still pending (any annoying)...I still see the error in Plone 6.0.0a4: `/Users/ajung/src/plone6.buildout/eggs/ZODB-5.7.0-py3.9.egg/ZODB/blob.py:338: ResourceWarning: unclosed file `

At least in my case, there is no add-on code involved that would deal with blobs directly.