Cannot access deleted files (trash can)

Hi folks, I have a new (few weeks) installation of Nextcloud running on a 128GB SSD, installed using NextcloudPi.

Nextcloud version	21.0.1.1
NextCloudPi version	v1.35.0

I’m unable to access the deleted files, i.e., trash can. When I try to, I get the following error message:

"This directory is unavailable, please check the logs or contact the administrator"

I’m including info from the logfile below; I’m afraid I don’t really know how to interpret it. Any advice or assistance in solving this would be greatly appreciated!

Nextcloud version: 21.0.1.1
Operating system and version (eg, Ubuntu 20.04): Raspberry Pi OS Buster [latest updates]
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.38 (Raspbian)
PHP version (eg, 7.4): PHP 7.3.27-1~deb10u1

The output of my Nextcloud log in Admin > Logging:

[webdav] Fatal: TypeError: Return value of OCA\Files_Trashbin\Sabre\AbstractTrash::getSize() must be of the type int, float returned at <<closure>>

 0. /var/www/nextcloud/apps/files_trashbin/lib/Sabre/PropfindPlugin.php line 85
    OCA\Files_Trashbin\Sabre\AbstractTrash->getSize()
 1. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php line 95
    OCA\Files_Trashbin\Sabre\PropfindPlugin->OCA\Files_Trashbin\Sabre\{closure}("*** sensitive parameters replaced ***")
 2. /var/www/nextcloud/apps/files_trashbin/lib/Sabre/PropfindPlugin.php line 86
    Sabre\DAV\PropFind->handle("{http://owncloud.org/ns}size", Closure {})
 3. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    OCA\Files_Trashbin\Sabre\PropfindPlugin->propFind(Sabre\DAV\PropFind {}, OCA\Files_Trashbin\Sabre\TrashFile {})
 4. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1052
    Sabre\DAV\Server->emit("propFind", [Sabre\DAV\PropF ... }])
 5. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 984
    Sabre\DAV\Server->getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\Files_Trashbin\Sabre\TrashFile {})
 6. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1661
    Sabre\DAV\Server->getPropertiesIteratorForPath("trashbin/madman/trash", ["{http://nextcl ... "], 1)
 7. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1646
    Sabre\DAV\Server->writeMultiStatus(Sabre\Xml\Writer ... ]}, Generator {}, false)
 8. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
    Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
 9. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
10. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit("method:PROPFIND", [Sabre\HTTP\Requ ... }])
11. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
12. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
13. /var/www/nextcloud/apps/dav/lib/Server.php line 332
    Sabre\DAV\Server->exec()
14. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
15. /var/www/nextcloud/remote.php line 167
    require_once("/var/www/nextcl ... p")

Looks similar too

NCP 1.35.0 is still at NC 20.0.8.
How did you update to NC21? Native NC or NCP updater?

I updated using the native NC updater. But I was seeing the problem before that (i.e., when I was using the NCP-installed version); I was hoping that updating NC might solve the problem.

Is the conventional wisdom just to let NCP make the update decisions? I think I have a lot more confidence in @nachoparker’s judgement than the NC dev team’s :smiley:

Yes, for NCP users in general.
Also in general, and in my experience, upgrading does not fix system issues.
Anything else you tried? I’d try disabling apps one by one.
Got any errors from apps or in NC’s admin>overview?
To help devs, can maybe post output of ncp-report via link to pastebin service or txt file.