Photos app doesn't show any photos

Nextcloud version: 24.0.3
Operating system and version: Nextcloud VM (Ubuntu 20.04)
PHP version: 7.4.3

The issue you are facing:
Photos app doesn’t display photos:
image

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

Steps to replicate it:

  1. Install Nextcloud (i’m using the nextcloud VM)
  2. Open Photos app
  3. See no photos

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!):

{"reqId":"UWMmzoQggdjLjfaa6sbZ","level":2,"time":"2022-08-31T11:05:46-04:00","remoteAddr":"remote_ip_address","user":"username","app":"photos","method":"GET","url":"/apps/photos/api/v1/albums","message":"Controller OCA\\Photos\\Controller\\AlbumsController::myAlbums executed 325 queries.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0","version":"24.0.3.2","data":{"app":"photos"},"id":"630faa08af25d"}

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

[Wed Aug 31 12:01:27.632109 2022] [ssl:warn] [pid 188:tid 140706668674112] AH01909: hostname.home:443:0 server certificate does NOT include an ID which matches the server name
[Wed Aug 31 12:01:27.632851 2022] [mpm_event:notice] [pid 188:tid 140706668674112] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Wed Aug 31 12:01:27.632864 2022] [core:notice] [pid 188:tid 140706668674112] AH00094: Command line: '/usr/sbin/apache2'

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.

{"reqId":"2r5hZWZ3Aj0NXKm9MRR2","level":3,"time":"2022-08-31T12:42:47-04:00","remoteAddr":"143.244.47.77","user":"--","app":"PHP","method":"OPTIONS","url":"/remote.php/dav/principals/users/user/","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#208","userAgent":"iOS/15.6.1 (19G82) dataaccessd/1.0","version":"24.0.3.2","exception":{"Exception":"Error","Message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#208","Code":0,"Trace":[{"function":"onAll","class":"OC\\Log\\ErrorHandler","type":"::"},{"function":"session_start"},{"file":"/var/www/nextcloud/lib/private/Session/Internal.php","line":208,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Session/Internal.php","line":218,"function":"invoke","class":"OC\\Session\\Internal","type":"->"},{"file":"/var/www/nextcloud/lib/private/Session/Internal.php","line":106,"function":"startSession","class":"OC\\Session\\Internal","type":"->"},{"file":"/var/www/nextcloud/lib/private/Session/CryptoSessionData.php","line":149,"function":"clear","class":"OC\\Session\\Internal","type":"->"},{"file":"/var/www/nextcloud/lib/private/User/Session.php","line":928,"function":"clear","class":"OC\\Session\\CryptoSessionData","type":"->"},{"file":"/var/www/nextcloud/lib/private/User/Session.php","line":259,"function":"logout","class":"OC\\User\\Session","type":"->"},{"file":"/var/www/nextcloud/lib/private/User/Session.php","line":232,"function":"validateSession","class":"OC\\User\\Session","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":390,"function":"getUser","class":"OC\\User\\Session","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":122,"function":"getEnabledApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_User.php","line":127,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":727,"function":"setupBackends","class":"OC_User","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1104,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/remote.php","line":114,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":99,"CustomMessage":"--"},"id":"630fab1d95a39"}

occ config:list photos returns:

{
    "apps": {
        "photos": {
            "installed_version": "1.6.0",
            "types": "",
            "enabled": "yes"
        }
    }
}

To follow up here, the issue ended up being a hidden .noimage file which i must have added at some point in the past to get the photos app (previously gallery app) to ignore photos - not sure why i had that in my root directory! :man_facepalming: