Errors when uploading/downloading photos/videos from iOS

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version _18.0.3
Operating system and version _Ubuntu 18.4.3
Apache or nginx version _NGINX 1.14.0
PHP version _7.2.24
iPad iOS version_13.4.1
iPhone iOS version 13.3.1
Nextcloud iOS App verion_2.25.9.2

The issue you are facing:
When uploading large counts of photos from iOS devicve, I receive a WebDav Resource Locked error. Many photos end up not uploading. I disabled file locking on the server and that resolved that error, but i do not know what the implications are from having that disabled.

When downloading many photos to an iOS photo album, i receive what appears to be an error, which will be shown with a screenshot. I can confirm that some photos do not download. I have tried with smaller batches of 10-15 photos, as well as over 1,000. I still get the error, and some photos do not download.

IMG_7301.PNG

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

Steps to replicate the upload issue

  1. Enable Auto Upload in the iOS app.
  2. Select auto upload folder
  3. Choose auto upload all photos
  4. Select Upload the whole camera roll
  5. Watch the errors start popping up one after another.

Steps to replicate the download issue

  1. Select the folder you want to download photos from in the app
  2. Select the photos you wish to download.
  3. Select Save images and videos to photo album
  4. Watch the errors start popping up.

The output of your Nextcloud log in Admin > Logging: these are the 3 most recent. The bottom one happens over and over.

{"reqId":"ygu2qrQfRVjv8CyAN3aK","level":2,"time":"2020-04-20T06:29:11+00:00","remoteAddr":"10.2.20.100","user":"admin","app":"appstoreFetcher","method":"GET","url":"/apps/serverinfo/update","message":"Could not connect to appstore: cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to apps.nextcloud.com:443  (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36","version":"18.0.3.0","id":"5e9dd4879a588"}

{"reqId":"fj6FFKCt7tY7oBlhaEar","level":2,"time":"2020-04-20T05:18:50+00:00","remoteAddr":"10.2.20.100","user":"admin","app":"appstoreFetcher","method":"GET","url":"/apps/serverinfo/update","message":"Could not connect to appstore: cURL error 28: Operation timed out after 10000 milliseconds with 1842688 out of 4709986 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36","version":"18.0.3.0","id":"5e9dd4879a5be"}

{"reqId":"XpfCCljzyGw47HxZ5TZl","level":2,"time":"2020-04-20T05:18:40+00:00","remoteAddr":"10.2.20.100","user":"admin","app":"appstoreFetcher","method":"GET","url":"/apps/serverinfo/update","message":"Could not connect to appstore: cURL error 28: Connection timed out after 10001 milliseconds (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36","version":"18.0.3.0","id":"5e9dd4879a5df"}

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

<?php
$CONFIG = array (
  'instanceid' => 'oc7dwx5ik9z4',
  'passwordsalt' => ************************',
  'secret' => '******************************************',
  'trusted_domains' =>
  array (
    0 => '192.168.1.10',
    1 => 'mydomain.com',
  ),
  'datadirectory' => '/storagepool/windowsshare1',
  'dbtype' => 'mysql',
  'version' => '18.0.3.0',
  'overwrite.cli.url' => 'https://192.168.1.10',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '*********',
  'dbpassword' => '***************',
  'installed' => true,
  'skeletondirectory' => '',
  'mysql.utf8mb4' => true,
  'maintenance' => false,
  'memcache.local' => '\OC\Memcache\APCu',
  'memcache.locking' => '\OC\Memcache\Redis',
  'filelocking.enabled' => false,
  'memcache.distributed' => '\OC\Memcache\Redis',
  'redis' => [
  'host' => 'localhost',
  'port' => 6379,
  ]
);

The output of your Apache/nginx/system log in /var/log/____:I do not have a System log. I am posting the Nextcloud.error instead. Please advise if there is a different log i need, or if i need to enable something for the correct logs to be generated. There have been no errors in the last 4 days in this log, but i have been doing all of my uploading/downloading testing over the last 2 days, so those errors are not contained in here.

