Nextcloud version: 11.0.1
Operating system and version: Debian GNU/Linux 8
Apache or nginx version: nginx/1.6.2
PHP version: 5.6.29
Is this the first time you’ve seen this error and can you replicate it?: yes
The issue you are facing:
We have a very strange Problem with one of our Customers. I am not able to delete ANY folder. If I sign on as Administrator and try to delete a folder (no matter if this folder is shared or not, no matter if empty or not) the error message "Fehler beim Löschen der Datei “test2"” appers. I created a empty folder test. Inside this folder I created a new folder called test2. Not i cannot delete any of these two. Renaming does also not work.
The output of your Nextcloud log in Admin > Logging:
Fatal webdav OCA\DAV\Connector\Sabre\Exception\FileLocked: HTTP/1.1 423 “test/test2” is locked 2017-02-24T08:53:45+0100
Fatal webdav Sabre\DAV\Exception\ServiceUnavailable: HTTP/1.1 503 Doctrine\DBAL\Exception\DriverException: An exception occurred while executing ‘UPDATE oc_mounts
SET storage_id
= ?, mount_point
= ?, mount_id
= ? WHERE (user_id
= ?) AND (root_id
= ?)’ with params [“1”, “/LRA/files/ABZH/”, null, “LRA”, 11264]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction 2017-02-24T08:51:42+0100
Error no app in context Doctrine\DBAL\Exception\DriverException: An exception occurred while executing ‘UPDATE oc_mounts
SET storage_id
= ?, mount_point
= ?, mount_id
= ? WHERE (user_id
= ?) AND (root_id
= ?)’ with params [“1”, “/LRA/files/ABZH/”, null, “LRA”, 11264]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction 2017-02-24T08:51:42+0100
Fatal webdav Sabre\DAV\Exception\ServiceUnavailable: HTTP/1.1 503 Doctrine\DBAL\Exception\DriverException: An exception occurred while executing ‘UPDATE oc_mounts
SET storage_id
= ?, mount_point
= ?, mount_id
= ? WHERE (user_id
= ?) AND (root_id
= ?)’ with params [“1”, “/LRA/files/ABLU/”, null, “LRA”, 1059]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction 2017-02-24T08:50:43+0100
Error no app in context Doctrine\DBAL\Exception\DriverException: An exception occurred while executing ‘UPDATE oc_mounts
SET storage_id
= ?, mount_point
= ?, mount_id
= ? WHERE (user_id
= ?) AND (root_id
= ?)’ with params [“1”, “/LRA/files/ABLU/”, null, “LRA”, 1059]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction 2017-02-24T08:50:43+0100
Fatal webdav Sabre\DAV\Exception\ServiceUnavailable: HTTP/1.1 503 Doctrine\DBAL\Exception\DriverException: An exception occurred while executing ‘UPDATE oc_mounts
SET storage_id
= ?, mount_point
= ?, mount_id
= ? WHERE (user_id
= ?) AND (root_id
= ?)’ with params [“1”, “/LRA/files/ABZH/”, null, “LRA”, 11264]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction 2017-02-24T08:49:35+0100
Error no app in context Doctrine\DBAL\Exception\DriverException: An exception occurred while executing ‘UPDATE oc_mounts
SET storage_id
= ?, mount_point
= ?, mount_id
= ? WHERE (user_id
= ?) AND (root_id
= ?)’ with params [“1”, “/LRA/files/ABZH/”, null, “LRA”, 11264]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction 2017-02-24T08:49:35+0100
Fatal webdav Sabre\DAV\Exception\ServiceUnavailable: HTTP/1.1 503 Doctrine\DBAL\Exception\DriverException: An exception occurred while executing ‘UPDATE oc_mounts
SET storage_id
= ?, mount_point
= ?, mount_id
= ? WHERE (user_id
= ?) AND (root_id
= ?)’ with params [“1”, “/DSC/files/ABZH/”, null, “DSC”, 11264]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction
The output of your config.php file:
<?php $CONFIG = array ( 'memcache.local' => '\\OC\\Memcache\\APCu', 'instanceid' => 'ocfefka6wthy', 'passwordsalt' => 'thisisnotmypassword', 'secret' => 'thisisnotmysecret', 'trusted_domains' => array ( 0 => 'customername.ourdomain.ch', ), 'datadirectory' => '/var/www/owncloud/data', 'overwrite.cli.url' => 'https://customername.ourdomain.ch', 'dbtype' => 'mysql', 'version' => '11.0.1.2', 'dbname' => 'ocdb', 'dbhost' => '10.64.51.5', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'ocuser', 'dbpassword' => 'thisisnotmypassword', 'logtimezone' => 'Europe/Zurich', 'installed' => true, 'updatechecker' => 'false', 'default_language' => 'de', 'log_rotate_size' => '104857600', 'maintenance' => false, 'theme' => '', 'loglevel' => 2, ); **The output of your nginx log:** 10.64.51.1 - LRA [24/Feb/2017:09:08:27 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.0" 207 409 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - DSC [24/Feb/2017:09:08:27 +0100] "PROPFIND /remote.php/webdav/ABLU/Kunden/LUKB/Archiv_LUKB/2014%20Curling%20Trophy/Finanzen HTTP/1.0" 207 1564 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - ARU [24/Feb/2017:09:08:27 +0100] "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Logos/Iconsammlung HTTP/1.0" 500 0 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - DSC [24/Feb/2017:09:08:28 +0100] "PROPFIND /remote.php/webdav/ABLU/Kunden/LUKB/Archiv_LUKB/2014%20Curling%20Trophy/Logo HTTP/1.0" 207 2251 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - DSC [24/Feb/2017:09:08:28 +0100] "PROPFIND /remote.php/webdav/ABLU/Kunden/LUKB/Archiv_LUKB/2014%20Curling%20Trophy/Projektorganisation HTTP/1.0" 207 5162 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - DSC [24/Feb/2017:09:08:29 +0100] "PROPFIND /remote.php/webdav/ABLU/Kunden/LUKB/Archiv_LUKB/2014%20Curling%20Trophy/Restaurant%20Aqua HTTP/1.0" 207 3053 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - DSC [24/Feb/2017:09:08:29 +0100] "PROPFIND /remote.php/webdav/ABLU/Kunden/LUKB/Archiv_LUKB/2014%20Curling%20Trophy/Restaurant%20Aqua/ersetzt HTTP/1.0" 207 1599 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - DSC [24/Feb/2017:09:08:29 +0100] "PROPFIND /remote.php/webdav/ABLU/Kunden/LUKB/Archiv_LUKB/2014%20Curling%20Trophy/Technik HTTP/1.0" 502 166 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - ARU [24/Feb/2017:09:08:30 +0100] "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Kundenanleitungen%20GV%20Saison%202015%2006042015/screenshots HTTP/1.0" 500 0 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - ARU [24/Feb/2017:09:08:30 +0100] "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Logos/Logos_Gesellschaften HTTP/1.0" 500 0 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - ARU [24/Feb/2017:09:08:31 +0100] "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Logos/Iconsammlung HTTP/1.0" 500 0 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 2017/02/24 09:08:16 [error] 70#0: *98250 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 104" while reading response header from upstream, client: 10.64.51.1, server: , request: "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Logos/Logos_Gesellschaften HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "customer.ourdomain.ch" 2017/02/24 09:08:16 [error] 70#0: *98254 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 104" while reading response header from upstream, client: 10.64.51.1, server: , request: "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Logos/Iconsammlung HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "customer.ourdomain.ch" 2017/02/24 09:08:19 [error] 70#0: *98274 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 104" while reading response header from upstream, client: 10.64.51.1, server: , request: "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Kundenanleitungen%20GV%20Saison%202015%2006042015/screenshots HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "customer.ourdomain.ch" 2017/02/24 09:08:26 [error] 70#0: *98300 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.64.51.1, server: , request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "customer.ourdomain.ch" 2017/02/24 09:08:26 [error] 70#0: *98276 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 104" while reading response header from upstream, client: 10.64.51.1, server: , request: "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Logos/Logos_Gesellschaften HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "customer.ourdomain.ch" 2017/02/24 09:08:27 [error] 70#0: *98282 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 104" while reading response header from upstream, client: 10.64.51.1, server: , request: "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Logos/Iconsammlung HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "customer.ourdomain.ch" 2017/02/24 09:08:29 [error] 72#0: *98320 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.64.51.1, server: , request: "PROPFIND /remote.php/webdav/ABLU/Kunden/LUKB/Archiv_LUKB/2014%20Curling%20Trophy/Technik HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "customer.ourdomain.ch" 2017/02/24 09:08:30 [error] 70#0: *98296 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 7 bytes) in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 104" while reading response header from upstream, client: 10.64.51.1, server: , request: "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Kundenanleitungen%20GV%20Saison%202015%2006042015/screenshots HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "customer.ourdomain.ch" 2017/02/24 09:08:30 [error] 72#0: *98308 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 104" while reading response header from upstream, client: 10.64.51.1, server: , request: "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Logos/Logos_Gesellschaften HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "customer.ourdomain.ch" 2017/02/24 09:08:31 [error] 72#0: *98312 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 104" while reading response header from upstream, client: 10.64.51.1, server: , request: "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Logos/Iconsammlung HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "customer.ourdomain.ch" 10.64.51.1 - LRA [24/Feb/2017:09:08:32 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.0" 207 408 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - LRA [24/Feb/2017:09:08:33 +0100] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.0" 200 452 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 10.64.51.1 - ARU [24/Feb/2017:09:08:33 +0100] "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Kundenanleitungen%20GV%20Saison%202015%2006042015/screenshots HTTP/1.0" 500 0 "-" "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)" 2017/02/24 09:08:33 [error] 72#0: *98322 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 7 bytes) in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 104" while reading response header from upstream, client: 10.64.51.1, server: , request: "DELETE /remote.php/webdav/easy%20Services%20AG/4%20Software/Kundenanleitungen%20GV%20Saison%202015%2006042015/screenshots HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "customer.ourdomain.ch" **What i already tried:** - Upgrade from Nextcloud 11.0.0 to 11.0.1 - occ 'files:scan --all' - Verify that I use TRANSACTION_READ_COMMITTED transaction isolation level. **This Customer has:** 14 users 159215 files **What I try next:** I will raise the memory limit in my php.ini from memory_limit = 128M to memory_limit = 512M