Problem opening pictures folder on Nextcloud IOS App

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 (eg, 20.0.5): 22.1.1
Operating system and version (eg, Ubuntu 20.04): TrueNAS-12.0-U5.1
Apache or nginx version (eg, Apache 2.4.25): nginx/1.20.1
PHP version (eg, 7.4): PHP 7.4.23

The issue you are facing:

I use nextcloud to automatically upload the pictures of my iphone.
When i open the pictures folder, i see the uploaded pictures that were uploaded a few moments ago, but not the older pictures.
Another thing that happens is, that nextcloud has alot of cpu usage ranging from 50-100%.
This lasts for about a minute.

In the browser on my pc all pictures are shown as normal.

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

Steps to replicate it:

  1. Open Nextcloud ios app
  2. Navigate to pictures folder

The output of your Nextcloud log in Admin > Logging:

Info	no app in context	Deprecated event type for OCP\IDBConnection::CHECK_MISSING_COLUMNS: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-09-12T08:57:28+0200
Info	no app in context	Deprecated event type for OCP\IDBConnection::CHECK_MISSING_INDEXES: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-09-12T08:57:27+0200
Info	no app in context	Deprecated event type for OCP\IDBConnection::CHECK_MISSING_PRIMARY_KEYS: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-09-12T08:57:26+0200
Info	no app in context	Deprecated event type for OCP\IDBConnection::CHECK_MISSING_COLUMNS: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-09-12T08:52:21+0200
Info	no app in context	Deprecated event type for OCP\IDBConnection::CHECK_MISSING_INDEXES: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-09-12T08:52:20+0200
Info	no app in context	Deprecated event type for OCP\IDBConnection::CHECK_MISSING_PRIMARY_KEYS: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-09-12T08:52:19+0200
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.password_policy.API.validate" as such route does not exist.	
2021-09-12T08:48:25+0200
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.password_policy.API.generate" as such route does not exist.	
2021-09-12T08:48:25+0200
Info	core	Trusted domain error. "192.241.214.68" tried to access using "ipaddress" as host.	
2021-09-12T08:48:25+0200
Info	no app in context	Deprecated event type for OCP\IDBConnection::CHECK_MISSING_COLUMNS: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-09-12T08:36:09+0200
Info	no app in context	Deprecated event type for OCP\IDBConnection::CHECK_MISSING_INDEXES: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-09-12T08:36:08+0200
Info	no app in context	Deprecated event type for OCP\IDBConnection::CHECK_MISSING_PRIMARY_KEYS: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-09-12T08:36:05+0200

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

<?php
$CONFIG = array (
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
    1 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps-pkg',
      'url' => '/apps-pkg',
      'writable' => true,
    ),
  ),
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'passwordsalt' => 'removed',
  'secret' => 'removed',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '192.168.178.155',
    2 => 'nextcloud.mydomain.de',
    3 => 'cloud.mydomain.de',
  ),
  'datadirectory' => '/usr/local/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '22.1.1.2',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_ncadmin',
  'dbpassword' => 'removed',
  'installed' => true,
  'instanceid' => 'removed',
  'theme' => '',
  'loglevel' => 1,
  'maintenance' => false,
);

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

