I ran tail nextcloud.log and copied the most recent timestamp. Log level was set to warning
{“reqId”:“NiKTHGIEC1x12nPQnoK6”,“level”:3,“time”:“2023-05-08T09:35:08+08:00”,“remoteAddr”:“”,“user”:“–”,“app”:“core”,“method”:“”,“url”:“–”,“message”:“Error while running background job (class: OC\Preview\BackgroundCleanupJob, arguments: )”,“userAgent”:“–”,“version”:“25.0.6.1”,“exception”:{“Exception”:“Doctrine\DBAL\Exception\DriverException”,“Message”:“An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: ".@__thumb"\nCONTEXT: parallel worker”,“Code”:7,“Trace”:[{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1780,“function”:“convert”,“class”:“Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1719,“function”:“handleDriverException”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1067,“function”:“convertExceptionDuringQuery”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/DB/Connection.php”,“line”:261,“function”:“executeQuery”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php”,“line”:345,“function”:“executeQuery”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:281,“function”:“execute”,“class”:“Doctrine\DBAL\Query\QueryBuilder”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/Preview/BackgroundCleanupJob.php”,“line”:148,“function”:“execute”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/Preview/BackgroundCleanupJob.php”,“line”:78,“function”:“getNewPreviewLocations”,“class”:“OC\Preview\BackgroundCleanupJob”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/Preview/BackgroundCleanupJob.php”,“line”:64,“function”:“getDeletedFiles”,“class”:“OC\Preview\BackgroundCleanupJob”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/BackgroundJob/Job.php”,“line”:54,“function”:“run”,“class”:“OC\Preview\BackgroundCleanupJob”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/BackgroundJob/TimedJob.php”,“line”:60,“function”:“execute”,“class”:“OC\BackgroundJob\Job”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/cron.php”,“line”:152,“function”:“execute”,“class”:“OC\BackgroundJob\TimedJob”,“type”:“->”}],“File”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php”,“Line”:83,“Previous”:{“Exception”:“Doctrine\DBAL\Driver\PDO\Exception”,“Message”:“SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: ".@__thumb"\nCONTEXT: parallel worker”,“Code”:7,“Trace”:[{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php”,“line”:94,“function”:“new”,“class”:“Doctrine\DBAL\Driver\PDO\Exception”,“type”:“::”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1057,“function”:“execute”,“class”:“Doctrine\DBAL\Driver\PDO\Statement”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/DB/Connection.php”,“line”:261,“function”:“executeQuery”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php”,“line”:345,“function”:“executeQuery”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:281,“function”:“execute”,“class”:“Doctrine\DBAL\Query\QueryBuilder”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/Preview/BackgroundCleanupJob.php”,“line”:148,“function”:“execute”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/Preview/BackgroundCleanupJob.php”,“line”:78,“function”:“getNewPreviewLocations”,“class”:“OC\Preview\BackgroundCleanupJob”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/Preview/BackgroundCleanupJob.php”,“line”:64,“function”:“getDeletedFiles”,“class”:“OC\Preview\BackgroundCleanupJob”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/BackgroundJob/Job.php”,“line”:54,“function”:“run”,“class”:“OC\Preview\BackgroundCleanupJob”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/BackgroundJob/TimedJob.php”,“line”:60,“function”:“execute”,“class”:“OC\BackgroundJob\Job”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/cron.php”,“line”:152,“function”:“execute”,“class”:“OC\BackgroundJob\TimedJob”,“type”:“->”}],“File”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php”,“Line”:26,“Previous”:{“Exception”:“PDOException”,“Message”:“SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: ".@__thumb"\nCONTEXT: parallel worker”,“Code”:“22P02”,“Trace”:[{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php”,“line”:92,“function”:“execute”,“class”:“PDOStatement”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1057,“function”:“execute”,“class”:“Doctrine\DBAL\Driver\PDO\Statement”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/DB/Connection.php”,“line”:261,“function”:“executeQuery”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php”,“line”:345,“function”:“executeQuery”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:281,“function”:“execute”,“class”:“Doctrine\DBAL\Query\QueryBuilder”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/Preview/BackgroundCleanupJob.php”,“line”:148,“function”:“execute”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/Preview/BackgroundCleanupJob.php”,“line”:78,“function”:“getNewPreviewLocations”,“class”:“OC\Preview\BackgroundCleanupJob”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/Preview/BackgroundCleanupJob.php”,“line”:64,“function”:“getDeletedFiles”,“class”:“OC\Preview\BackgroundCleanupJob”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/BackgroundJob/Job.php”,“line”:54,“function”:“run”,“class”:“OC\Preview\BackgroundCleanupJob”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/lib/private/BackgroundJob/TimedJob.php”,“line”:60,“function”:“execute”,“class”:“OC\BackgroundJob\Job”,“type”:“->”},{“file”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/cron.php”,“line”:152,“function”:“execute”,“class”:“OC\BackgroundJob\TimedJob”,“type”:“->”}],“File”:“/share/CACHEDEV2_DATA/.qpkg/NextCloud80/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php”,“Line”:92}},“message”:“Error while running background job (class: OC\Preview\BackgroundCleanupJob, arguments: )”,“CustomMessage”:“Error while running background job (class: OC\Preview\BackgroundCleanupJob, arguments: )”}}