NC Client incorrectly reverts changes seconds later

I frequently encounter an issue where the Nextcloud client reverts my changes to files—or even actions like moving or renaming them—just seconds later, overwriting them with the older version from the server. Even if I repeat the action, the Nextcloud client consistently overwrites it with the server’s version. This doesn’t happen constantly; it occurs sporadically—much like a migraine—but is persistent when it does. For instance, if I move a batch of files into a subdirectory, I can watch them reappear in the original directory within seconds. If I’m working in my editor and modify a line of code, I can watch the change get undone seconds after saving.

I have tried every solution I could find online or via AI. The server and client clocks are synchronized; the client is running version 33.0.5 (though this also happened with earlier versions) on the latest macOS (15.6), and the server is running version 32.0.9. The client uses standard folder synchronization, which otherwise works flawlessly. I’ve tried restarting the Nextcloud client and/or the entire PC, removing and re-setting up sync tasks, and uninstalling and reinstalling the client, yet the error keeps recurring. Since the issue isn’t constant, it’s difficult to reproduce or systematically test potential fixes. I’ve been trying to resolve this for over a year now.

If anyone has direct experience with this problem, I would appreciate any suggestions; this bug causes me hours of troubleshooting while programming whenever I fail to notice that Nextcloud has altered or reverted the code I just wrote.

So it has been an issue for the NC client before version 33?

If you change the files, (and before the initial state is redone), the changes are never synced to the server? These are not read-only shared folders?

Your server, there are any errors that the moving is not carried out or refused to be carried out? The logs might be interesting. Are these a lot of files in the folders, are you using file locking with redis?

Sorry for the delayed response, but I had to wait for the incident to recur so I could analyze the log effectively.

Just a moment ago, I created a new text file (kahoot_relativpronomen.md), wrote a line in it, and saved it. After five seconds, it was replaced by an empty file, and my local file was saved alongside it marked as “conflicted.” However, after I wrote the line again and saved it, it remained intact.

Here are the relevant lines from the log. To be honest, I can’t make heads or tails of them, but perhaps you, as experts, can spot something.

{“reqId”:“vVwzd8AcIUx73zr2ao6B”,“level”:0,“time”:“2026-06-26T06:16:13+00:00”,“remoteAddr”:“2003:f9:bf0a:6e00:6dd3:4e1f:7c1c:1769”,“user”:“–”,“app”:“serverDI”,“method”:“PUT”,“url”:“/remote.php/dav/files/cgrauer/Documents/Jamal/DaFZ/Topics/Grammatik/Relativsatz/kahoot_relativpronomen.txt”,“scriptName”:“/remote.php”,“message”:“The requested alias "OCP\IServerContainer" is deprecated. Please request "Psr\Container\ContainerInterface" directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“Mozilla/5.0 (Macintosh) mirall/33.0.5 (Nextcloud, macos-24.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)”,“version”:“33.0.5.1”,“clientReqId”:“5d638afd-c1a6-4ebb-a7fc-7aa57603c31e”,“data”:{“app”:“serverDI”}}

{“reqId”:“vVwzd8AcIUx73zr2ao6B”,“level”:0,“time”:“2026-06-26T06:16:13+00:00”,“remoteAddr”:“2003:f9:bf0a:6e00:6dd3:4e1f:7c1c:1769”,“user”:“–”,“app”:“serverDI”,“method”:“PUT”,“url”:“/remote.php/dav/files/cgrauer/Documents/Jamal/DaFZ/Topics/Grammatik/Relativsatz/kahoot_relativpronomen.txt”,“scriptName”:“/remote.php”,“message”:“The requested alias "OCP\IServerContainer" is deprecated. Please request "Psr\Container\ContainerInterface" directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“Mozilla/5.0 (Macintosh) mirall/33.0.5 (Nextcloud, macos-24.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)”,“version”:“33.0.5.1”,“clientReqId”:“5d638afd-c1a6-4ebb-a7fc-7aa57603c31e”,“data”:{“app”:“serverDI”}}

{“reqId”:“vVwzd8AcIUx73zr2ao6B”,“level”:0,“time”:“2026-06-26T06:16:13+00:00”,“remoteAddr”:“2003:f9:bf0a:6e00:6dd3:4e1f:7c1c:1769”,“user”:“–”,“app”:“serverDI”,“method”:“PUT”,“url”:“/remote.php/dav/files/cgrauer/Documents/Jamal/DaFZ/Topics/Grammatik/Relativsatz/kahoot_relativpronomen.txt”,“scriptName”:“/remote.php”,“message”:“The requested alias "OCP\IServerContainer" is deprecated. Please request "Psr\Container\ContainerInterface" directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“Mozilla/5.0 (Macintosh) mirall/33.0.5 (Nextcloud, macos-24.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)”,“version”:“33.0.5.1”,“clientReqId”:“5d638afd-c1a6-4ebb-a7fc-7aa57603c31e”,“data”:{“app”:“serverDI”}}

{“reqId”:“vVwzd8AcIUx73zr2ao6B”,“level”:0,“time”:“2026-06-26T06:16:13+00:00”,“remoteAddr”:“2003:f9:bf0a:6e00:6dd3:4e1f:7c1c:1769”,“user”:“cgrauer”,“app”:“serverDI”,“method”:“PUT”,“url”:“/remote.php/dav/files/cgrauer/Documents/Jamal/DaFZ/Topics/Grammatik/Relativsatz/kahoot_relativpronomen.txt”,“scriptName”:“/remote.php”,“message”:“The requested alias "OCP\IServerContainer" is deprecated. Please request "Psr\Container\ContainerInterface" directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“Mozilla/5.0 (Macintosh) mirall/33.0.5 (Nextcloud, macos-24.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)”,“version”:“33.0.5.1”,“clientReqId”:“5d638afd-c1a6-4ebb-a7fc-7aa57603c31e”,“data”:{“app”:“serverDI”}}

{“reqId”:“vVwzd8AcIUx73zr2ao6B”,“level”:1,“time”:“2026-06-26T06:16:13+00:00”,“remoteAddr”:“2003:f9:bf0a:6e00:6dd3:4e1f:7c1c:1769”,“user”:“cgrauer”,“app”:“no app in context”,“method”:“PUT”,“url”:“/remote.php/dav/files/cgrauer/Documents/Jamal/DaFZ/Topics/Grammatik/Relativsatz/kahoot_relativpronomen.txt”,“scriptName”:“/remote.php”,“message”:“The app config key dav/enableCalendarFederation is not defined in the config lexicon”,“userAgent”:“Mozilla/5.0 (Macintosh) mirall/33.0.5 (Nextcloud, macos-24.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)”,“version”:“33.0.5.1”,“clientReqId”:“5d638afd-c1a6-4ebb-a7fc-7aa57603c31e”,“data”:
}

{“reqId”:“vVwzd8AcIUx73zr2ao6B”,“level”:0,“time”:“2026-06-26T06:16:13+00:00”,“remoteAddr”:“2003:f9:bf0a:6e00:6dd3:4e1f:7c1c:1769”,“user”:“cgrauer”,“app”:“serverDI”,“method”:“PUT”,“url”:“/remote.php/dav/files/cgrauer/Documents/Jamal/DaFZ/Topics/Grammatik/Relativsatz/kahoot_relativpronomen.txt”,“scriptName”:“/remote.php”,“message”:“The requested alias "OCP\IServerContainer" is deprecated. Please request "Psr\Container\ContainerInterface" directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“Mozilla/5.0 (Macintosh) mirall/33.0.5 (Nextcloud, macos-24.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)”,“version”:“33.0.5.1”,“clientReqId”:“5d638afd-c1a6-4ebb-a7fc-7aa57603c31e”,“data”:{“app”:“serverDI”}}

{“reqId”:“vVwzd8AcIUx73zr2ao6B”,“level”:1,“time”:“2026-06-26T06:16:13+00:00”,“remoteAddr”:“2003:f9:bf0a:6e00:6dd3:4e1f:7c1c:1769”,“user”:“cgrauer”,“app”:“no app in context”,“method”:“PUT”,“url”:“/remote.php/dav/files/cgrauer/Documents/Jamal/DaFZ/Topics/Grammatik/Relativsatz/kahoot_relativpronomen.txt”,“scriptName”:“/remote.php”,“message”:“The app config key dav/sendInvitations is not defined in the config lexicon”,“userAgent”:“Mozilla/5.0 (Macintosh) mirall/33.0.5 (Nextcloud, macos-24.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)”,“version”:“33.0.5.1”,“clientReqId”:“5d638afd-c1a6-4ebb-a7fc-7aa57603c31e”,“data”:
}

{“reqId”:“vVwzd8AcIUx73zr2ao6B”,“level”:0,“time”:“2026-06-26T06:16:13+00:00”,“remoteAddr”:“2003:f9:bf0a:6e00:6dd3:4e1f:7c1c:1769”,“user”:“cgrauer”,“app”:“text”,“method”:“PUT”,“url”:“/remote.php/dav/files/cgrauer/Documents/Jamal/DaFZ/Topics/Grammatik/Relativsatz/kahoot_relativpronomen.txt”,“scriptName”:“/remote.php”,“message”:“Reset document skipped in BeforeNodeWrittenEvent”,“userAgent”:“Mozilla/5.0 (Macintosh) mirall/33.0.5 (Nextcloud, macos-24.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)”,“version”:“33.0.5.1”,“clientReqId”:“5d638afd-c1a6-4ebb-a7fc-7aa57603c31e”,“exception”:{“Exception”:“OCP\Files\NotFoundException”,“Message”:“”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/apps/text/lib/Listeners/BeforeNodeWrittenListener.php”,“line”:43,“function”:“getId”,“class”:“OC\Files\Node\NonExistingFile”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php”,“line”:57,“function”:“handle”,“class”:“OCA\Text\Listeners\BeforeNodeWrittenListener”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:220,“function”:“__invoke”,“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:56,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:67,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:79,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Node/HookConnector.php”,“line”:74,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_Hook.php”,“line”:85,“function”:“write”,“class”:“OC\Files\Node\HookConnector”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“line”:418,“function”:“emit”,“class”:“OC_Hook”,“type”:“::”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“line”:286,“function”:“emitPreHooks”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php”,“line”:126,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1098,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”,“args”:[“*** sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:504,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[" sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:212,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:428,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:25,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:151,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Files/Node/NonExistingFile.php”,“Line”:37,“message”:“Reset document skipped in BeforeNodeWrittenEvent”,“exception”:“{"class":"OCP\Files\NotFoundException","message":"","code":0,"file":"/var/www/nextcloud/lib/private/Files/Node/NonExistingFile.php:37","trace":"#0 /var/www/nextcloud/apps/text/lib/Listeners/BeforeNodeWrittenListener.php(43): OC\Files\Node\NonExistingFile->getId()\n#1 /var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php(57): OCA\Text\Listeners\BeforeNodeWrittenListener->handle()\n#2 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(220): OC\EventDispatcher\ServiceEventListener->__invoke()\n#3 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()\n#4 /var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php(67): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()\n#5 /var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php(79): OC\EventDispatcher\EventDispatcher->dispatch()\n#6 /var/www/nextcloud/lib/private/Files/Node/HookConnector.php(74): OC\EventDispatcher\EventDispatcher->dispatchTyped()\n#7 /var/www/nextcloud/lib/private/legacy/OC_Hook.php(85): OC\Files\Node\HookConnector->write()\n#8 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(418): OC_Hook::emit()\n#9 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(286): OCA\DAV\Connector\Sabre\File->emitPreHooks()\n#10 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(126): OCA\DAV\Connector\Sabre\File->put()\n#11 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\DAV\Connector\Sabre\Directory->createFile()\n#12 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\DAV\Server->createFile()\n#13 /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\CorePlugin->httpPut()\n#14 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\DAV\Server->emit()\n#15 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\DAV\Server->invokeMethod()\n#16 /var/www/nextcloud/apps/dav/lib/Server.php(428): OCA\DAV\Connector\Sabre\Server->start()\n#17 /var/www/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\DAV\Server->exec()\n#18 /var/www/nextcloud/remote.php(151): require_once(‘…’)\n#19 {main}"}”,“CustomMessage”:“Reset document skipped in BeforeNodeWrittenEvent”}}

{“reqId”:“vVwzd8AcIUx73zr2ao6B”,“level”:3,“time”:“2026-06-26T06:16:13+00:00”,“remoteAddr”:“2003:f9:bf0a:6e00:6dd3:4e1f:7c1c:1769”,“user”:“cgrauer”,“app”:“webdav”,“method”:“PUT”,“url”:“/remote.php/dav/files/cgrauer/Documents/Jamal/DaFZ/Topics/Grammatik/Relativsatz/kahoot_relativpronomen.txt”,“scriptName”:“/remote.php”,“message”:“An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”,“userAgent”:“Mozilla/5.0 (Macintosh) mirall/33.0.5 (Nextcloud, macos-24.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)”,“version”:“33.0.5.1”,“clientReqId”:“5d638afd-c1a6-4ebb-a7fc-7aa57603c31e”,“exception”:{“Exception”:“OC\DB\Exceptions\DbalException”,“Message”:“An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”,“Code”:1206,“Trace”:[{“file”:“/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php”,“line”:69,“function”:“wrap”,“class”:“OC\DB\Exceptions\DbalException”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:285,“function”:“executeStatement”,“class”:“OC\DB\ConnectionAdapter”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Cache.php”,“line”:311,“function”:“executeStatement”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:276,“function”:“insert”,“class”:“OC\Files\Cache\Cache”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:227,“function”:“addToCache”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:320,“function”:“scanFile”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Updater.php”,“line”:112,“function”:“scan”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“line”:331,“function”:“update”,“class”:“OC\Files\Cache\Updater”,“type”:“->”,“args”:[“*** sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",“line”:126,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1098,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:504,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:212,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:428,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:25,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:151,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/DB/Exceptions/DbalException.php”,“Line”:56,“Previous”:{“Exception”:“Doctrine\DBAL\Exception\DriverException”,“Message”:“An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”,“Code”:1206,“Trace”:[{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1976,“function”:“convert”,“class”:“Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1918,“function”:“handleDriverException”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1218,“function”:“convertExceptionDuringQuery”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php”,“line”:292,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“line”:467,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connections\PrimaryReadReplicaConnection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php”,“line”:67,“function”:“executeStatement”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:285,“function”:“executeStatement”,“class”:“OC\DB\ConnectionAdapter”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Cache.php”,“line”:311,“function”:“executeStatement”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:276,“function”:“insert”,“class”:“OC\Files\Cache\Cache”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:227,“function”:“addToCache”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:320,“function”:“scanFile”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Updater.php”,“line”:112,“function”:“scan”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“line”:331,“function”:“update”,“class”:“OC\Files\Cache\Updater”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",“line”:126,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1098,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:504,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:212,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:428,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:25,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:151,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php”,“Line”:129,“Previous”:{“Exception”:“Doctrine\DBAL\Driver\PDO\Exception”,“Message”:“SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”,“Code”:1206,“Trace”:[{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php”,“line”:132,“function”:“new”,“class”:“Doctrine\DBAL\Driver\PDO\Exception”,“type”:“::”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1212,“function”:“execute”,“class”:“Doctrine\DBAL\Driver\PDO\Statement”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php”,“line”:292,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“line”:467,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connections\PrimaryReadReplicaConnection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php”,“line”:67,“function”:“executeStatement”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:285,“function”:“executeStatement”,“class”:“OC\DB\ConnectionAdapter”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Cache.php”,“line”:311,“function”:“executeStatement”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:276,“function”:“insert”,“class”:“OC\Files\Cache\Cache”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:227,“function”:“addToCache”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:320,“function”:“scanFile”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Updater.php”,“line”:112,“function”:“scan”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“line”:331,“function”:“update”,“class”:“OC\Files\Cache\Updater”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",“line”:126,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1098,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:504,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:212,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:428,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:25,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:151,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php”,“Line”:24,“Previous”:{“Exception”:“PDOException”,“Message”:“SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”,“Code”:“HY000”,“Trace”:[{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php”,“line”:130,“function”:“execute”,“class”:“PDOStatement”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1212,“function”:“execute”,“class”:“Doctrine\DBAL\Driver\PDO\Statement”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php”,“line”:292,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“line”:467,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connections\PrimaryReadReplicaConnection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php”,“line”:67,“function”:“executeStatement”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:285,“function”:“executeStatement”,“class”:“OC\DB\ConnectionAdapter”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Cache.php”,“line”:311,“function”:“executeStatement”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:276,“function”:“insert”,“class”:“OC\Files\Cache\Cache”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:227,“function”:“addToCache”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:320,“function”:“scanFile”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Updater.php”,“line”:112,“function”:“scan”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“line”:331,“function”:“update”,“class”:“OC\Files\Cache\Updater”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",“line”:126,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1098,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:504,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[" sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:212,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:428,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:25,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:151,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php”,“Line”:130}}},“message”:“An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”,“exception”:“{"class":"OC\DB\Exceptions\DbalException","message":"An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size","code":1206,"file":"/var/www/nextcloud/lib/private/DB/Exceptions/DbalException.php:56","trace":"#0 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(69): OC\DB\Exceptions\DbalException::wrap()\n#1 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\DB\ConnectionAdapter->executeStatement()\n#2 /var/www/nextcloud/lib/private/Files/Cache/Cache.php(311): OC\DB\QueryBuilder\QueryBuilder->executeStatement()\n#3 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(276): OC\Files\Cache\Cache->insert()\n#4 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(227): OC\Files\Cache\Scanner->addToCache()\n#5 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(320): OC\Files\Cache\Scanner->scanFile()\n#6 /var/www/nextcloud/lib/private/Files/Cache/Updater.php(112): OC\Files\Cache\Scanner->scan()\n#7 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(331): OC\Files\Cache\Updater->update()\n#8 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(126): OCA\DAV\Connector\Sabre\File->put()\n#9 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\DAV\Connector\Sabre\Directory->createFile()\n#10 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\DAV\Server->createFile()\n#11 /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\CorePlugin->httpPut()\n#12 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\DAV\Server->emit()\n#13 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\DAV\Server->invokeMethod()\n#14 /var/www/nextcloud/apps/dav/lib/Server.php(428): OCA\DAV\Connector\Sabre\Server->start()\n#15 /var/www/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\DAV\Server->exec()\n#16 /var/www/nextcloud/remote.php(151): require_once(‘…’)\n#17 {main}","previous":{"class":"Doctrine\DBAL\Exception\DriverException","message":"An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size","code":1206,"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:129","trace":"#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1976): Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()\n#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1918): Doctrine\DBAL\Connection->handleDriverException()\n#2 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1218): Doctrine\DBAL\Connection->convertExceptionDuringQuery()\n#3 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php(292): Doctrine\DBAL\Connection->executeStatement()\n#4 /var/www/nextcloud/lib/private/DB/Connection.php(467): Doctrine\DBAL\Connections\PrimaryReadReplicaConnection->executeStatement()\n#5 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(67): OC\DB\Connection->executeStatement()\n#6 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\DB\ConnectionAdapter->executeStatement()\n#7 /var/www/nextcloud/lib/private/Files/Cache/Cache.php(311): OC\DB\QueryBuilder\QueryBuilder->executeStatement()\n#8 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(276): OC\Files\Cache\Cache->insert()\n#9 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(227): OC\Files\Cache\Scanner->addToCache()\n#10 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(320): OC\Files\Cache\Scanner->scanFile()\n#11 /var/www/nextcloud/lib/private/Files/Cache/Updater.php(112): OC\Files\Cache\Scanner->scan()\n#12 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(331): OC\Files\Cache\Updater->update()\n#13 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(126): OCA\DAV\Connector\Sabre\File->put()\n#14 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\DAV\Connector\Sabre\Directory->createFile()\n#15 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\DAV\Server->createFile()\n#16 /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\CorePlugin->httpPut()\n#17 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\DAV\Server->emit()\n#18 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\DAV\Server->invokeMethod()\n#19 /var/www/nextcloud/apps/dav/lib/Server.php(428): OCA\DAV\Connector\Sabre\Server->start()\n#20 /var/www/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\DAV\Server->exec()\n#21 /var/www/nextcloud/remote.php(151): require_once(‘…’)\n#22 {main}","previous":{"class":"Doctrine\DBAL\Driver\PDO\Exception","message":"SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size","code":1206,"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php:24","trace":"#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php(132): Doctrine\DBAL\Driver\PDO\Exception::new()\n#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1212): Doctrine\DBAL\Driver\PDO\Statement->execute()\n#2 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php(292): Doctrine\DBAL\Connection->executeStatement()\n#3 /var/www/nextcloud/lib/private/DB/Connection.php(467): Doctrine\DBAL\Connections\PrimaryReadReplicaConnection->executeStatement()\n#4 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(67): OC\DB\Connection->executeStatement()\n#5 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\DB\ConnectionAdapter->executeStatement()\n#6 /var/www/nextcloud/lib/private/Files/Cache/Cache.php(311): OC\DB\QueryBuilder\QueryBuilder->executeStatement()\n#7 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(276): OC\Files\Cache\Cache->insert()\n#8 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(227): OC\Files\Cache\Scanner->addToCache()\n#9 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(320): OC\Files\Cache\Scanner->scanFile()\n#10 /var/www/nextcloud/lib/private/Files/Cache/Updater.php(112): OC\Files\Cache\Scanner->scan()\n#11 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(331): OC\Files\Cache\Updater->update()\n#12 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(126): OCA\DAV\Connector\Sabre\File->put()\n#13 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\DAV\Connector\Sabre\Directory->createFile()\n#14 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\DAV\Server->createFile()\n#15 /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\CorePlugin->httpPut()\n#16 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\DAV\Server->emit()\n#17 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\DAV\Server->invokeMethod()\n#18 /var/www/nextcloud/apps/dav/lib/Server.php(428): OCA\DAV\Connector\Sabre\Server->start()\n#19 /var/www/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\DAV\Server->exec()\n#20 /var/www/nextcloud/remote.php(151): require_once(‘…’)\n#21 {main}","previous":{"class":"PDOException","message":"SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size","code":"HY000","file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php:130","trace":"#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php(130): PDOStatement->execute()\n#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1212): Doctrine\DBAL\Driver\PDO\Statement->execute()\n#2 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php(292): Doctrine\DBAL\Connection->executeStatement()\n#3 /var/www/nextcloud/lib/private/DB/Connection.php(467): Doctrine\DBAL\Connections\PrimaryReadReplicaConnection->executeStatement()\n#4 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(67): OC\DB\Connection->executeStatement()\n#5 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\DB\ConnectionAdapter->executeStatement()\n#6 /var/www/nextcloud/lib/private/Files/Cache/Cache.php(311): OC\DB\QueryBuilder\QueryBuilder->executeStatement()\n#7 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(276): OC\Files\Cache\Cache->insert()\n#8 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(227): OC\Files\Cache\Scanner->addToCache()\n#9 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(320): OC\Files\Cache\Scanner->scanFile()\n#10 /var/www/nextcloud/lib/private/Files/Cache/Updater.php(112): OC\Files\Cache\Scanner->scan()\n#11 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(331): OC\Files\Cache\Updater->update()\n#12 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(126): OCA\DAV\Connector\Sabre\File->put()\n#13 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\DAV\Connector\Sabre\Directory->createFile()\n#14 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\DAV\Server->createFile()\n#15 /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\CorePlugin->httpPut()\n#16 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\DAV\Server->emit()\n#17 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\DAV\Server->invokeMethod()\n#18 /var/www/nextcloud/apps/dav/lib/Server.php(428): OCA\DAV\Connector\Sabre\Server->start()\n#19 /var/www/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\DAV\Server->exec()\n#20 /var/www/nextcloud/remote.php(151): require_once(‘…’)\n#21 {main}"}}}}”,“CustomMessage”:“An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”}}

{“reqId”:“vVwzd8AcIUx73zr2ao6B”,“level”:3,“time”:“2026-06-26T06:16:13+00:00”,“remoteAddr”:“2003:f9:bf0a:6e00:6dd3:4e1f:7c1c:1769”,“user”:“cgrauer”,“app”:“no app in context”,“method”:“PUT”,“url”:“/remote.php/dav/files/cgrauer/Documents/Jamal/DaFZ/Topics/Grammatik/Relativsatz/kahoot_relativpronomen.txt”,“scriptName”:“/remote.php”,“message”:“Uncaught exception”,“userAgent”:“Mozilla/5.0 (Macintosh) mirall/33.0.5 (Nextcloud, macos-24.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)”,“version”:“33.0.5.1”,“clientReqId”:“5d638afd-c1a6-4ebb-a7fc-7aa57603c31e”,“exception”:{“Exception”:“OC\DB\Exceptions\DbalException”,“Message”:“An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”,“Code”:1206,“Trace”:[{“file”:“/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php”,“line”:69,“function”:“wrap”,“class”:“OC\DB\Exceptions\DbalException”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:285,“function”:“executeStatement”,“class”:“OC\DB\ConnectionAdapter”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Cache.php”,“line”:311,“function”:“executeStatement”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:276,“function”:“insert”,“class”:“OC\Files\Cache\Cache”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:227,“function”:“addToCache”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:320,“function”:“scanFile”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Updater.php”,“line”:112,“function”:“scan”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“line”:331,“function”:“update”,“class”:“OC\Files\Cache\Updater”,“type”:“->”,“args”:[“*** sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",“line”:126,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1098,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:504,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:212,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:428,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:25,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:151,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/DB/Exceptions/DbalException.php”,“Line”:56,“Previous”:{“Exception”:“Doctrine\DBAL\Exception\DriverException”,“Message”:“An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”,“Code”:1206,“Trace”:[{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1976,“function”:“convert”,“class”:“Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1918,“function”:“handleDriverException”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1218,“function”:“convertExceptionDuringQuery”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php”,“line”:292,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“line”:467,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connections\PrimaryReadReplicaConnection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php”,“line”:67,“function”:“executeStatement”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:285,“function”:“executeStatement”,“class”:“OC\DB\ConnectionAdapter”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Cache.php”,“line”:311,“function”:“executeStatement”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:276,“function”:“insert”,“class”:“OC\Files\Cache\Cache”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:227,“function”:“addToCache”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:320,“function”:“scanFile”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Updater.php”,“line”:112,“function”:“scan”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“line”:331,“function”:“update”,“class”:“OC\Files\Cache\Updater”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",“line”:126,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1098,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:504,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:212,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:428,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:25,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:151,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php”,“Line”:129,“Previous”:{“Exception”:“Doctrine\DBAL\Driver\PDO\Exception”,“Message”:“SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”,“Code”:1206,“Trace”:[{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php”,“line”:132,“function”:“new”,“class”:“Doctrine\DBAL\Driver\PDO\Exception”,“type”:“::”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1212,“function”:“execute”,“class”:“Doctrine\DBAL\Driver\PDO\Statement”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php”,“line”:292,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“line”:467,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connections\PrimaryReadReplicaConnection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php”,“line”:67,“function”:“executeStatement”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:285,“function”:“executeStatement”,“class”:“OC\DB\ConnectionAdapter”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Cache.php”,“line”:311,“function”:“executeStatement”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:276,“function”:“insert”,“class”:“OC\Files\Cache\Cache”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:227,“function”:“addToCache”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:320,“function”:“scanFile”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Updater.php”,“line”:112,“function”:“scan”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“line”:331,“function”:“update”,“class”:“OC\Files\Cache\Updater”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",“line”:126,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1098,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:504,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:212,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:428,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:25,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:151,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php”,“Line”:24,“Previous”:{“Exception”:“PDOException”,“Message”:“SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”,“Code”:“HY000”,“Trace”:[{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php”,“line”:130,“function”:“execute”,“class”:“PDOStatement”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php”,“line”:1212,“function”:“execute”,“class”:“Doctrine\DBAL\Driver\PDO\Statement”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php”,“line”:292,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“line”:467,“function”:“executeStatement”,“class”:“Doctrine\DBAL\Connections\PrimaryReadReplicaConnection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php”,“line”:67,“function”:“executeStatement”,“class”:“OC\DB\Connection”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:285,“function”:“executeStatement”,“class”:“OC\DB\ConnectionAdapter”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Cache.php”,“line”:311,“function”:“executeStatement”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:276,“function”:“insert”,“class”:“OC\Files\Cache\Cache”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:227,“function”:“addToCache”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:320,“function”:“scanFile”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Files/Cache/Updater.php”,“line”:112,“function”:“scan”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“line”:331,“function”:“update”,“class”:“OC\Files\Cache\Updater”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",“line”:126,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1098,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:504,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[" sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:212,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:428,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:25,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:151,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php”,“Line”:130}}},“message”:“Uncaught exception”,“exception”:“{"class":"OC\DB\Exceptions\DbalException","message":"An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size","code":1206,"file":"/var/www/nextcloud/lib/private/DB/Exceptions/DbalException.php:56","trace":"#0 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(69): OC\DB\Exceptions\DbalException::wrap()\n#1 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\DB\ConnectionAdapter->executeStatement()\n#2 /var/www/nextcloud/lib/private/Files/Cache/Cache.php(311): OC\DB\QueryBuilder\QueryBuilder->executeStatement()\n#3 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(276): OC\Files\Cache\Cache->insert()\n#4 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(227): OC\Files\Cache\Scanner->addToCache()\n#5 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(320): OC\Files\Cache\Scanner->scanFile()\n#6 /var/www/nextcloud/lib/private/Files/Cache/Updater.php(112): OC\Files\Cache\Scanner->scan()\n#7 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(331): OC\Files\Cache\Updater->update()\n#8 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(126): OCA\DAV\Connector\Sabre\File->put()\n#9 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\DAV\Connector\Sabre\Directory->createFile()\n#10 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\DAV\Server->createFile()\n#11 /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\CorePlugin->httpPut()\n#12 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\DAV\Server->emit()\n#13 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\DAV\Server->invokeMethod()\n#14 /var/www/nextcloud/apps/dav/lib/Server.php(428): OCA\DAV\Connector\Sabre\Server->start()\n#15 /var/www/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\DAV\Server->exec()\n#16 /var/www/nextcloud/remote.php(151): require_once(‘…’)\n#17 {main}","previous":{"class":"Doctrine\DBAL\Exception\DriverException","message":"An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size","code":1206,"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:129","trace":"#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1976): Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()\n#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1918): Doctrine\DBAL\Connection->handleDriverException()\n#2 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1218): Doctrine\DBAL\Connection->convertExceptionDuringQuery()\n#3 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php(292): Doctrine\DBAL\Connection->executeStatement()\n#4 /var/www/nextcloud/lib/private/DB/Connection.php(467): Doctrine\DBAL\Connections\PrimaryReadReplicaConnection->executeStatement()\n#5 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(67): OC\DB\Connection->executeStatement()\n#6 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\DB\ConnectionAdapter->executeStatement()\n#7 /var/www/nextcloud/lib/private/Files/Cache/Cache.php(311): OC\DB\QueryBuilder\QueryBuilder->executeStatement()\n#8 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(276): OC\Files\Cache\Cache->insert()\n#9 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(227): OC\Files\Cache\Scanner->addToCache()\n#10 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(320): OC\Files\Cache\Scanner->scanFile()\n#11 /var/www/nextcloud/lib/private/Files/Cache/Updater.php(112): OC\Files\Cache\Scanner->scan()\n#12 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(331): OC\Files\Cache\Updater->update()\n#13 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(126): OCA\DAV\Connector\Sabre\File->put()\n#14 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\DAV\Connector\Sabre\Directory->createFile()\n#15 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\DAV\Server->createFile()\n#16 /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\CorePlugin->httpPut()\n#17 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\DAV\Server->emit()\n#18 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\DAV\Server->invokeMethod()\n#19 /var/www/nextcloud/apps/dav/lib/Server.php(428): OCA\DAV\Connector\Sabre\Server->start()\n#20 /var/www/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\DAV\Server->exec()\n#21 /var/www/nextcloud/remote.php(151): require_once(‘…’)\n#22 {main}","previous":{"class":"Doctrine\DBAL\Driver\PDO\Exception","message":"SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size","code":1206,"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php:24","trace":"#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php(132): Doctrine\DBAL\Driver\PDO\Exception::new()\n#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1212): Doctrine\DBAL\Driver\PDO\Statement->execute()\n#2 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php(292): Doctrine\DBAL\Connection->executeStatement()\n#3 /var/www/nextcloud/lib/private/DB/Connection.php(467): Doctrine\DBAL\Connections\PrimaryReadReplicaConnection->executeStatement()\n#4 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(67): OC\DB\Connection->executeStatement()\n#5 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\DB\ConnectionAdapter->executeStatement()\n#6 /var/www/nextcloud/lib/private/Files/Cache/Cache.php(311): OC\DB\QueryBuilder\QueryBuilder->executeStatement()\n#7 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(276): OC\Files\Cache\Cache->insert()\n#8 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(227): OC\Files\Cache\Scanner->addToCache()\n#9 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(320): OC\Files\Cache\Scanner->scanFile()\n#10 /var/www/nextcloud/lib/private/Files/Cache/Updater.php(112): OC\Files\Cache\Scanner->scan()\n#11 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(331): OC\Files\Cache\Updater->update()\n#12 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(126): OCA\DAV\Connector\Sabre\File->put()\n#13 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\DAV\Connector\Sabre\Directory->createFile()\n#14 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\DAV\Server->createFile()\n#15 /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\CorePlugin->httpPut()\n#16 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\DAV\Server->emit()\n#17 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\DAV\Server->invokeMethod()\n#18 /var/www/nextcloud/apps/dav/lib/Server.php(428): OCA\DAV\Connector\Sabre\Server->start()\n#19 /var/www/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\DAV\Server->exec()\n#20 /var/www/nextcloud/remote.php(151): require_once(‘…’)\n#21 {main}","previous":{"class":"PDOException","message":"SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size","code":"HY000","file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php:130","trace":"#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php(130): PDOStatement->execute()\n#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1212): Doctrine\DBAL\Driver\PDO\Statement->execute()\n#2 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php(292): Doctrine\DBAL\Connection->executeStatement()\n#3 /var/www/nextcloud/lib/private/DB/Connection.php(467): Doctrine\DBAL\Connections\PrimaryReadReplicaConnection->executeStatement()\n#4 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(67): OC\DB\Connection->executeStatement()\n#5 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(285): OC\DB\ConnectionAdapter->executeStatement()\n#6 /var/www/nextcloud/lib/private/Files/Cache/Cache.php(311): OC\DB\QueryBuilder\QueryBuilder->executeStatement()\n#7 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(276): OC\Files\Cache\Cache->insert()\n#8 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(227): OC\Files\Cache\Scanner->addToCache()\n#9 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(320): OC\Files\Cache\Scanner->scanFile()\n#10 /var/www/nextcloud/lib/private/Files/Cache/Updater.php(112): OC\Files\Cache\Scanner->scan()\n#11 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(331): OC\Files\Cache\Updater->update()\n#12 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(126): OCA\DAV\Connector\Sabre\File->put()\n#13 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\DAV\Connector\Sabre\Directory->createFile()\n#14 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\DAV\Server->createFile()\n#15 /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\CorePlugin->httpPut()\n#16 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\DAV\Server->emit()\n#17 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\DAV\Server->invokeMethod()\n#18 /var/www/nextcloud/apps/dav/lib/Server.php(428): OCA\DAV\Connector\Sabre\Server->start()\n#19 /var/www/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\DAV\Server->exec()\n#20 /var/www/nextcloud/remote.php(151): require_once(‘…’)\n#21 {main}"}}}}”,“CustomMessage”:“Uncaught exception”}}

An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size”

You are not using redis and apcu? This caching solutions reduce the load on the database.

If that is not possible, you need to improve the settings for your database caches, and check if all the clean up procedures (especially regular cron job) is running properly.

For the cache settings, there are also scripts that analyze your settings and give recommendations. tuning-primer.sh, mysqltuner.pl, … (use your favorite search engine)

Please confirm:

  • your MySQL/MariaDB server’s configuration transaction isolation level matches Nextcloud’s database requirements (READ-COMMITTED)
  • you don’t have any warnings about missing indices in the Nextcloud UI under Admin settings->Overview
  • You are running an LTS version of MariaDB or MySQL that is on the latest patch level

After the above:
For the pool size in particular you can search for MySQL / MariaDB tuning guides (this is not Nextcloud specific) and monitor variables like Innodb_buffer_pool_wait_free,
Innodb_buffer_pool_write_requests,
and Innodb_buffer_pool_read_requests to see if there is still a pool sizing problem in your environment. These are even available via web UIs like PHPMyAdmin and Adminer.