Photos not displaying correctly

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 (29.0.6)
Operating system and version (Docker 27.2.0 on Debian 12)
nginx version (2.11.3)
PHP version (8.2.23)

The issue you are facing: Photos display correctly as thumbnails as either a list or as a grid, but when clicking on a single photo to enlarge it, nextcloud opens about 3 photos that I can scroll through and are all enlarged by a huge amount to where you can’t tell what photo you’re looking at. This happens on a web interface on both desktop and mobile devices. The mobile nextcloud app works without issue. Before I updated my docker image of nextcloud and while running v29.0.3 (I think) everything worked fine. As soon as I updated to the latest version I started having this issue.

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

Steps to replicate it:

  1. Log-in to web based nextcloud through domain
  2. Navigate to a folder with photos
  3. Click on any one given photo

The output of your Nextcloud log in Admin > Logging:

Debug	logreader	
Updating AppConfig: shownLevels => [2,3,4,0]

"Sep 6, 2024, 1:07:27 AM"	

Debug	logreader	
Updating AppConfig: shownLevels => [2,3,4,1]

"Sep 6, 2024, 1:07:27 AM"	

Warning	no app in context	
ConnectException
cURL error 28: Operation timed out after 30000 milliseconds with 2287902 out of 8237536 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://download.nextcloud.com/server/apps/photos/cities1000.zip
issue while running UpdateSingleMetadata

"Sep 6, 2024, 1:01:05 AM"	

Warning	no app in context	
ConnectException
cURL error 28: Operation timed out after 30000 milliseconds with 2287902 out of 8237536 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://download.nextcloud.com/server/apps/photos/cities1000.zip
issue while running UpdateSingleMetadata

"Sep 6, 2024, 1:01:05 AM"	

Warning	no app in context	
ConnectException
cURL error 28: Operation timed out after 30000 milliseconds with 2383902 out of 8237536 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://download.nextcloud.com/server/apps/photos/cities1000.zip
issue while running UpdateSingleMetadata

"Sep 6, 2024, 1:00:38 AM"	

Warning	no app in context	
ConnectException
cURL error 28: Operation timed out after 30000 milliseconds with 2383902 out of 8237536 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://download.nextcloud.com/server/apps/photos/cities1000.zip
issue while running UpdateSingleMetadata

"Sep 6, 2024, 1:00:38 AM"	

Warning	no app in context	
ConnectException
cURL error 28: Operation timed out after 30000 milliseconds with 2383902 out of 8237536 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://download.nextcloud.com/server/apps/photos/cities1000.zip
issue while running UpdateSingleMetadata

"Sep 6, 2024, 1:00:38 AM"	

Warning	no app in context	
ConnectException
cURL error 28: Operation timed out after 30000 milliseconds with 2447902 out of 8237536 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://download.nextcloud.com/server/apps/photos/cities1000.zip
issue while running UpdateSingleMetadata

"Sep 6, 2024, 12:54:58 AM"	

Warning	no app in context	
ConnectException
cURL error 28: Operation timed out after 30000 milliseconds with 2447902 out of 8237536 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://download.nextcloud.com/server/apps/photos/cities1000.zip
issue while running UpdateSingleMetadata

"Sep 6, 2024, 12:54:58 AM"	

Warning	no app in context	
ConnectException
cURL error 28: Operation timed out after 30000 milliseconds with 2447902 out of 8237536 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://download.nextcloud.com/server/apps/photos/cities1000.zip
issue while running UpdateSingleMetadata

"Sep 6, 2024, 12:54:58 AM"	

Warning	no app in context	
ConnectException
cURL error 28: Operation timed out after 30000 milliseconds with 5207902 out of 8237536 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://download.nextcloud.com/server/apps/photos/cities1000.zip
issue while running UpdateSingleMetadata

"Sep 6, 2024, 12:49:51 AM"

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

-----------------

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

-----------------

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

Error	core	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-database failed: Name or service not known
Exception thrown: Doctrine\DBAL\Exception

"Sep 5, 2024, 10:35:04 PM"	

Error	core	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-database failed: Name or service not known
Exception thrown: Doctrine\DBAL\Exception

"Sep 5, 2024, 10:35:04 PM"	

Error	index	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-database failed: Name or service not known

"Sep 5, 2024, 10:35:04 PM"	

Error	core	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-database failed: Name or service not known
Exception thrown: Doctrine\DBAL\Exception

"Sep 5, 2024, 10:35:04 PM"	

Error	core	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-database failed: Name or service not known
Exception thrown: Doctrine\DBAL\Exception

"Sep 5, 2024, 10:35:04 PM"	

Error	index	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-database failed: Name or service not known

"Sep 5, 2024, 10:35:04 PM"	

Error	core	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-database failed: Name or service not known
Exception thrown: Doctrine\DBAL\Exception

"Sep 5, 2024, 10:35:04 PM"	

Error	core	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-database failed: Name or service not known
Exception thrown: Doctrine\DBAL\Exception

"Sep 5, 2024, 10:35:04 PM"