Hébergement mutualisé : erreur "Cette opération est interdite"

Bonjour à tous,

J’ai installé nextcloud via le setup-nextcloud.php .
En accèdant à l’interface, j’ai cette erreur en boucle : “Cette opération est interdite”
2022-04-09 20_02_37-Window

J’ai contrôlé les droits sur les fichiers, il n’y a pas de problème.

Auriez-vous une idée ?

Bonsoir @vente7950, très étrange… Regarder dans le journal de nextcloud d’où peut venir le problème

bonjout,

cela ressemble a un probleme UID/GID.

Le répertoire nextcloud-data ainsi que ses sous-répertoires doivent avoir les droits suivants:

  • 750 (drwxr-xr-x)
    ET
  • appartenir a www-data:www-data

Bonjour j’ai le meme probleme. Mon dossier est bien en 750 et www-data:www-data cela le fait que dans certain dossiers…

Bonsoir @jonathanbse, avez vous vérifié que l’utilisateur www-data à bien accès en lecture au dossier parents dans répertoires qui posent problème ?

Bonjour, mois je ne peux pas accéder à mon dossier stockage externe, cela me met : " Cette opération est interdite" mais on peut voir le dossier s’ouvrir et directement se refermer…

Merci de votre aide !

Bonsoir @LaFourmiVolante, avez vous des logs nextcloud provenant de votre problème ?

Voici les logs du problème :

{“reqId”:“9fNQd4TYhwtSrLfaQUSZ”,“level”:3,“time”:“2023-11-24T18:24:24+00:00”,“remoteAddr”:“192.168.1.88”,“user”:“ncadmin”,“app”:“webdav”,“method”:“PROPFIND”,“url”:“/remote.php/dav/files/ncadmin/Nextcloud_Principal”,“message”:“No read permissions”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0”,“version”:“27.1.3.2”,“exception”:{“Exception”:“OCA\DAV\Connector\Sabre\Exception\Forbidden”,“Message”:“No read permissions”,“Code”:0,“Trace”:[{“file”:“/usr/local/www/nextcloud/apps-pkg/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php”,“line”:67,“function”:“getChildren”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”,“args”:},{“file”:“/usr/local/www/nextcloud/apps-pkg/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php”,“line”:112,“function”:“cacheDirectory”,“class”:“OCA\DAV\Connector\Sabre\CommentPropertiesPlugin”,“type”:“->”,“args”:[[“OCA\DAV\Connector\Sabre\Directory”]]},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“handleGetProperties”,“class”:“OCA\DAV\Connector\Sabre\CommentPropertiesPlugin”,“type”:“->”,“args”:[[“Sabre\DAV\PropFind”],[“OCA\DAV\Connector\Sabre\Directory”]]},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1052,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[“propFind”,[[“Sabre\DAV\PropFind”],[“OCA\DAV\Connector\Sabre\Directory”]]]},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:984,“function”:“getPropertiesByNode”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[[“Sabre\DAV\PropFind”],[“OCA\DAV\Connector\Sabre\Directory”]]},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1662,“function”:“getPropertiesIteratorForPath”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[“files/ncadmin/Nextcloud_Principal”,[“{DAV:}getlastmodified”,“{DAV:}getetag”,“{DAV:}getcontenttype”,“{DAV:}resourcetype”,“{http://owncloud.org/ns}fileid”,“And 16 more entries, set log level to debug to see all entries”],1]},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1647,“function”:“writeMultiStatus”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[[“Sabre\Xml\Writer”,,“/remote.php/dav/”,[“d”,“s”,“oc”,“nc”],],[“Generator”],false]},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php”,“line”:346,“function”:“generateMultiStatus”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[[“Generator”],false]},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“httpPropFind”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”,“args”:[[“Sabre\HTTP\Request”],[“Sabre\HTTP\Response”]]},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[“method:PROPFIND”,[[“Sabre\HTTP\Request”],[“Sabre\HTTP\Response”]]]},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:253,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:[[“Sabre\HTTP\Request”],[“Sabre\HTTP\Response”]]},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:321,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:},{“file”:“/usr/local/www/nextcloud/apps-pkg/dav/lib/Server.php”,“line”:365,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:“->”,“args”:},{“file”:“/usr/local/www/nextcloud/apps-pkg/dav/appinfo/v2/remote.php”,“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”,“args”:},{“file”:“/usr/local/www/nextcloud/remote.php”,“line”:172,“args”:[“/usr/local/www/nextcloud/apps-pkg/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/usr/local/www/nextcloud/apps-pkg/dav/lib/Connector/Sabre/Directory.php”,“Line”:259,“message”:“No read permissions”,“exception”:,“CustomMessage”:“No read permissions”},“id”:“6560ea9c35226”}

Ce sera peut-être mieu comme ça :

[webdav] Erreur: OCA\DAV\Connector\Sabre\Exception\Forbidden: No read permissions at <>

  1. /usr/local/www/nextcloud/apps-pkg/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php line 67
    OCA\DAV\Connector\Sabre\Directory->getChildren()
  2. /usr/local/www/nextcloud/apps-pkg/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php line 112
    OCA\DAV\Connector\Sabre\CommentPropertiesPlugin->cacheDirectory([“OCA\DAV\Connector\Sabre\Directory”])
  3. /usr/local/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    OCA\DAV\Connector\Sabre\CommentPropertiesPlugin->handleGetProperties([“Sabre\DAV\PropFind”], [“OCA\DAV\Connector\Sabre\Directory”])
  4. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1052
    Sabre\DAV\Server->emit(“propFind”, [["Sabre\DAV\P … ]])
  5. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 984
    Sabre\DAV\Server->getPropertiesByNode([“Sabre\DAV\PropFind”], [“OCA\DAV\Connector\Sabre\Directory”])
  6. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
    Sabre\DAV\Server->getPropertiesIteratorForPath(“files/ncadmin/Nextcloud_Principal”, ["{DAV:}getlastm … "], 1)
  7. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
    Sabre\DAV\Server->writeMultiStatus(["Sabre\Xml\Wr … ]], [“Generator”], false)
  8. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
    Sabre\DAV\Server->generateMultiStatus([“Generator”], false)
  9. /usr/local/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind([“Sabre\HTTP\Request”], [“Sabre\HTTP\Response”])
  10. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit(“method:PROPFIND”, [["Sabre\HTTP\ … ]])
  11. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod([“Sabre\HTTP\Request”], [“Sabre\HTTP\Response”])
  12. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
  13. /usr/local/www/nextcloud/apps-pkg/dav/lib/Server.php line 365
    Sabre\DAV\Server->exec()
  14. /usr/local/www/nextcloud/apps-pkg/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
  15. /usr/local/www/nextcloud/remote.php line 172
    require_once(“/usr/local/www/ … p”)

PROPFIND /remote.php/dav/files/ncadmin/Nextcloud_Principal
from 192.168.1.88 by ncadmin at 2023-11-24T18:24:24+00:00

Bonjour @LaFourmiVolante,

cette erreur indique un problème de configuration des permissions de votre stockage externe ( permissions UNIX).

Bonjour et merci mais comment puis-je faire pour régler le problème ?

@LaFourmiVolante comment est configurer votre stockage externe ? Avez vous accès à un terminal sur la machine hébergeant nextcloud ?

Je suis sur truenas et j’ai suivi les tutos de techmaker pour installer et configurer Nextcloud… Le jail Nextcloud est mit en NAT et j’ai suivi les consignes pour tout ce qui est paramètre d’autorisation ( propriétaire = www )

Et oui j’ai accès à un terminal

Bonjour @LaFourmiVolante, pouvez vous vérifier que que l’utilisateur www dispose bien des droits de lecture sur le lecteur / dossier concerné

Oui j’ai bien vérifié et l’utilisateur www est propriétaire et à bien les autorisations du dataset correspondant

Bonsoir @LaFourmiVolante, quel type d’installation avez vous utiliser pour votre nextcloud ? ( manuelle, docker,snap ,…)

Bonsoir @Mageunic,

J’ai utilisé l’onglet plugins de mon TrueNAS

Bonsoir @LaFourmiVolante, bonne année à vous !!! Ce post pourrez vous aider dans la résolution de votre problème : Permissions to Nextcloud external storage HELP | TrueNAS Community