Nextcloud version (eg, 12.0.2): 16.0.4.1
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.29
PHP version (eg, 7.1): 7.2
The issue you are facing:
After moving the nextcloud files (and DB) from a shared hosting to a new dedicated one, all the applications seem to work fine but trying to open a shared folder in Files results in “This operation is forbidden”.
Only for shared folders, non shared folders are opened and their contents shown.
The nextcloud log shows a read permission issue, but I can’t figure out why.
I’ve been trying to unshare and re-share a folder to see if it could help, but with no success.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Select Files
- Click on a shared folder
The output of your Nextcloud log in Admin > Logging:
Fatal webdav OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions
0. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/TagsPlugin.php - line 224:
OCA\DAV\Connector\Sabre\Directory->getChildren()
1. <<closure>>
OCA\DAV\Connector\Sabre\TagsPlugin->handleGetProperties(Sabre\DAV\PropFind {}, OCA\DAV\Conn ... {})
2. /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:
call_user_func_array([ OCA\DAV\Co ... "], [ Sabre\DAV\ ... }])
3. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1059:
Sabre\Event\EventEmitter->emit("propFind", [ Sabre\DAV\ ... }])
4. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 981:
Sabre\DAV\Server->getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\DAV\Conn ... {})
5. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1666:
Sabre\DAV\Server->getPropertiesIteratorForPath("files/Manue ... e", [ "{DAV:}get ... "], 1)
6. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 355:
Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
7. <<closure>>
Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
8. /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:
call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])
9. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:
Sabre\Event\EventEmitter->emit("method:PROPFIND", [ Sabre\HTTP ... }])
10. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
11. /var/www/nextcloud/apps/dav/lib/Server.php - line 316:
Sabre\DAV\Server->exec()
12. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:
OCA\DAV\Server->exec()
13. /var/www/nextcloud/remote.php - line 163:
require_once("/var/www/ne ... p")
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocrk02ojevdb',
'passwordsalt' => '**********J',
'secret' => '*********',
'trusted_domains' =>
array (
0 => 'cloud.xxx.fr',
1 => 'cloud.yyy.fr',
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '16.0.4.1',
'dbname' => 'the_dbname',
'dbhost' => 'localhost',
'dbport' => '3306',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'the_dbuser',
'dbpassword' => 'the_dbpassword',
'installed' => true,
'theme' => '',
'loglevel' => 2,
'maintenance' => false,
'filelocking.enabled' => true,
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
),
);
The output of your Apache/nginx/system log in /var/log/____
:
IP@ - - [09/Oct/2019:11:19:10 +0200] "PROPFIND /remote.php/dav/files/Manuel/combustible-numerique HTTP/1.1" 403 1330 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"