Error upgrading 2.3.5 to 2.4.2

Do a database-only backup and restore and move the local assets by hand.

The sites that I’m having that issue with have assets in two different S3 buckets.