Getting "E2E Error file too big" for 1.09 GB file when uploading from iOS client

Nextcloud version: 19.0.0, installed via Snappy
Operating system and version: Ubuntu 18.04.4
Apache or nginx version: I’m using Snappy
PHP version: I’m using Snappy
iOS: 13.5.1
Nextcloud iOS App: 3.0.1

The issue I am facing:

Is this the first time you’ve seen this error? No

When uploading a larger video (1.09 GB in my case), I get an error:

“E2E Error file too big”

The error seems to come from this source file.

When looking for the k_max_filesize_E2EE constant, I do see that it is hardcoded to have a maximum value of 500 MB.

I’m unsure on how to bypass this hardcoded value in the client code.

Steps to replicate it:

  1. Make a larger video on the iPhone
  2. Enter the iOS app of Nextcloud
  3. switch to the “Transfers” tab to see the uploads
  4. Wait some time and see the upload starting and running to a certain point

After some time, the above error occurs.

I’ve tried to follow the steps in the manual for big file configuration, without success.

The output of your Nextcloud log in Admin > Logging:

See here (was too big to post here directly)

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

<?php
$CONFIG = array (
  'apps_paths' =>.
  array (
    0 =>.
    array (
      'path' => '/snap/nextcloud/current/htdocs/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>.
    array (
      'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
      'url' => '/extra-apps',
      'writable' => true,
    ),
  ),
  'supportedDatabases' =>.
  array (
    0 => 'mysql',
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>.
  array (
    'host' => '/tmp/sockets/redis.sock',
    'port' => 0,
  ),
  'objectstore' =>.
  array (
    'class' => '\\OC\\Files\\ObjectStore\\S3',
    'arguments' =>.
    array (
      'bucket' => 'cloud.uwe.co',
      'autocreate' => true,
      'key' => '***** REMOVED *****',
      'secret' => '***** REMOVED *****',
      'use_ssl' => true,
      'region' => 'eu-central-1',
    ),
  ),
  'instanceid' => '***** REMOVED *****',
  'passwordsalt' => '***** REMOVED *****',
  'secret' => '***** REMOVED *****',
  'trusted_domains' =>.
  array (
    0 => 'cloud.uwe.co',
  ),
  'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '19.0.0.12',
  'overwrite.cli.url' => 'https://cloud.uwe.co',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '***** REMOVED *****',
  'installed' => true,
  'mail_domain' => 'cloud.uwe.do',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'cloud',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpsecure' => 'tls',
  'mail_smtphost' => '***** REMOVED *****',
  'mail_smtpport' => '587',
  'mail_smtpname' => '***** REMOVED *****',
  'mail_smtppassword' => '***** REMOVED *****',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache log in /var/snap/nextcloud/current/apache/logs/error_log:

[Wed Jul 15 14:43:37.048587 2020] [proxy_fcgi:error] [pid 3090:tid 139998342932224] [client 64.225.39.204:48798] AH01071: Got error 'Primary script unknown'
[Wed Jul 15 14:43:38.187039 2020] [proxy_fcgi:error] [pid 3090:tid 139998317754112] [client 64.225.39.204:48854] AH01071: Got error 'Primary script unknown'
[Wed Jul 15 14:43:43.824267 2020] [proxy_fcgi:error] [pid 3090:tid 139998594582272] [client 64.225.39.204:49242] AH01071: Got error 'Primary script unknown'
[Wed Jul 15 14:43:44.941151 2020] [proxy_fcgi:error] [pid 3090:tid 139999148238592] [client 64.225.39.204:49304] AH01071: Got error 'Primary script unknown'
[Wed Jul 15 14:43:46.064896 2020] [proxy_fcgi:error] [pid 2378:tid 139999366317824] [client 64.225.39.204:49372] AH01071: Got error 'Primary script unknown'
[Wed Jul 15 14:43:47.199023 2020] [proxy_fcgi:error] [pid 3090:tid 139998342932224] [client 64.225.39.204:49420] AH01071: Got error 'Primary script unknown'
[Wed Jul 15 16:43:53.629753 2020] [proxy_fcgi:error] [pid 9959:tid 139999518963456] (70008)Partial results are valid but processing is incomplete: [client 37.209.50.19:65010] AH01075: Error dispatching request to : (reading input brigade)
[Wed Jul 15 16:56:13.672141 2020] [core:error] [pid 3090:tid 139999139845888] [client 159.65.121.162:40488] AH00126: Invalid URI in request ''/xui/common/images/bg_status.php'' 'GET '/xui/common/images/bg_status.php' HTTP/1.1'
[Thu Jul 16 14:15:34.868015 2020] [proxy_fcgi:error] [pid 2378:tid 139999408281344] [client 137.74.206.80:41304] AH01071: Got error 'Primary script unknown', referer: http://cloud.uwe.co/wp-login.php
[Thu Jul 16 14:16:00.382606 2020] [proxy_fcgi:error] [pid 9959:tid 139999374710528] [client 37.59.52.44:43264] AH01071: Got error 'Primary script unknown', referer: http://cloud.uwe.co/wp-login.php
[Fri Jul 17 18:32:17.727271 2020] [proxy_fcgi:error] [pid 2377:tid 139999416674048] (104)Connection reset by peer: [client 37.209.50.19:61357] AH01075: Error dispatching request to : (reading input brigade)
[Fri Jul 17 18:34:59.976028 2020] [proxy_fcgi:error] [pid 9959:tid 139999265605376] (70008)Partial results are valid but processing is incomplete: [client 37.209.50.19:61369] AH01075: Error dispatching request to : (reading input brigade)
[Sat Jul 18 13:53:06.442769 2020] [ssl:error] [pid 2376:tid 139999425066752] [client 54.196.169.228:46638] AH02042: rejecting client initiated renegotiation
[Sat Jul 18 17:51:18.041919 2020] [mpm_event:notice] [pid 2372:tid 139999619616768] AH00491: caught SIGTERM, shutting down
[Sat Jul 18 17:52:11.859642 2020] [ssl:warn] [pid 2484:tid 139839097389056] AH01909: ip-172-31-42-7.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jul 18 17:52:11.863999 2020] [ssl:warn] [pid 2484:tid 139839097389056] AH01909: ip-172-31-42-7.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jul 18 17:52:11.865126 2020] [mpm_event:notice] [pid 2484:tid 139839097389056] AH00489: Apache/2.4.43 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Sat Jul 18 17:52:11.865148 2020] [core:notice] [pid 2484:tid 139839097389056] AH00094: Command line: 'httpd -d /snap/nextcloud/21796 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Sat Jul 18 17:52:11.868613 2020] [unixd:alert] [pid 2488:tid 139839097389056] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Jul 18 17:52:11.868621 2020] [unixd:alert] [pid 2489:tid 139839097389056] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Jul 18 17:52:11.869051 2020] [unixd:alert] [pid 2490:tid 139839097389056] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Jul 18 17:52:28.884859 2020] [unixd:alert] [pid 3204:tid 139839097389056] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Jul 18 18:47:58.129781 2020] [mpm_event:notice] [pid 2484:tid 139839097389056] AH00491: caught SIGTERM, shutting down
[Sat Jul 18 18:48:52.982763 2020] [ssl:warn] [pid 2357:tid 140665214353408] AH01909: ip-172-31-42-7.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jul 18 18:48:52.987047 2020] [ssl:warn] [pid 2357:tid 140665214353408] AH01909: ip-172-31-42-7.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jul 18 18:48:52.988167 2020] [mpm_event:notice] [pid 2357:tid 140665214353408] AH00489: Apache/2.4.43 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Sat Jul 18 18:48:52.988194 2020] [core:notice] [pid 2357:tid 140665214353408] AH00094: Command line: 'httpd -d /snap/nextcloud/21796 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Sat Jul 18 18:48:52.991200 2020] [unixd:alert] [pid 2361:tid 140665214353408] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Jul 18 18:48:52.992058 2020] [unixd:alert] [pid 2362:tid 140665214353408] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Jul 18 18:48:52.992242 2020] [unixd:alert] [pid 2363:tid 140665214353408] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Jul 18 18:49:01.999481 2020] [unixd:alert] [pid 3073:tid 140665214353408] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sun Jul 19 12:21:07.937830 2020] [mpm_event:notice] [pid 2357:tid 140665214353408] AH00491: caught SIGTERM, shutting down
[Sun Jul 19 12:22:02.458395 2020] [ssl:warn] [pid 2622:tid 140091765301248] AH01909: ip-172-31-42-7.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jul 19 12:22:02.463629 2020] [ssl:warn] [pid 2622:tid 140091765301248] AH01909: ip-172-31-42-7.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jul 19 12:22:02.464847 2020] [mpm_event:notice] [pid 2622:tid 140091765301248] AH00489: Apache/2.4.43 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Jul 19 12:22:02.464870 2020] [core:notice] [pid 2622:tid 140091765301248] AH00094: Command line: 'httpd -d /snap/nextcloud/21796 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Sun Jul 19 12:22:02.468430 2020] [unixd:alert] [pid 2627:tid 140091765301248] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sun Jul 19 12:22:02.468432 2020] [unixd:alert] [pid 2626:tid 140091765301248] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sun Jul 19 12:22:02.468716 2020] [unixd:alert] [pid 2628:tid 140091765301248] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sun Jul 19 12:22:21.486912 2020] [unixd:alert] [pid 3393:tid 140091765301248] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive

The output of your PHP error log in /var/snap/nextcloud/current/apache/logs/php_errors.log:

[16-Jul-2020 09:08:20 UTC] PHP Fatal error:  Uncaught RedisException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configure
Stack trace:
#0 /snap/nextcloud/21796/htdocs/lib/private/Memcache/Redis.php(129): Redis->decrBy('8f52c3b0c4c32ca...', 1)
#1 /snap/nextcloud/21796/htdocs/lib/private/Lock/MemcacheLockingProvider.php(101): OC\Memcache\Redis->dec('files/7cdfe0cd3...')
#2 /snap/nextcloud/21796/htdocs/lib/private/Lock/AbstractLockingProvider.php(121): OC\Lock\MemcacheLockingProvider->releaseLock('files/7cdfe0cd3...', 1)
#3 [internal function]: OC\Lock\AbstractLockingProvider->releaseAll()
#4 {main}
  thrown in /snap/nextcloud/21796/htdocs/lib/private/Memcache/Redis.php on line 129
[16-Jul-2020 09:08:21 UTC] PHP Fatal error:  Uncaught RedisException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configure
Stack trace:
#0 /snap/nextcloud/21796/htdocs/lib/private/Memcache/Redis.php(129): Redis->decrBy('8f52c3b0c4c32ca...', 1)
#1 /snap/nextcloud/21796/htdocs/lib/private/Lock/MemcacheLockingProvider.php(101): OC\Memcache\Redis->dec('files/7cdfe0cd3...')
#2 /snap/nextcloud/21796/htdocs/lib/private/Lock/AbstractLockingProvider.php(121): OC\Lock\MemcacheLockingProvider->releaseLock('files/7cdfe0cd3...', 1)
#3 [internal function]: OC\Lock\AbstractLockingProvider->releaseAll()
#4 {main}
  thrown in /snap/nextcloud/21796/htdocs/lib/private/Memcache/Redis.php on line 129
2 Likes

Have similar issue as you but like the others in this reddit post its 2GB. Also just as they mention, no problem with desktop, just on the ios app. I know it doesn’t solve your issue, but might give you a bit more insight into what is going on. @ios would be the one to handle this problem.

2 Likes

Seems that no Nextcloud guy is here on the forum to help resolving this.

Would posting as a Github issue be more straightforward?

My Nextcloud is behind a reverse proxy and I also have the problem that on iOS I can upload a file with only about 100 megabytes (anything above that limit ends with error 413), while on Android I can upload a 10 gigabyte file. And this on the same server and directory!
It looks like something is wrong with the iOS app.

1 Like

I opened a issue on GitHub. I have the same problem.

https://github.com/nextcloud/ios/issues/1388

1 Like

Related issue: