Can't access nextcloud files

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:

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:

Hey when I try to access my next cloud files through the web interface I can’t get a list of them.
In the upper right corner the message This Directory is not available, please see the logs or contact your admin.
The log output could be found below.

I tried to repair with occ but maintenance:repair didn’t find any errors.
With occ files:scan I get the same error.

I tried to create a new next cloud instance and restoring a backup. But this leads to the same result.

So any ideas or help would be nice.

Nextcloud version (eg, 18.0.2): 20.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04.5 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 7.1): 7.3.25

The issue you are facing:

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

Steps to replicate it:

I don’t know how to reproduce this error. It happened from one day to another.

The output of your Nextcloud log in Admin > Logging:

[webdav] Fatal: OCP\Files\ForbiddenException: Sabre\HTTP\ClientHttpException:Forbidden at <<closure>>

 0. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/lib/private/Files/Storage/DAV.php line 290
    OC\Files\Storage\DAV->convertException(Sabre\HTTP\ClientHttpException {}, "#Recycle")
 1. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/lib/private/Files/Storage/DAV.php line 719
    OC\Files\Storage\DAV->propfind("#Recycle")
 2. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/lib/private/Files/Storage/Common.php line 703
    OC\Files\Storage\DAV->getPermissions("#Recycle")
 3. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/lib/private/Files/Storage/Common.php line 883
    OC\Files\Storage\Common->getMetaData("/#Recycle")
 4. <<closure>>
    OC\Files\Storage\Common->getDirectoryContent("")
 5. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/lib/private/Files/Cache/Scanner.php line 408
    iterator_to_array(Generator {})
 6. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/lib/private/Files/Cache/Scanner.php line 388
    OC\Files\Cache\Scanner->handleChildren("", false, 3, 17023, true, 0)
 7. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/lib/private/Files/Cache/Scanner.php line 340
    OC\Files\Cache\Scanner->scanChildren("", false, 3, 17023, true)
 8. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/lib/private/Files/View.php line 1345
    OC\Files\Cache\Scanner->scan("", false)
 9. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/lib/private/Files/View.php line 1389
    OC\Files\View->getCacheEntry(OCA\Files_Trashb ... l}, "", "/Office")
10. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 330
    OC\Files\View->getFileInfo("/dominic.warzok/files/Office", false)
11. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 805
    OCA\DAV\Connector\Sabre\Directory->getQuotaInfo()
12. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php line 96
    Sabre\DAV\CorePlugin->Sabre\DAV\{closure}("*** sensitive parameters replaced ***")
13. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 809
    Sabre\DAV\PropFind->handle("{DAV:}quota-available-bytes", Closure {})
14. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->propFind(Sabre\DAV\PropFind {}, OCA\DAV\Connector\Sabre\Directory {})
15. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1063
    Sabre\DAV\Server->emit("propFind", [Sabre\DAV\PropF ... }])
16. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 989
    Sabre\DAV\Server->getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\DAV\Connector\Sabre\Directory {})
17. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1678
    Sabre\DAV\Server->getPropertiesIteratorForPath("files/dominic.warzok", ["{DAV:}getlastm ... "], 1)
18. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1661
    Sabre\DAV\Server->writeMultiStatus(Sabre\Xml\Writer ... ]}, Generator {}, false)
19. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 363
    Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
20. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
21. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 474
    Sabre\DAV\Server->emit("method:PROPFIND", [Sabre\HTTP\Requ ... }])
22. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 251
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
23. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 319
    Sabre\DAV\Server->start()
24. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/apps/dav/lib/Server.php line 332
    Sabre\DAV\Server->exec()
25. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
26. /var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/remote.php line 167
    require_once("/var/www/vhosts ... p")

PROPFIND /nextcloud/remote.php/dav/files/dominic.warzok/
from 87.148.153.58 by dominic.warzok at 2021-01-07T14:12:53+00:00

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

<?php
$CONFIG = array (
  'instanceid' => 'myinstanceid',
  'passwordsalt' => 'myhash',
  'secret' => 'mysecret',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.warzok.net',
  ),
  'datadirectory' => '/var/www/vhosts/warzok.net/nextcloud.warzok.net/nextcloud/data',
  'overwrite.cli.url' => 'https://nextcloud.warzok.net/nextcloud',
  'dbtype' => 'mysql',
  'version' => '20.0.4.0',
  'dbname' => 'mydbname',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'mydbuser',
  'dbpassword' => 'mydbpassword',
  'installed' => true,
  'maintenance' => false,
  'loglevel' => 2,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'cloud',
  'mail_domain' => 'mysecretdomain,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'allow_user_to_change_display_name' => false,
  'skeletondirectory' => '',
  'theme' => '',
  'app_install_overwrite' =>
  array (
    0 => 'keeweb',
  ),
);

Hey I am a little step further solving my problem.

If I remove the External WebDAV folder the files could be scanned correctly.

So it seems the problem is with my external mounted web dab folders.

Does anyone has a suggestion how to solve the problem.

I don’t want to administrate a second Nextcloud instance on my local nas. Therefor I want to youse the WebDAV service my nas is providing.

Looks like your nas forbid the access? Maby the problem is your nas config