OCP\Files\ForbiddenException: Invalid path: /.htaccess at <<closure>>

Hello everyone!

At first sorry for my bad english.

Well, i have updated at weekend my nextcloud to v24 (beta) since this time, got always this message:

Der Server konnte die Anfrage nicht fertig stellen.

Sollte dies erneut auftreten, sende bitte die nachfolgenden technischen Einzelheiten an Deinen Server-Administrator.

Weitere Details können im Server-Protokoll gefunden werden.

Technische Details

  • Entfernte Adresse: myhomeip
  • R5ofGu8NhYDZ7za2Syab

in English it is like: The server cant finish the inquiry

sometimes i got a chance after a reboot of the server to get into the options so i have found there this error:

[no app in context] Fehler: OCP\Files\ForbiddenException: Invalid path: /.htaccess at <>

  1. /var/www/html/nextcloud/lib/private/Files/Storage/Local.php line 158
    OC\Files\Storage\Local->getSourcePath()
  2. /var/www/html/nextcloud/lib/private/Files/Storage/Local.php line 176
    OC\Files\Storage\Local->stat()
  3. /var/www/html/nextcloud/lib/private/Files/Storage/Common.php line 890
    OC\Files\Storage\Local->getMetaData()
  4. <>
    OC\Files\Storage\Common->getDirectoryContent()
  5. /var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php line 409
    iterator_to_array()
  6. /var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php line 389
    OC\Files\Cache\Scanner->handleChildren()
  7. /var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php line 341
    OC\Files\Cache\Scanner->scanChildren()
  8. /var/www/html/nextcloud/lib/private/Files/Cache/LocalRootScanner.php line 39
    OC\Files\Cache\Scanner->scan()
  9. /var/www/html/nextcloud/lib/private/Files/View.php line 1349
    OC\Files\Cache\LocalRootScanner->scan()
  10. /var/www/html/nextcloud/lib/private/Files/View.php line 1389
    OC\Files\View->getCacheEntry()
  11. /var/www/html/nextcloud/lib/private/Files/Node/Node.php line 99
    OC\Files\View->getFileInfo()
  12. /var/www/html/nextcloud/lib/private/Files/Node/Node.php line 361
    OC\Files\Node\Node->getFileInfo()
  13. <>
    OC\Files\Node\Node->getMountPoint()
  14. /var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php line 70
    call_user_func_array()
  15. /var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php line 354
    OC\Files\Node\LazyFolder->__call()
  16. /var/www/html/nextcloud/apps/groupfolders/lib/ACL/ACLManager.php line 51
    OC\Files\Node\LazyFolder->getMountPoint()
  17. /var/www/html/nextcloud/apps/groupfolders/lib/ACL/ACLManager.php line 75
    OCA\GroupFolders\ACL\ACLManager->getRootStorageId()
  18. /var/www/html/nextcloud/apps/groupfolders/lib/ACL/ACLManager.php line 114
    OCA\GroupFolders\ACL\ACLManager->getRules()
  19. /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php line 180
    OCA\GroupFolders\ACL\ACLManager->getACLPermissionsForPath()
  20. /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php line 127
    OCA\GroupFolders\Mount\MountProvider->getMount()
  21. <>
    OCA\GroupFolders\Mount\MountProvider->OCA\GroupFolders\Mount{closure}(“*** sensitive parameters replaced ***”)
  22. /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php line 107
    array_map()
  23. /var/www/html/nextcloud/lib/private/Files/Config/MountProviderCollection.php line 124
    OCA\GroupFolders\Mount\MountProvider->getMountsForUser()
  24. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 209
    OC\Files\Config\MountProviderCollection->addMountForUser()
  25. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 285
    OC\Files\SetupManager->OC\Files{closure}(“*** sensitive parameters replaced ***”)
  26. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 210
    OC\Files\SetupManager->setupForUserWith()
  27. /var/www/html/nextcloud/lib/private/legacy/OC_Util.php line 111
    OC\Files\SetupManager->setupForUser()
  28. /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php line 123
    OC_Util::setupFS()
  29. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php line 103
    OCA\DAV\Connector\Sabre\Auth->validateUserPass(“*** sensitive parameters replaced ***”)
  30. /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php line 251
    Sabre\DAV\Auth\Backend\AbstractBasic->check()
  31. /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php line 154
    OCA\DAV\Connector\Sabre\Auth->auth()
  32. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php line 180
    OCA\DAV\Connector\Sabre\Auth->check()
  33. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php line 135
    Sabre\DAV\Auth\Plugin->check()
  34. /var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\Auth\Plugin->beforeMethod()
  35. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 456
    Sabre\DAV\Server->emit()
  36. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
  37. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
  38. /var/www/html/nextcloud/apps/dav/lib/Server.php line 344
    Sabre\DAV\Server->exec()
  39. /var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
  40. /var/www/html/nextcloud/remote.php line 166
    require_once(“/var/www/html/n … p”)

PROPFIND /remote.php/dav/files/stdc/
from 87.145.203.20 by stdc at 2022-03-29T04:56:22+00:00

so at last i use right now Debian on a webserver.

if more information need so tell it me please.
thank you for your help!

i hope i have explain enough!

It seems that the parameter of your nextcloud path is empty.
Is your path e.g. a symbolic link? Perhaps a bug in Nextcloud 24?

if i look in older htaccess files they looks like the same as the actual version. gosh my english is a mess -.-

I think the problem is not the htaccess file. The problem is the not existing path. The path is empty.

 path: /.
()

ok, i see. so i must find a way to fill it up with a path. or mean the <> the following lines?

Yes. Perhaps a bug. Do you use a symlink?

i know what is a symlink, but i didn’t use it…

today i have got a update for some php-plugins, since this moment all is fine.
Thank you for your Brainstorming. <3

I think we can close this theme

1 Like