After App update unavailable

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version:
    • Nextcloud 33.0.3
  • Operating system and version:
    • #1 SMP PREEMPT Debian 1:6.12.87-1+rpt1~bookworm (2026-05-12)
  • Web server and version:
    • Server version: Apache/2.4.67 (Debian)
  • Reverse proxy and version:
    • nginx version: openresty/1.27.1.2
  • PHP version:
    • PHP 8.4.21 (cli) (built: May 8 2026 19:26:29) (NTS)
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • recently
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • OMV Container
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issues you are facing:

After (sucessful) app update server available only after restart. The nginx proxy initialy reports a 503 error.

Steps to replicate it (hint: details matter!):

  1. Logon as administrator and go to app
  2. Click update all to update pending updates (in this case it were Calender and Contacts)
    3.Server becomes unavailable from nginx proxy

Log entries

Nextcloud

{"file":"/var/www/html/lib/public/AppFramework/Db/QBMapper.php","line":128,"function":"executeStatement","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/lib/private/Preview/Db/PreviewMapper.php","line":64,"function":"insert","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":593,"function":"insert","class":"OC\\Preview\\Db\\PreviewMapper","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":565,"function":"savePreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"},{"__class__":"OC\\Image"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":183,"function":"generatePreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},{"__class__":"OCP\\Image"},1024,2279,false,1116,2484,null,true]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":94,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},[{"width":558,"height":1242,"crop":false,"mode":"cover"}],"image/png",true]},{"file":"/var/www/html/lib/private/PreviewManager.php","line":166,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,false,"cover",null,true]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":166,"function":"getPreview","class":"OC\\PreviewManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,false,"cover"]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":128,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,true,false,"cover",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":205,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[221486,558,1242,true,false,"cover",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\PreviewController","getPreviewByFileId",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.preview.getpreviewbyfileid"}]},{"file":"/var/www/html/lib/base.php","line":1155,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/core/preview"]},{"file":"/var/www/html/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/DB/Exceptions/DbalException.php","Line":56,"Previous":{"Exception":"Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException","Message":"An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '221486-1024-2279-4-0--1' for key 'previews_file_uniq_idx'","Code":1062,"Trace":[{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":1976,"function":"convert","class":"Doctrine\\DBAL\\Driver\\API\\MySQL\\ExceptionConverter","type":"->","args":[{"__class__":"Doctrine\\DBAL\\Driver\\PDO\\Exception"},{"__class__":"Doctrine\\DBAL\\Query"}]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":1918,"function":"handleDriverException","class":"Doctrine\\DBAL\\Connection","type":"->","args":[{"__class__":"Doctrine\\DBAL\\Driver\\PDO\\Exception"},{"__class__":"Doctrine\\DBAL\\Query"}]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":1218,"function":"convertExceptionDuringQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":[{"__class__":"Doctrine\\DBAL\\Driver\\PDO\\Exception"},"INSERT INTO `oc_previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",["86751037557383169",221486,3,1024,2279,"And 8 more entries, set log level to debug to see all entries"],[2,2,2,1,1,"And 8 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php","line":292,"function":"executeStatement","class":"Doctrine\\DBAL\\Connection","type":"->","args":["INSERT INTO `oc_previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",["86751037557383169",221486,3,1024,2279,"And 8 more entries, set log level to debug to see all entries"],[2,2,2,1,1,"And 8 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/DB/Connection.php","line":467,"function":"executeStatement","class":"Doctrine\\DBAL\\Connections\\PrimaryReadReplicaConnection","type":"->","args":["INSERT INTO `oc_previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"86751037557383169","dcValue2":221486,"dcValue3":3,"dcValue4":1024,"dcValue5":2279,"0":"And 8 more entries, set log level to debug to see all entries"},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":1,"dcValue5":1,"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/html/lib/private/DB/ConnectionAdapter.php","line":67,"function":"executeStatement","class":"OC\\DB\\Connection","type":"->","args":["INSERT INTO `oc_previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"86751037557383169","dcValue2":221486,"dcValue3":3,"dcValue4":1024,"dcValue5":2279,"0":"And 8 more entries, set log level to debug to see all entries"},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":1,"dcValue5":1,"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php","line":285,"function":"executeStatement","class":"OC\\DB\\ConnectionAdapter","type":"->","args":["INSERT INTO `*PREFIX*previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"86751037557383169","dcValue2":221486,"dcValue3":3,"dcValue4":1024,"dcValue5":2279,"0":"And 8 more entries, set log level to debug to see all entries"},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":1,"dcValue5":1,"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/html/lib/public/AppFramework/Db/QBMapper.php","line":128,"function":"executeStatement","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/lib/private/Preview/Db/PreviewMapper.php","line":64,"function":"insert","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":593,"function":"insert","class":"OC\\Preview\\Db\\PreviewMapper","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":565,"function":"savePreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"},{"__class__":"OC\\Image"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":183,"function":"generatePreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},{"__class__":"OCP\\Image"},1024,2279,false,1116,2484,null,true]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":94,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},[{"width":558,"height":1242,"crop":false,"mode":"cover"}],"image/png",true]},{"file":"/var/www/html/lib/private/PreviewManager.php","line":166,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,false,"cover",null,true]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":166,"function":"getPreview","class":"OC\\PreviewManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,false,"cover"]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":128,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,true,false,"cover",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":205,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[221486,558,1242,true,false,"cover",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\PreviewController","getPreviewByFileId",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.preview.getpreviewbyfileid"}]},{"file":"/var/www/html/lib/base.php","line":1155,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/core/preview"]},{"file":"/var/www/html/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php","Line":64,"Previous":{"Exception":"Doctrine\\DBAL\\Driver\\PDO\\Exception","Message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '221486-1024-2279-4-0--1' for key 'previews_file_uniq_idx'","Code":1062,"Trace":[{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","line":132,"function":"new","class":"Doctrine\\DBAL\\Driver\\PDO\\Exception","type":"::","args":[{"__class__":"PDOException","errorInfo":["23000",1062,"Duplicate entry '221486-1024-2279-4-0--1' for key 'previews_file_uniq_idx'"]}]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":1212,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDO\\Statement","type":"->","args":[]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php","line":292,"function":"executeStatement","class":"Doctrine\\DBAL\\Connection","type":"->","args":["INSERT INTO `oc_previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",["86751037557383169",221486,3,1024,2279,"And 8 more entries, set log level to debug to see all entries"],[2,2,2,1,1,"And 8 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/DB/Connection.php","line":467,"function":"executeStatement","class":"Doctrine\\DBAL\\Connections\\PrimaryReadReplicaConnection","type":"->","args":["INSERT INTO `oc_previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"86751037557383169","dcValue2":221486,"dcValue3":3,"dcValue4":1024,"dcValue5":2279,"0":"And 8 more entries, set log level to debug to see all entries"},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":1,"dcValue5":1,"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/html/lib/private/DB/ConnectionAdapter.php","line":67,"function":"executeStatement","class":"OC\\DB\\Connection","type":"->","args":["INSERT INTO `oc_previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"86751037557383169","dcValue2":221486,"dcValue3":3,"dcValue4":1024,"dcValue5":2279,"0":"And 8 more entries, set log level to debug to see all entries"},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":1,"dcValue5":1,"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php","line":285,"function":"executeStatement","class":"OC\\DB\\ConnectionAdapter","type":"->","args":["INSERT INTO `*PREFIX*previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"86751037557383169","dcValue2":221486,"dcValue3":3,"dcValue4":1024,"dcValue5":2279,"0":"And 8 more entries, set log level to debug to see all entries"},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":1,"dcValue5":1,"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/html/lib/public/AppFramework/Db/QBMapper.php","line":128,"function":"executeStatement","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/lib/private/Preview/Db/PreviewMapper.php","line":64,"function":"insert","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":593,"function":"insert","class":"OC\\Preview\\Db\\PreviewMapper","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":565,"function":"savePreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"},{"__class__":"OC\\Image"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":183,"function":"generatePreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},{"__class__":"OCP\\Image"},1024,2279,false,1116,2484,null,true]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":94,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},[{"width":558,"height":1242,"crop":false,"mode":"cover"}],"image/png",true]},{"file":"/var/www/html/lib/private/PreviewManager.php","line":166,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,false,"cover",null,true]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":166,"function":"getPreview","class":"OC\\PreviewManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,false,"cover"]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":128,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,true,false,"cover",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":205,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[221486,558,1242,true,false,"cover",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\PreviewController","getPreviewByFileId",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.preview.getpreviewbyfileid"}]},{"file":"/var/www/html/lib/base.php","line":1155,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/core/preview"]},{"file":"/var/www/html/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php","Line":24,"Previous":{"Exception":"PDOException","Message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '221486-1024-2279-4-0--1' for key 'previews_file_uniq_idx'","Code":"23000","Trace":[{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","line":130,"function":"execute","class":"PDOStatement","type":"->","args":[null]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":1212,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDO\\Statement","type":"->","args":[]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php","line":292,"function":"executeStatement","class":"Doctrine\\DBAL\\Connection","type":"->","args":["INSERT INTO `oc_previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",["86751037557383169",221486,3,1024,2279,"And 8 more entries, set log level to debug to see all entries"],[2,2,2,1,1,"And 8 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/DB/Connection.php","line":467,"function":"executeStatement","class":"Doctrine\\DBAL\\Connections\\PrimaryReadReplicaConnection","type":"->","args":["INSERT INTO `oc_previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"86751037557383169","dcValue2":221486,"dcValue3":3,"dcValue4":1024,"dcValue5":2279,"0":"And 8 more entries, set log level to debug to see all entries"},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":1,"dcValue5":1,"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/html/lib/private/DB/ConnectionAdapter.php","line":67,"function":"executeStatement","class":"OC\\DB\\Connection","type":"->","args":["INSERT INTO `oc_previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"86751037557383169","dcValue2":221486,"dcValue3":3,"dcValue4":1024,"dcValue5":2279,"0":"And 8 more entries, set log level to debug to see all entries"},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":1,"dcValue5":1,"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php","line":285,"function":"executeStatement","class":"OC\\DB\\ConnectionAdapter","type":"->","args":["INSERT INTO `*PREFIX*previews` (`id`, `file_id`, `storage_id`, `width`, `height`, `max`, `cropped`, `encrypted`, `etag`, `mtime`, `size`, `mimetype_id`, `source_mimetype_id`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8, :dcValue9, :dcValue10, :dcValue11, :dcValue12, :dcValue13)",{"dcValue1":"86751037557383169","dcValue2":221486,"dcValue3":3,"dcValue4":1024,"dcValue5":2279,"0":"And 8 more entries, set log level to debug to see all entries"},{"dcValue1":2,"dcValue2":2,"dcValue3":2,"dcValue4":1,"dcValue5":1,"0":"And 8 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/html/lib/public/AppFramework/Db/QBMapper.php","line":128,"function":"executeStatement","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/lib/private/Preview/Db/PreviewMapper.php","line":64,"function":"insert","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":593,"function":"insert","class":"OC\\Preview\\Db\\PreviewMapper","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":565,"function":"savePreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Preview\\Db\\Preview","id":"86751037557383169"},{"__class__":"OC\\Image"}]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":183,"function":"generatePreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},{"__class__":"OCP\\Image"},1024,2279,false,1116,2484,null,true]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":94,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},[{"width":558,"height":1242,"crop":false,"mode":"cover"}],"image/png",true]},{"file":"/var/www/html/lib/private/PreviewManager.php","line":166,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,false,"cover",null,true]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":166,"function":"getPreview","class":"OC\\PreviewManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,false,"cover"]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":128,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},558,1242,true,false,"cover",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":205,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[221486,558,1242,true,false,"cover",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\PreviewController","getPreviewByFileId",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.preview.getpreviewbyfileid"}]},{"file":"/var/www/html/lib/base.php","line":1155,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/core/preview"]},{"file":"/var/www/html/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","Line":130}}},"message":"An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '221486-1024-2279-4-0--1' for key 'previews_file_uniq_idx'","exception":"{\"class\":\"OC\\DB\\Exceptions\\DbalException\",\"message\":\"An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '221486-1024-2279-4-0--1' for key 'previews_file_uniq_idx'\",\"code\":1062,\"file\":\"/var/www/html/lib/private/DB/Exceptions/DbalException.php:56\",\"trace\":\"#0 /var/www/html/lib/private/DB/ConnectionAdapter.php(69): OC\\DB\\Exceptions\\DbalException::wrap(Object(Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException), '', 'INSERT INTO `*P...')\\n#1 /var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\\DB\\ConnectionAdapter->executeStatement('INSERT INTO `*P...', Array, Array)\\n#2 /var/www/html/lib/public/AppFramework/Db/QBMapper.php(128): OC\\DB\\QueryBuilder\\QueryBuilder->executeStatement()\\n#3 /var/www/html/lib/private/Preview/Db/PreviewMapper.php(64): OCP\\AppFramework\\Db\\QBMapper->insert(Object(OC\\Preview\\Db\\Preview))\\n#4 /var/www/html/lib/private/Preview/Generator.php(593): OC\\Preview\\Db\\PreviewMapper->insert(Object(OC\\Preview\\Db\\Preview))\\n#5 /var/www/html/lib/private/Preview/Generator.php(565): OC\\Preview\\Generator->savePreview(Object(OC\\Preview\\Db\\Preview), Object(OC\\Image))\\n#6 /var/www/html/lib/private/Preview/Generator.php(183): OC\\Preview\\Generator->generatePreview(Object(OC\\Files\\Node\\File), Object(OCP\\Image), 1024, 2279, false, 1116, 2484, NULL, true)\\n#7 /var/www/html/lib/private/Preview/Generator.php(94): OC\\Preview\\Generator->generatePreviews(Object(OC\\Files\\Node\\File), Array, 'image/png', true)\\n#8 /var/www/html/lib/private/PreviewManager.php(166): OC\\Preview\\Generator->getPreview(Object(OC\\Files\\Node\\File), 558, 1242, false, 'cover', NULL, true)\\n#9 /var/www/html/core/Controller/PreviewController.php(166): OC\\PreviewManager->getPreview(Object(OC\\Files\\Node\\File), 558, 1242, false, 'cover')\\n#10 /var/www/html/core/Controller/PreviewController.php(128): OC\\Core\\Controller\\PreviewController->fetchPreview(Object(OC\\Files\\Node\\File), 558, 1242, true, false, 'cover', false)\\n#11 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(205): OC\\Core\\Controller\\PreviewController->getPreviewByFileId(221486, 558, 1242, true, false, 'cover', false)\\n#12 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(118): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OC\\Core\\Controller\\PreviewController), 'getPreviewByFil...')\\n#13 /var/www/html/lib/private/AppFramework/App.php(153): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OC\\Core\\Controller\\PreviewController), 'getPreviewByFil...')\\n#14 /var/www/html/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main('OC\\\\Core\\\\Control...', 'getPreviewByFil...', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#15 /var/www/html/lib/base.php(1155): OC\\Route\\Router->match('/core/preview')\\n#16 /var/www/html/index.php(25): OC::handleRequest()\\n#17 {main}\",\"previous\":{\"class\":\"Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException\",\"message\":\"An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '221486-1024-2279-4-0--1' for key 'previews_file_uniq_idx'\",\"code\":1062,\"file\":\"/var/www/html/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:64\",\"trace\":\"#0 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1976): Doctrine\\DBAL\\Driver\\API\\MySQL\\ExceptionConverter->convert(Object(Doctrine\\DBAL\\Driver\\PDO\\Exception), Object(Doctrine\\DBAL\\Query))\\n#1 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1918): Doctrine\\DBAL\\Connection->handleDriverException(Object(Doctrine\\DBAL\\Driver\\PDO\\Exception), Object(Doctrine\\DBAL\\Query))\\n#2 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1218): Doctrine\\DBAL\\Connection->convertExceptionDuringQuery(Object(Doctrine\\DBAL\\Driver\\PDO\\Exception), 'INSERT INTO `oc...', Array, Array)\\n#3 /var/www/html/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php(292): Doctrine\\DBAL\\Connection->executeStatement('INSERT INTO `oc...', Array, Array)\\n#4 /var/www/html/lib/private/DB/Connection.php(467): Doctrine\\DBAL\\Connections\\PrimaryReadReplicaConnection->executeStatement('INSERT INTO `oc...', Array, Array)\\n#5 /var/www/html/lib/private/DB/ConnectionAdapter.php(67): OC\\DB\\Connection->executeStatement('INSERT INTO `oc...', Array, Array)\\n#6 /var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\\DB\\ConnectionAdapter->executeStatement('INSERT INTO `*P...', Array, Array)\\n#7 /var/www/html/lib/public/AppFramework/Db/QBMapper.php(128): OC\\DB\\QueryBuilder\\QueryBuilder->executeStatement()\\n#8 /var/www/html/lib/private/Preview/Db/PreviewMapper.php(64): OCP\\AppFramework\\Db\\QBMapper->insert(Object(OC\\Preview\\Db\\Preview))\\n#9 /var/www/html/lib/private/Preview/Generator.php(593): OC\\Preview\\Db\\PreviewMapper->insert(Object(OC\\Preview\\Db\\Preview))\\n#10 /var/www/html/lib/private/Preview/Generator.php(565): OC\\Preview\\Generator->savePreview(Object(OC\\Preview\\Db\\Preview), Object(OC\\Image))\\n#11 /var/www/html/lib/private/Preview/Generator.php(183): OC\\Preview\\Generator->generatePreview(Object(OC\\Files\\Node\\File), Object(OCP\\Image), 1024, 2279, false, 1116, 2484, NULL, true)\\n#12 /var/www/html/lib/private/Preview/Generator.php(94): OC\\Preview\\Generator->generatePreviews(Object(OC\\Files\\Node\\File), Array, 'image/png', true)\\n#13 /var/www/html/lib/private/PreviewManager.php(166): OC\\Preview\\Generator->getPreview(Object(OC\\Files\\Node\\File), 558, 1242, false, 'cover', NULL, true)\\n#14 /var/www/html/core/Controller/PreviewController.php(166): OC\\PreviewManager->getPreview(Object(OC\\Files\\Node\\File), 558, 1242, false, 'cover')\\n#15 /var/www/html/core/Controller/PreviewController.php(128): OC\\Core\\Controller\\PreviewController->fetchPreview(Object(OC\\Files\\Node\\File), 558, 1242, true, false, 'cover', false)\\n#16 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(205): OC\\Core\\Controller\\PreviewController->getPreviewByFileId(221486, 558, 1242, true, false, 'cover', false)\\n#17 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(118): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OC\\Core\\Controller\\PreviewController), 'getPreviewByFil...')\\n#18 /var/www/html/lib/private/AppFramework/App.php(153): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OC\\Core\\Controller\\PreviewController), 'getPreviewByFil...')\\n#19 /var/www/html/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main('OC\\\\Core\\\\Control...', 'getPreviewByFil...', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#20 /var/www/html/lib/base.php(1155): OC\\Route\\Router->match('/core/preview')\\n#21 /var/www/html/index.php(25): OC::handleRequest()\\n#22 {main}\",\"previous\":{\"class\":\"Doctrine\\DBAL\\Driver\\PDO\\Exception\",\"message\":\"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '221486-1024-2279-4-0--1' for key 'previews_file_uniq_idx'\",\"code\":1062,\"file\":\"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php:24\",\"trace\":\"#0 /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php(132): Doctrine\\DBAL\\Driver\\PDO\\Exception::new(Object(PDOException))\\n#1 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1212): Doctrine\\DBAL\\Driver\\PDO\\Statement->execute()\\n#2 /var/www/html/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php(292): Doctrine\\DBAL\\Connection->executeStatement('INSERT INTO `oc...', Array, Array)\\n#3 /var/www/html/lib/private/DB/Connection.php(467): Doctrine\\DBAL\\Connections\\PrimaryReadReplicaConnection->executeStatement('INSERT INTO `oc...', Array, Array)\\n#4 /var/www/html/lib/private/DB/ConnectionAdapter.php(67): OC\\DB\\Connection->executeStatement('INSERT INTO `oc...', Array, Array)\\n#5 /var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\\DB\\ConnectionAdapter->executeStatement('INSERT INTO `*P...', Array, Array)\\n#6 /var/www/html/lib/public/AppFramework/Db/QBMapper.php(128): OC\\DB\\QueryBuilder\\QueryBuilder->executeStatement()\\n#7 /var/www/html/lib/private/Preview/Db/PreviewMapper.php(64): OCP\\AppFramework\\Db\\QBMapper->insert(Object(OC\\Preview\\Db\\Preview))\\n#8 /var/www/html/lib/private/Preview/Generator.php(593): OC\\Preview\\Db\\PreviewMapper->insert(Object(OC\\Preview\\Db\\Preview))\\n#9 /var/www/html/lib/private/Preview/Generator.php(565): OC\\Preview\\Generator->savePreview(Object(OC\\Preview\\Db\\Preview), Object(OC\\Image))\\n#10 /var/www/html/lib/private/Preview/Generator.php(183): OC\\Preview\\Generator->generatePreview(Object(OC\\Files\\Node\\File), Object(OCP\\Image), 1024, 2279, false, 1116, 2484, NULL, true)\\n#11 /var/www/html/lib/private/Preview/Generator.php(94): OC\\Preview\\Generator->generatePreviews(Object(OC\\Files\\Node\\File), Array, 'image/png', true)\\n#12 /var/www/html/lib/private/PreviewManager.php(166): OC\\Preview\\Generator->getPreview(Object(OC\\Files\\Node\\File), 558, 1242, false, 'cover', NULL, true)\\n#13 /var/www/html/core/Controller/PreviewController.php(166): OC\\PreviewManager->getPreview(Object(OC\\Files\\Node\\File), 558, 1242, false, 'cover')\\n#14 /var/www/html/core/Controller/PreviewController.php(128): OC\\Core\\Controller\\PreviewController->fetchPreview(Object(OC\\Files\\Node\\File), 558, 1242, true, false, 'cover', false)\\n#15 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(205): OC\\Core\\Controller\\PreviewController->getPreviewByFileId(221486, 558, 1242, true, false, 'cover', false)\\n#16 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(118): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OC\\Core\\Controller\\PreviewController), 'getPreviewByFil...')\\n#17 /var/www/html/lib/private/AppFramework/App.php(153): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OC\\Core\\Controller\\PreviewController), 'getPreviewByFil...')\\n#18 /var/www/html/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main('OC\\\\Core\\\\Control...', 'getPreviewByFil...', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#19 /var/www/html/lib/base.php(1155): OC\\Route\\Router->match('/core/preview')\\n#20 /var/www/html/index.php(25): OC::handleRequest()\\n#21 {main}\",\"previous\":{\"class\":\"PDOException\",\"message\":\"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '221486-1024-2279-4-0--1' for key 'previews_file_uniq_idx'\",\"code\":\"23000\",\"file\":\"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php:130\",\"trace\":\"#0 /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php(130): PDOStatement->execute(NULL)\\n#1 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1212): Doctrine\\DBAL\\Driver\\PDO\\Statement->execute()\\n#2 /var/www/html/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php(292): Doctrine\\DBAL\\Connection->executeStatement('INSERT INTO `oc...', Array, Array)\\n#3 /var/www/html/lib/private/DB/Connection.php(467): Doctrine\\DBAL\\Connections\\PrimaryReadReplicaConnection->executeStatement('INSERT INTO `oc...', Array, Array)\\n#4 /var/www/html/lib/private/DB/ConnectionAdapter.php(67): OC\\DB\\Connection->executeStatement('INSERT INTO `oc...', Array, Array)\\n#5 /var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\\DB\\ConnectionAdapter->executeStatement('INSERT INTO `*P...', Array, Array)\\n#6 /var/www/html/lib/public/AppFramework/Db/QBMapper.php(128): OC\\DB\\QueryBuilder\\QueryBuilder->executeStatement()\\n#7 /var/www/html/lib/private/Preview/Db/PreviewMapper.php(64): OCP\\AppFramework\\Db\\QBMapper->insert(Object(OC\\Preview\\Db\\Preview))\\n#8 /var/www/html/lib/private/Preview/Generator.php(593): OC\\Preview\\Db\\PreviewMapper->insert(Object(OC\\Preview\\Db\\Preview))\\n#9 /var/www/html/lib/private/Preview/Generator.php(565): OC\\Preview\\Generator->savePreview(Object(OC\\Preview\\Db\\Preview), Object(OC\\Image))\\n#10 /var/www/html/lib/private/Preview/Generator.php(183): OC\\Preview\\Generator->generatePreview(Object(OC\\Files\\Node\\File), Object(OCP\\Image), 1024, 2279, false, 1116, 2484, NULL, true)\\n#11 /var/www/html/lib/private/Preview/Generator.php(94): OC\\Preview\\Generator->generatePreviews(Object(OC\\Files\\Node\\File), Array, 'image/png', true)\\n#12 /var/www/html/lib/private/PreviewManager.php(166): OC\\Preview\\Generator->getPreview(Object(OC\\Files\\Node\\File), 558, 1242, false, 'cover', NULL, true)\\n#13 /var/www/html/core/Controller/PreviewController.php(166): OC\\PreviewManager->getPreview(Object(OC\\Files\\Node\\File), 558, 1242, false, 'cover')\\n#14 /var/www/html/core/Controller/PreviewController.php(128): OC\\Core\\Controller\\PreviewController->fetchPreview(Object(OC\\Files\\Node\\File), 558, 1242, true, false, 'cover', false)\\n#15 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(205): OC\\Core\\Controller\\PreviewController->getPreviewByFileId(221486, 558, 1242, true, false, 'cover', false)\\n#16 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(118): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OC\\Core\\Controller\\PreviewController), 'getPreviewByFil...')\\n#17 /var/www/html/lib/private/AppFramework/App.php(153): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OC\\Core\\Controller\\PreviewController), 'getPreviewByFil...')\\n#18 /var/www/html/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main('OC\\\\Core\\\\Control...', 'getPreviewByFil...', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#19 /var/www/html/lib/base.php(1155): OC\\Route\\Router->match('/core/preview')\\n#20 /var/www/html/index.php(25): OC::handleRequest()\\n#21 {main}\"}}}}","CustomMessage":"An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '221486-1024-2279-4-0--1' for key 'previews_file_uniq_idx'"}}

