NC 27 - Files not shown in WebUI

The web UI of Nextcloud would not show any files and is stuck on the loading indicator.
When looking into the browser logs I get this error message:

Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating ‘n.propStat.length’)

Debugging the error location gives me the following result:

Here somehow the response variable is not correctly set!

The xml file, which is parsed in this function is pulled from SERVER/remote.php/dav/files/test/:

<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
    <d:response>
        <d:href>/remote.php/dav/files/test/</d:href>
        <d:propstat>
            <d:prop>
                <d:getlastmodified>Fri, 02 Feb 2024 15:14:50 GMT</d:getlastmodified>
                <d:getetag>&quot;9b265c3b2ade1491446f04b5d9615b78&quot;</d:getetag>
                <d:resourcetype>
                    <d:collection/>
                </d:resourcetype>
                <oc:fileid>7</oc:fileid>
                <oc:permissions>GDNVCK</oc:permissions>
                <oc:size>227817486229</oc:size>
                <d:quota-available-bytes>-3</d:quota-available-bytes>
                <nc:has-preview>false</nc:has-preview>
                <nc:mount-type></nc:mount-type>
                <nc:is-encrypted>0</nc:is-encrypted>
                <x1:share-permissions xmlns:x1="http://open-collaboration-services.org/ns">15</x1:share-permissions>
                <nc:share-attributes>[]</nc:share-attributes>
                <oc:tags/>
                <oc:favorite>0</oc:favorite>
                <nc:system-tags/>
                <oc:owner-id>test</oc:owner-id>
                <oc:owner-display-name>Test</oc:owner-display-name>
                <oc:share-types/>
            </d:prop>
            <d:status>HTTP/1.1 200 OK</d:status>
        </d:propstat>
        <d:propstat>
            <d:prop>
                <d:getcontenttype/>
                <d:getcontentlength/>
            </d:prop>
            <d:status>HTTP/1.1 404 Not Found</d:status>
        </d:propstat>
    </d:response>
...

It’s a valid xml file.
Why is my Nextcloud instance broken? The problem appeared out of the blue.
I also tried updating Nextcloud and installing it from scratch.
iOS App is working fine and showing all files. Also everything else of Nextcloud is working fine (Settings, Fotos App, App Configuration, …) Just everything in the files app is broken.

Browser: Safari / Chrome
OS: MacOS
Version: 27.1.6.2

Could anyone help me, why my nextcloud instance is broken and will not work anymore?

@emajagroutiptinv - Sorry I can’t help you because I have the same issue. And I am using 28.0.2, which makes it appear that this issue isn’t just in your version of Nextcloud. I can access some files on some of my external disks, but I can’t access other files and folders on the same disks. I’ve checked the permissions and there are the same permissions on files in folders that I can access as there are on other files in the same folders that don’t appear in the Files listing in Nextcloud. Have others come across this issue before? I’ve been using Nextcloud for quite a few years now on the same RPI4 and the same USB-attached disks as are now showing this issue. And this issue has never appeared before.

My issue has been resolved. It appears to be some database corruption, which I fixed by running occ files:scan. This returned all lost files to the Web gui.

Unfortunately my problem is not resolved with this step. I already did that but still getting the same result on the UI