2021/09/12 08:45:42 [warn] 100#101373: *35 an upstream response is buffered to a temporary file /var/tmp/nginx/fastcgi_temp/1/00/0000000001 while reading upstream, client: myipadress, server: *.mydomain.de, request: "GET /index.php/core/preview.png?file=Photos/21-09-10%2014-49-01%202487.jpg&x=1024&y=1024&a=1&mode=cover HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "nextcloud.mydomain.de:8443"
2021/09/12 08:45:43 [warn] 100#101373: *35 an upstream response is buffered to a temporary file /var/tmp/nginx/fastcgi_temp/2/00/0000000002 while reading upstream, client: myipadress, server: *.mydomain.de, request: "GET /index.php/core/preview.png?file=Photos/21-09-10%2015-00-39%202488.jpg&x=1024&y=1024&a=1&mode=cover HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "nextcloud.mydomain.de:8443"
2021/09/12 08:45:45 [warn] 100#101373: *35 an upstream response is buffered to a temporary file /var/tmp/nginx/fastcgi_temp/3/00/0000000003 while reading upstream, client: myipadress, server: *.mydomain.de, request: "GET /index.php/core/preview.png?file=Photos/21-09-10%2015-17-52%202490.jpg&x=1024&y=1024&a=1&mode=cover HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "nextcloud.mydomain.de:8443"
2021/09/12 08:45:46 [warn] 100#101373: *35 an upstream response is buffered to a temporary file /var/tmp/nginx/fastcgi_temp/4/00/0000000004 while reading upstream, client: myipadress, server: *.mydomain.de, request: "GET /index.php/core/preview.png?file=Photos/21-09-10%2017-43-33%202491.jpg&x=1024&y=1024&a=1&mode=cover HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "nextcloud.mydomain.de:8443"
2021/09/12 08:45:58 [warn] 100#101373: *35 an upstream response is buffered to a temporary file /var/tmp/nginx/fastcgi_temp/5/00/0000000005 while reading upstream, client: myipadress, server: *.mydomain.de, request: "GET /index.php/core/preview.png?file=Photos/21-09-10%2022-49-38%202495.jpg&x=1024&y=1024&a=1&mode=cover HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "nextcloud.mydomain.de:8443"
2021/09/12 08:46:03 [warn] 100#101373: *35 an upstream response is buffered to a temporary file /var/tmp/nginx/fastcgi_temp/6/00/0000000006 while reading upstream, client: myipadress, server: *.mydomain.de, request: "GET /index.php/core/preview.png?file=Photos/21-09-11%2000-52-23%202497.jpg&x=1024&y=1024&a=1&mode=cover HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "nextcloud.mydomain.de:8443"
2021/09/12 08:46:12 [warn] 100#101373: *35 an upstream response is buffered to a temporary file /var/tmp/nginx/fastcgi_temp/7/00/0000000007 while reading upstream, client: myipadress, server: *.mydomain.de, request: "GET /index.php/core/preview.png?file=Photos/21-09-11%2010-31-38%202502.jpg&x=1024&y=1024&a=1&mode=cover HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "nextcloud.mydomain.de:8443"
2021/09/12 08:46:12 [warn] 100#101373: *35 an upstream response is buffered to a temporary file /var/tmp/nginx/fastcgi_temp/8/00/0000000008 while reading upstream, client: myipadress, server: *.mydomain.de, request: "GET /index.php/core/preview.png?file=Photos/21-09-11%2012-00-29%202504.jpg&x=1024&y=1024&a=1&mode=cover HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "nextcloud.mydomain.de:8443"
2021/09/12 08:46:39 [error] 100#101373: *35 upstream timed out (60: Operation timed out) while reading response header from upstream, client: myipadress, server: *.mydomain.de, request: "PROPFIND /remote.php/webdav/Photos/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock", host: "nextcloud.mydomain.de:8443"
2021/09/12 08:46:47 [error] 100#101373: *35 upstream timed out (60: Operation timed out) while reading response header from upstream, client: myipadress, server: *.mydomain.de, request: "PROPFIND /remote.php/webdav/Photos/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock", host: "nextcloud.mydomain.de:8443"
2021/09/12 08:46:51 [warn] 100#101373: *35 an upstream response is buffered to a temporary file /var/tmp/nginx/fastcgi_temp/9/00/0000000009 while reading upstream, client: myipadress, server: *.mydomain.de, request: "GET /index.php/core/preview.png?file=Photos/21-09-11%2012-58-52%202509.jpg&x=1024&y=1024&a=1&mode=cover HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "nextcloud.mydomain.de:8443"