meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sw:nextcloud:issues [2020/12/07 18:45] niziaksw:nextcloud:issues [2025/01/29 14:47] (current) niziak
Line 1: Line 1:
 ====== Issues ====== ====== Issues ======
 +
 +===== Allowed memory size of 536870912 bytes exhausted =====
 +
 +Cannot upload 146MB file using CURL. In Nextcloud log:
 +<code>
 +Allowed memory size of 536870912 bytes exhausted (tried to allocate 143854312 bytes) at /var/www/html/lib/private/AppFramework/Http/Request.php#404
 +</code>
 +
 +Login as Admin to NC, go to ''Settings'' --> ''System'' and check ''Memory limit: 512MB'' in PHP section.
 +
 +Change env ''PHP_MEMORY_LIMIT'' in ''docker-compose.yml'', and restart container.
 +
 +
 +====== cannot rename without delete permission ======
 +
 +Bug introduced with v30.
 +Group Folders where there is no ''DELETE'' permission allows to rename files. With NC 30 it stops working.
 +
 +[[https://github.com/nextcloud/server/issues/48983|[Bug]: Unable to rename in shared folders #48983]]
 +
 +===== Sabre\DAV\Exception\BadRequest =====
 +
 +<code>
 +Sabre\DAV\Exception\BadRequest: Expected filesize of 1153433600 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.
 +</code>
 +
 +**Reason:** Nextcloud docker v ''24.0.3-apache'' is based on docker ''php:8.0-apache-bullseye''.
 +
 +In the meantime Apache change default ''LimitRequestBody'' value from unlimited to 1GB:
 +[[https://httpd.apache.org/docs/2.4/mod/core.html#limitrequestbody|LimitRequestBody Directive]]
 +> compatibility: In Apache HTTP Server 2.4.53 and earlier, the default value was 0 (unlimited)
 +
 +[[https://github.com/nextcloud/docker/issues/1796|Apache images built after ~mid June 2022 introduce 1GB upload limit #1796]]
 +
 +
 +
 +
 +===== Too many requests =====
 +
 +{{:sw:nextcloud:pasted:20210412-112815.png}}
 +
 +NextCloud v20 in Docker. Nginx rev proxy.
 +
 +<code bash>
 +./occ.sh security:bruteforce:reset 127.0.0.1
 +</code>
 +
 +Install app: ''Brute-force IP whitelist''
 +Add whitelist IPs under ''security settings'' --> ''Brute-Force IP-Whitelist''
  
 =====  ERROR: deadlock detected  ===== =====  ERROR: deadlock detected  =====
Line 8: Line 57:
 ... ...
 SQLSTATE[40P01]: Deadlock detected: 7 ERROR: deadlock detected DETAIL: Process 18318 waits for ShareLock on transaction 6602719; blocked by process 18319. Process 18319 waits for ShareLock on transaction 6602716; blocked by process 18318. HINT: See server log for query details. CONTEXT: while rechecking updated tuple (2338,25) in relation "oc_filecache" SQLSTATE[40P01]: Deadlock detected: 7 ERROR: deadlock detected DETAIL: Process 18318 waits for ShareLock on transaction 6602719; blocked by process 18319. Process 18319 waits for ShareLock on transaction 6602716; blocked by process 18318. HINT: See server log for query details. CONTEXT: while rechecking updated tuple (2338,25) in relation "oc_filecache"
 +</code>
 +
 +<code>
 +db_1          | 2020-12-07 16:40:03.260 UTC [18491] ERROR:  duplicate key value violates unique constraint "oc_filecache_extended_pkey"
 +db_1          | 2020-12-07 16:40:03.260 UTC [18491] DETAIL:  Key (fileid)=(114826) already exists.
 +db_1          | 2020-12-07 16:40:03.260 UTC [18491] STATEMENT:  INSERT INTO "oc_filecache_extended" ("fileid", "upload_time") VALUES($1, $2)
 </code> </code>