Closed frapell closed 1 year ago
I suggest using a different database driver. mysql_connector_python Is very buggy.
@jamadden Thank you for your quick response. Sorry about that, mysql_connector_python slipped through as it is one of the things I tried... if you see in the TB I'm using mysqlclient 1.4.6, which is the recommended driver right?
This appears to be related to blobs, as it doesn't happen on a fresh site. Trying to get a minimum set of steps to reproduce... will update ticket when I get it
@jamadden Unfortunately I am completely unable to reproduce this without providing the actual DB of a (very old) site where it happens, which of course I cannot do...
If I start the instance and navigate to the actual item, the blob is found in the DB and downloaded to the blobcache just fine, so it is not an issue of a missing file or anything like that... furthermore, if I downgrade to RelStorage 3.3.2 and run the zodbconvert, which fully populates the blobcache, and then upgrade to 3.4.0 and run zodbconvert again, it does run fine, because this time it finds the blob in the cache intead of getting it from the DB. If I clear the blobcache and try again, then the error happens again.
I see that a lot of changes went into zodbconvert between 3.3.2 and 3.4.0, so something definitely happened in there, however I am unable to figure it out... I will have to stick to 3.3.2 for the time being
If you can supply a script that reproduces this, or add to the existing test cases one that fails, I'd be happy to look into it further.
No additional comments since 2021, and no similar reports; closing as a quirk of that environment.
Using zodbconvert to clone a mysql db fails with RelStorage 3.4.0
It works fine in 3.3.2
This is my clone.conf
This is mysql server 8.0.23
Plone 4.3.11 Zope 2.13.24 ZODB 5.6.0 Python 2.7.17 mysql_connector_python 8.0.22