Support intro
Sorry to hear you’re facing problems
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
Nextcloud version (eg, 20.0.5): 25.0.0
Operating system and version (eg, Ubuntu 20.04): Raspbian 10 Docker
Apache or nginx version (eg, Apache 2.4.25): included
PHP version (eg, 7.4): included
I am using the nextcloud:latest image from docker hub.
The issue you are facing:
I get the message This directory is unavailable, please check the logs or contact the administrator
when opening the files tab. I also can not see any files.
Used space is correctly shown in the bottom left and occ files:scan --all
returns a number that seems reasonable.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
Honestly… no idea. I just upgraded from Version 24.x to 25.0.0
The output of your Nextcloud log in Admin > Logging:
[webdav] Error: TypeError: OCA\DAV\Connector\Sabre\FilesPlugin::OCA\DAV\Connector\Sabre\{closure}(): Return value must be of type ?int, float returned at <<closure>>
0. /var/www/html/3rdparty/sabre/dav/lib/DAV/PropFind.php line 95
OCA\DAV\Connector\Sabre\FilesPlugin->OCA\DAV\Connector\Sabre\{closure}("*** sensitive parameters replaced ***")
1. /var/www/html/apps/dav/lib/Connector/Sabre/FilesPlugin.php line 356
Sabre\DAV\PropFind->handle("{http://owncloud.org/ns}size", Closure {})
2. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
OCA\DAV\Connector\Sabre\FilesPlugin->handleGetProperties(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {})
3. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 1052
Sabre\DAV\Server->emit("propFind", [Sabre\DAV\PropF ... }])
4. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 984
Sabre\DAV\Server->getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {})
5. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
Sabre\DAV\Server->getPropertiesIteratorForPath("files/david", ["{DAV:}getlastm ... "], 1)
6. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
Sabre\DAV\Server->writeMultiStatus(Sabre\Xml\Writer ... ]}, Generator {}, false)
7. /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
8. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
9. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 472
Sabre\DAV\Server->emit("method:PROPFIND", [Sabre\HTTP\Requ ... }])
10. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 253
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
11. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 321
Sabre\DAV\Server->start()
12. /var/www/html/apps/dav/lib/Server.php line 360
Sabre\DAV\Server->exec()
13. /var/www/html/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
14. /var/www/html/remote.php line 167
require_once("/var/www/html/a ... p")
PROPFIND /remote.php/dav/files/david/
from 172.18.0.4 by david at 2022-10-24T22:11:46+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'trusted_proxies' =>
array (
0 => '127.0.0.1',
),
'overwritehost' => 'my.cool.domain',
'overwriteprotocol' => 'https',
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'instanceid' => 'ocuc8455g6x2',
'passwordsalt' => 'SEzHnVTqv7Im55SqUFPUEW/n81kmOr',
'secret' => 'vtdTbEe7snNxG+Sizde+2VSEN++RoVMxqaQ6hM9n2Sou7xn+',
'trusted_domains' =>
array (
0 => 'my.cool.domain',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '25.0.0.18',
'overwrite.cli.url' => 'https://my.cool.domain',
'dbname' => 'nextcloud',
'dbhost' => 'mariaDB:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'oc_david',
'dbpassword' => 'TbLrleZ2MeVgJPq6WOoSCU3fiG0TDb',
'installed' => true,
'check_data_directory_permissions' => false,
'maintenance' => false,
'theme' => '',
'loglevel' => 0,
'app_install_overwrite' =>
array (
0 => 'unsplash',
),
);
Errors in admin panel: https://dude-this-is-a-very.questionable.link/5LeOox0Uf.png (This is a sharex image hoster)
Edit: I am also geting this https://questionable.link/5LePLx2ih.png warning in the admin overview which leads me to assume that there might be a problem with file permissions. I have no idea however on how I would fix these (as I can’t chown
to a user that lives inside a docker container from my host machine).