"file too big", then "cannot parse response"

Nextcloud version (eg, 20.0.5): 20.0.3
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.21.6 (dockerized with jwilder/nginx-proxy)
PHP version (eg, 7.4): 8.0.17

The issue you are facing:

I am running nextcloud on docker, version 20.0.3 (no updated yet), through a docker nginx reverse proxy.
Since I moved to docker (I was using nexcloud snap before, but I added complexity to my server), I cannot upload files from my iOS…
First, I was getting the message “file too big” and looking for answers I got that I needed to add:

client_max_body_size 0;

to nginx, and also

php_value memory_limit 2G
php_value upload_max_filesize 16G
php_value post_max_size 16G
php_value max_input_time 3600
php_value max_execution_time 3600

to the .htaccess, after this, now I get “cannot parse response” as error.

now… I have no idea how to proceed.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

start docker nginx proxy and docker nextcloud, then try to upload a file in iOS.

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'passwordsalt' => 'SECREY',
  'secret' => 'SECREY',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.mydomain.eu',
  ),
  'trusted_proxies' =>
  array (
    0 => 'SOMEIP',
  ),
  'trusted_hosts' =>
  array (
    0 => 'mydomain.eu',
    1 => '127.0.0.1',
    2 => 'SOMEIP',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '23.0.3.2',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'mariadb',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'instanceid' => 'AN_ID',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'SECRET',
  'installed' => true,
  'updater.release.channel' => 'stable',
  'loglevel' => 2,
  'maintenance' => false,
  'default_phone_region' => 'FR',
  'overridehost' => 'mydoman.eu',
  'overwriteprotocol' => 'https',
  'mail_from_address' => 'username',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'mydomain.eu',
  'mail_smtphost' => 'mail.mydomain.eu',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'user@mydomain.eu',
  'mail_smtppassword' => 'SECRET',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
);
~                     

The output of your Apache/nginx/system log in /var/log/____:

nextcloud    | 172.19.0.5 - - [26/Apr/2022:20:00:01 +0000] "GET /custom_apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 606 "-" "Nextcloud Server Crawler"
nextcloud    | 127.0.0.1 - - [26/Apr/2022:20:00:01 +0000] "GET /custom_apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 587 "-" "Nextcloud Server Crawler"
nextcloud    | 172.19.0.5 - - [26/Apr/2022:20:00:13 +0000] "GET /custom_apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 606 "-" "Nextcloud Server Crawler"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:00:13 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:00:17 +0000] "PUT /apps/user_status/heartbeat HTTP/1.1" 200 884 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:00:43 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:01:13 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:01:43 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:02:12 +0000] "PUT /apps/user_status/heartbeat HTTP/1.1" 200 884 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:02:13 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:02:43 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:03:13 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:03:43 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:04:13 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:04:43 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:04:43 +0000] "PUT /apps/user_status/heartbeat HTTP/1.1" 200 884 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:04:57 +0000] "PUT /apps/user_status/heartbeat HTTP/1.1" 200 884 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:05:13 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:05:17 +0000] "PUT /apps/user_status/heartbeat HTTP/1.1" 200 884 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:05:43 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:06:13 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:06:43 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:07:12 +0000] "PUT /apps/user_status/heartbeat HTTP/1.1" 200 884 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:07:13 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - estebanlm [26/Apr/2022:20:07:33 +0000] "GET /status.php HTTP/1.1" 200 1162 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.3.1"
nextcloud    | 88.122.168.83 - estebanlm [26/Apr/2022:20:07:33 +0000] "GET /ocs/v2.php/cloud/user?format=json HTTP/1.1" 200 1455 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.3.1"
nextcloud    | 88.122.168.83 - estebanlm [26/Apr/2022:20:07:34 +0000] "REPORT /remote.php/dav/files/estebanlm HTTP/1.1" 207 736 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.3.1"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:07:34 +0000] "GET /index.php/avatar/estebanlm/256 HTTP/1.1" 304 857 "-" "Nextcloud/4.3.1 (it.twsweb.Nextcloud; build:0; iOS 15.2.1) Alamofire/5.5.0"
nextcloud    | 88.122.168.83 - estebanlm [26/Apr/2022:20:07:34 +0000] "GET /ocs/v1.php/cloud/capabilities?format=json HTTP/1.1" 200 3056 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.3.1"
nextcloud    | 88.122.168.83 - estebanlm [26/Apr/2022:20:07:34 +0000] "GET /ocs/v2.php/apps/files_sharing/api/v1/shares?reshares=false&shared_with_me=false&subfiles=false HTTP/1.1" 200 885 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.3.1"
nextcloud    | 88.122.168.83 - estebanlm [26/Apr/2022:20:07:34 +0000] "GET /ocs/v2.php/apps/files/api/v1/directEditing?format=json HTTP/1.1" 200 1138 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.3.1"
nextcloud    | 88.122.168.83 - estebanlm [26/Apr/2022:20:07:34 +0000] "GET /ocs/v2.php/apps/user_status/api/v1/user_status?format=json HTTP/1.1" 200 921 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.3.1"
nextcloud    | 88.122.168.83 - estebanlm [26/Apr/2022:20:07:39 +0000] "GET /index.php/core/preview.png?file=Readme.md&x=1024&y=1024&a=1&mode=cover HTTP/1.1" 404 753 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.3.1"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:07:43 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - estebanlm [26/Apr/2022:20:07:43 +0000] "PROPFIND /remote.php/dav/files/estebanlm HTTP/1.1" 207 1452 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.3.1"
nextcloud    | 88.122.168.83 - estebanlm [26/Apr/2022:20:07:44 +0000] "GET /index.php/core/preview.png?file=Readme.md&x=1024&y=1024&a=1&mode=cover HTTP/1.1" 404 753 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.3.1"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:08:13 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:08:24 +0000] "GET /csrftoken HTTP/1.1" 200 891 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:08:24 +0000] "GET /csrftoken HTTP/1.1" 200 894 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:08:27 +0000] "GET /csrftoken HTTP/1.1" 200 891 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
nextcloud    | 88.122.168.83 - - [26/Apr/2022:20:08:43 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"

Hi @estebanlm,
You are missing the required support template. Please fill this form out and edit into your post.

This will give us the technical info and logs needed to better help you! Thanks.

sorry, I missed the template. I edited the post :slight_smile:

Can you check nextcloud.log under /var/www or as admin user from top right menu. Filter it for errors.

Also, seems your question has been asked and answered in the past:

https://help.nextcloud.com/search?q=file%20too%20big%20client_max_body

Here is a linked fix:

You could also try making sure you’ve configured chunking on your iOS client as explained here - Chunked file upload · Issue #1559 · nextcloud/ios · GitHub

yes, that link seemed to fix the problem!