2020/04/13 13:39:02 [error] 1232#1232: *18 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 315857416 bytes) in /usr/share/nginx/nextcloud/lib/private/Installer.php on line 285" while reading response header from upstream, client: 192.168.1.5, server: mydomain.com, request: "POST /settings/apps/enable HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "192.168.1.10"
2020/04/13 13:39:12 [error] 1232#1232: *18 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Cannot declare class OCA\Talk\Migration\Version2000Date20170707093535, because the name is already in use in /usr/share/nginx/nextcloud/apps/spreed/lib/Migration/Version2000Date20170707093535.php on line 127" while reading response header from upstream, client: 192.168.1.5, server: mydomain.com, request: "POST /settings/apps/enable HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "192.168.1.10"
2020/04/13 18:13:56 [crit] 1328#1328: *119 SSL_do_handshake() failed (SSL: error:1420918C:SSL routines:tls_early_post_process_client_hello:version too low) while SSL handshaking, client: 64.41.200.108, server: 0.0.0.0:443
2020/04/13 18:13:59 [crit] 1328#1328: *129 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 64.41.200.108, server: 0.0.0.0:443
2020/04/13 18:57:59 [crit] 2478#2478: *409 SSL_do_handshake() failed (SSL: error:1420918C:SSL routines:tls_early_post_process_client_hello:version too low) while SSL handshaking, client: 208.93.152.4, server: 0.0.0.0:443
2020/04/13 18:58:03 [crit] 2478#2478: *413 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 208.93.152.4, server: 0.0.0.0:443
2020/04/14 03:54:57 [crit] 2643#2643: *719 SSL_do_handshake() failed (SSL: error:1420918C:SSL routines:tls_early_post_process_client_hello:version too low) while SSL handshaking, client: 184.105.247.194, server: 0.0.0.0:443
2020/04/14 04:41:42 [error] 2643#2643: *737 access forbidden by rule, client: SomePublicIP, server: mydomain.com, request: "GET /console HTTP/1.1", host: "MyPublicIP"
2020/04/14 12:32:05 [error] 2643#2643: *813 access forbidden by rule, client: SomePublicIP, server: mydomain.com, request: "GET /console HTTP/1.1", host: "MyPublicIP"
2020/04/15 01:19:14 [error] 2643#2643: *1760 upstream timed out (110: Connection timed out) while reading response header from upstream, client: SomePublicIP, server: mydomain.com, request: "PROPFIND /remote.php/webdav HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "mydomain.com"
2020/04/15 01:19:18 [error] 2643#2643: *1760 upstream timed out (110: Connection timed out) while reading response header from upstream, client: SomePublicIP, server: mydomain.com, request: "PROPFIND /remote.php/webdav/Jenn's%20iPhone HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "mydomain.com"
2020/04/15 01:19:21 [error] 2643#2643: *1760 upstream timed out (110: Connection timed out) while reading response header from upstream, client: SomePublicIP, server: mydomain.com, request: "PROPFIND /remote.php/webdav HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "mydomain.com"
2020/04/15 01:19:27 [error] 2643#2643: *1340 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.5, server: mydomain.com, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "mydomain.com"
2020/04/15 02:28:20 [error] 2643#2643: *2110 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.5, server: mydomain.com, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "mydomain.com"
2020/04/15 02:28:50 [error] 2643#2643: *2110 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.5, server: mydomain.com, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "mydomain.com"
2020/04/15 02:29:20 [error] 2643#2643: *2110 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.5, server: mydomain.com, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "mydomain.com"
2020/04/15 02:29:20 [error] 2643#2643: *2110 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.5, server: mydomain.com, request: "GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2F HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "mydomain.com"
2020/04/15 02:51:53 [error] 2643#2643: *3491 upstream timed out (110: Connection timed out) while sending request to upstream, client: SomePublicIP, server: mydomain.com, request: "PUT /remote.php/webdav/Jenn%27s%20iPhone/20-03-28%2019-50-54%200195.mov HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "mydomain.com"
2020/04/15 03:00:20 [error] 2643#2643: *3517 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.5, server: mydomain.com, request: "GET /csrftoken HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "mydomain.com"
2020/04/15 04:41:43 [crit] 2643#2643: *5347 SSL_do_handshake() failed (SSL: error:1420918C:SSL routines:tls_early_post_process_client_hello:version too low) while SSL handshaking, client: SomePublicIP, server: 0.0.0.0:443
2020/04/15 06:11:40 [crit] 2643#2643: *5355 SSL_do_handshake() failed (SSL: error:1420918C:SSL routines:tls_early_post_process_client_hello:version too low) while SSL handshaking, client: SomePublicIP, server: 0.0.0.0:443
2020/04/15 09:40:21 [error] 2643#2643: *5393 access forbidden by rule, client: SomePublicIP, server: mydomain.com, request: "GET /console HTTP/1.1", host: "MyPublicIP"
2020/04/15 12:37:33 [crit] 2643#2643: *5408 connect() to unix:/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.5, server: mydomain.com, request: "GET /apps/serverinfo/update HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "mydomain.com"
2020/04/15 12:37:34 [crit] 2643#2643: *5408 connect() to unix:/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.5, server: mydomain.com, request: "GET /apps/serverinfo/update HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "mydomain.com"
2020/04/15 21:17:32 [error] 1309#1309: *901 access forbidden by rule, client: SomePublicIP, server: mydomain.com, request: "GET /console HTTP/1.1", host: "MyPublicIP"
2020/04/15 22:30:10 [error] 1309#1309: *1048 access forbidden by rule, client: SomePublicIP, server: mydomain.com, request: "GET /console HTTP/1.1", host: "MyPublicIP"
2020/04/16 00:52:34 [crit] 1309#1309: *1376 SSL_do_handshake() failed (SSL: error:1420918C:SSL routines:tls_early_post_process_client_hello:version too low) while SSL handshaking, client: SomePublicIP, server: 0.0.0.0:443
2020/04/16 01:05:32 [error] 1309#1309: *1410 access forbidden by rule, client: SomePublicIP, server: mydomain.com, request: "GET /console HTTP/1.1", host: "MyPublicIP"
2020/04/16 02:44:19 [error] 1309#1309: *1648 access forbidden by rule, client: SomePublicIP, server: mydomain.com, request: "GET /.git/HEAD HTTP/1.0", host: "mydomain.com"
2020/04/16 02:44:20 [error] 1309#1309: *1650 access forbidden by rule, client: SomePublicIP, server: mydomain.com, request: "GET /.git/HEAD HTTP/1.0", host: "mydomain.com"
2020/04/16 02:44:21 [error] 1309#1309: *1653 access forbidden by rule, client: SomePublicIP, server: mydomain.com, request: "GET /.env HTTP/1.0", host: "mydomain.com"
2020/04/16 02:44:22 [error] 1309#1309: *1655 access forbidden by rule, client: SomePublicIP, server: mydomain.com, request: "GET /.env HTTP/1.0", host: "mydomain.com"
2020/04/16 02:47:31 [error] 1309#1309: *1663 access forbidden by rule, client: SomePublicIP, server: mydomain.com, request: "GET /.git/HEAD HTTP/1.0", host: "mydomain.com"