Web Browser

Apps

Enabled:

  • activity: 6.0.0
  • admin_audit: 1.23.0
  • bookmarks: 16.1.4
  • brewmemo: 0.6.0
  • bruteforcesettings: 6.0.0
  • calendar: 6.4.1
  • camerarawpreviews: 0.9.0
  • circles: 33.0.0
  • cloud_federation_api: 1.17.0
  • comments: 1.23.0
  • contacts: 8.5.0
  • contactsinteraction: 1.14.1
  • cookbook: 0.11.6
  • dashboard: 7.13.0
  • dav: 1.36.0
  • encryption: 2.21.0
  • end_to_end_encryption: 2.1.1
  • federatedfilesharing: 1.23.0
  • federation: 1.23.0
  • files: 2.5.0
  • files_downloadlimit: 5.1.0
  • files_external: 1.25.1
  • files_pdfviewer: 6.0.0
  • files_reminders: 1.6.0
  • files_sharing: 1.25.2
  • files_trashbin: 1.23.0
  • files_versions: 1.26.0
  • firstrunwizard: 6.0.0
  • fulltextsearch: 33.0.0
  • groupfolders: 21.0.7
  • logreader: 6.0.0
  • lookup_server_connector: 1.21.0
  • nextcloud_announcements: 5.0.0
  • notes: 5.0.0
  • notifications: 6.0.0
  • oauth2: 1.21.0
  • onlyoffice: 10.0.0
  • password_policy: 5.0.0
  • photos: 6.0.0
  • privacy: 5.0.0
  • profile: 1.2.0
  • provisioning_api: 1.23.0
  • recommendations: 6.0.0
  • related_resources: 4.0.0
  • serverinfo: 5.0.0
  • settings: 1.16.0
  • sharebymail: 1.23.0
  • support: 5.0.0
  • survey_client: 5.0.0
  • suspicious_login: 11.0.0
  • systemtags: 1.23.0
  • tables: 2.1.1
  • text: 7.0.1
  • theming: 2.8.0
  • twofactor_backupcodes: 1.22.0
  • twofactor_nextcloud_notification: 7.0.0
  • twofactor_totp: 15.0.0
  • updatenotification: 1.23.0
  • uppush: 2.4.0
  • user_status: 1.13.0
  • viewer: 6.0.0
  • weather_status: 1.13.0
  • webhook_listeners: 1.5.0
  • workflowengine: 2.15.0
    Disabled:
  • app_api: 33.0.0 (installed 32.0.0)
  • testing: 1.23.0
  • user_ldap: 1.24.0 (installed 1.22.0)

I tries to generate a thumbnail preview a second time. I don’t know if that is due to large activity. If you have some inconsistencies in the dataset, you might try a:
sudo -u www-data php occ maintenance:repair

Did you already setup all the caching (redis etc.)? This take a lot of load away from the database and therefore reduce potential issues. If you have a lot of images in your setup and on different views, you generate a lot of load with the preview generation, you might try the preview-generation app.

If you do maintenance repair, and the updates, perhaps put the server in maintenance mode to block all client requests, so you can focus on updates.

I guess thisi is good news:

 - Repair MySQL collation
     - All tables already have the correct collation -> nothing to do
 - Clean tags and favorites
     - 0 tags of deleted users have been removed.
     - 0 tags for delete files have been removed.
     - 0 tag entries for deleted tags have been removed.
     - 0 tags with no entries have been removed.
 - Repair invalid shares
 - Move .step file of updater to backup location
 - Add move avatar background job
     - Repair step already executed
 - Add preview cleanup background jobs
 - Migrate oc_properties table to nextcloud schema
     - oc_properties table does not exist.
 - Migrate oauth2_clients table to nextcloud schema
     - Update the oauth2_access_tokens table schema.
     - Update the oauth2_clients table schema.
     - Delete clients (and their related access tokens) with the redirect_uri starting with oc:// or ending with *
 - Repair language codes
 - Add log rotate job
 - Clear frontend caches
     - Image cache cleared
     - JS cache cleared
 - Clear every generated avatar
 - Add preview background cleanup job
 - Queue a one-time job to cleanup old backups of the updater
 - Cleanup invalid photocache files for carddav
 - Add background job to cleanup login flow v2 tokens
 - Remove potentially over exposing share links
     - No need to remove link shares.
 - Clear access cache of projects
 - Reset generated avatar flag
 - Keep legacy encryption enabled
 - Check encryption key format
 - Remove old dashboard app config data
 - Add job to cleanup the bruteforce entries
 - Queue a one-time job to check for user uploaded certificates
 - Repair DAV shares
 - Add background job to set the lookup server share state for users
 - Add token cleanup job
 - Clean up abandoned apps
 - Add possibly missing system config
 - Add AI tasks cleanup jobs
 - Queue a job to generate metadata
 - Cache logo dimension to fix size in emails on Outlook
     - Theming is not used to provide a logo
 - Remove legacy ".ocdata" file
 - Add cleanup-deleted-users background job
 - Validate account properties and store phone numbers in a known format for search
     - Queued background to validate account properties.
 - Queue a job to move the preview
 - Migrate config keys
 - Deduplicate shared bookmark folders
     - Removed 0 duplicate shares
 - Remove superfluous shared bookmark folders
     - Removed 0 superfluous shares
 - Remove orphaned bookmark shares
     - Removed 0 orphaned shares
     - Removed 0 orphaned public links
 - Remove orphaned bookmark tree items
     - Removed 1 orphaned bookmarks entries
     - Removed 0 orphaned folders entries
     - Reinserted 0 orphaned children entries
     - Removed 0 orphaned bookmark folders
     - Reinserted 0 orphaned bookmarks
 - Update bookmark group shares
     - Removed 0 users and added 0 users to 0 groups
     - Removed 0 shares
 - Upgrading Circles App
 - Fix component of birthday calendars
     - 3 birthday calendars updated.
 - Regenerating birthday calendars to use new icons and fix old birthday events without year
     - Repair step already executed
 - Fix broken values of calendar objects
    0 [->--------------------------]
 - Registering building of calendar search index as background job
     - Repair step already executed
 - Register building of social profile search index as background job
     - Repair step already executed
 - Disable system address book
     - Skipping repair step system address book has less then the threshold 5000 of contacts no need to disable
 - Registering background jobs to update cache for webcal calendars
     - Added 0 background jobs to update webcal calendars
 - Registering building of calendar reminder index as background job
     - Repair step already executed
 - Register a background job to update rooms and resources
 - Queue jobs to clean up orphan event and contact data
 - Remove activity entries of private events
     - Removed 0 activity entries
 - Clean up old calendar subscriptions from deleted users that were not cleaned-up
    0 [----->----------------------]
     - 0 calendar subscriptions without an user have been cleaned up
 - Write default encryption module configuration to the database
 - Fix the share type of guest shares when migrating from ownCloud
 - Copy the share password into the dedicated column
 - Set existing shares as accepted
 - Adjust Groupfolders with wrong default quotas
 - Clean up meta table
 - Show a hint about the new editor to existing users
 - Update OAuth token expiration times
 - init metadata
 - Switches from default updater server to the customer one if a valid subscription is available
     - Repair step already executed
 - Migrate some config values to lazy loading
 - Send an admin notification if monthly report is disabled
 - Copy the data into the new db structure
 - Fixing the sequence of the row-sleeves table
 - Force-reset all Text document sessions
 - Initialize migration of background images from dashboard to theming app
 - Add background job to check for backup codes
 - uppush
 - Populating added database structures for workflows

can/should I schedule this? I read this in the doc

The maintenance:repair command runs automatically during upgrades to clean up the database, so while you can run it manually there usually isn’t a need to:

yeah redis is up.

As stated in the docs, normally it should not be required. And if you discover regular problems (when it cleans up a lot), then there might be a problem of your cronjobs (that should do the housekeeping) or there is some bug.

For the frontend caches, even for app updates it can make sense (if it is not run already for this purpose as well).

And you still have the problem? If yes, depending on which app you updated, I’d try to disable the app via occ and check when it is working again. Then try to enable the app again to check.

setting memcache.local to Redis didn´t help or better it was set back to APCu. WIll it do this if the container is running?

What I did now:

  1. Shutdown Nextcloud
  2. change 'memcache.local' => '\\OC\\Memcache\\APCu', to 'memcache.local' => '\\OC\\Memcache\\Redis',
  3. Restart Nextcloud

This time the line was not changed back to APCu. Let’s wait for another App update…