This Operation is not allowed

Hey, sorry for my English, its translated by Google.

English:
Hi, I have the following problem: I relaunched my cloud, these only use for me. It runs as a website on a dedicated server, which I have rented at 1 & 1.

Now I have the problem that I synced my data in my ownCloud client. I can also access my ownCloud iOS APP on it. it is also through the browser.

But here comes the specifics. When I once was, several tested in the browser in a folder in there and want the folder to open one more time, I get the message “This operation is not allowed”

In the iOS app, but everything works. Although I share the folder and open the link, I can browse to the folder and download the things there.

German:
Hallo, ich habe folgendes Problem: Ich habe meine Cloud neu aufgesetzt, nutze diese nur fĂŒr mich. Sie lĂ€uft als Homepage auf einem Rootserver, welchen ich bei 1&1 angemietet habe.

Nun habe ich das Problem, dass ich per owncloud Client meine Daten synchronisiert habe. Ich kann auch per owncloud iOS APP darauf zugreifen. Auch ĂŒber den Browser geht es.

Hier kommt aber die Besonderheit. Wenn ich im Browser, verschiedene getestet, einmal in einem Ordner drin war und den Ordner ein weiteres mal öffnen möchte, erhalte ich die Meldung “Diese Operation ist nicht erlaubt”

In der iOS App funktioniert jedoch alles. Auch wenn ich den Ordner teile und den Link öffne, kann ich in dem Ordner browsen und die Dinge dort downloaden.

Can you check whether your log file contains any error messages?

Hey, after fixing the open_basedir error by adding /dev/urandom in the config i get now this Erros:

Error PHP Comments starting with ‘#’ are deprecated in Unknown on line 1 at Unknown#0 2016-06-15T06:48:30+00:00 Chelrid
Error PHP Comments starting with ‘#’ are deprecated in Unknown on line 1 at Unknown#0 2016-06-15T06:48:30+00:00 Chelrid
Error PHP Comments starting with ‘#’ are deprecated in Unknown on line 1 at Unknown#0 2016-06-15T06:48:30+00:00 Chelrid
Error PHP Comments starting with ‘#’ are deprecated in Unknown on line 1 at Unknown#0 2016-06-15T06:48:30+00:00 Chelrid
Error PHP Comments starting with ‘#’ are deprecated in Unknown on line 1 at Unknown#0 2016-06-15T06:48:26+00:00 Chelrid

English:
Supplement: If I install the ownCloud 8.2.5 it works. But even when I access from home to the next cloud 9.0.5 or ownCloud 9.0.2 it works. When accessing the ownCloud 9.0.2 or 9.0.5 before next cloud of work, it is as described above, only 1x.

German:
ErgÀnzung: Wenn ich die owncloud 8.2.5 installiere funktioniert es. Aber auch, wenn ich von zuhause aus auf die nextcloud 9.0.5 oder eine owncloud 9.0.2 zugreife funktioniert es. Wenn ich vor Arbeit aus auf die owncloud 9.0.2 oder nextcloud 9.0.5 zugreife, geht es wie oben beschrieben nur 1x.

Ich hab genau das gleiche Problem. Von zuhause aus geht es Problemlos, von der Arbeit aus kann ich mich zwar einloggen und sehe alle Ordner (1. Ebene), aber sobald ich in einen Ordner wechseln möchte, kommt die Meldung “This operation is forbidden”.

Das Problem habe ich erst seit der Version Owncloud 9 / Nextcloud 9. Mit Owncloud 8 ging es auch von der Arbeit aus immer Problemlos.

Hast du das Problem mittlerweile gelöst bekommen und kannst mir hier weiterhelfen?

Ich sag mal so: Keine Ahnung ob es mittlerweile geht. Hab eine 8.2.7 laufen. Damit geht’s ohne Probleme.

Auf Owncloud 8 wĂŒrde ich nur sehr ungern wieder zurĂŒck, da ich doch einige Features von der 9er verwenden möchte.

Ich umgehe es momentan so, dass ich mich einlogge, den Hauptordner per Link teile und ĂŒber den dann alles hochlade aber das nervt auf dauer natĂŒrlich auch.

Mittlerweile ist ja Nextcloud 10 draußen, bin aber noch nicht dazugekommen die Version auszuprobieren. Hast du hier schon Erfahrungen sammeln können, wie sich Nextcloud 10 hier verhĂ€lt?

Can you try different connections as well? At your office, do you use a firewall / proxy? Same browser?

At work we have a Proxy (i think it’s the reason). Browser is the same (i have tried other browsers with the same result).

With Nextcloud 10 i have the same propbelm.

Just to make sure, on ownCloud 8.2.x you could do this operations from your computer in the office?

Can you try if it works on demo.nextcloud.com and demo.owncloud.org.

I tried this last week at a location where you have restricted access (only via http/s and not sure if there is a proxy or filter in place) and I think to have seen something similar (couldn’t create subfolders and couldn’t move existing folder into another folder). Did try this later from home, there everything was working. Not sure when I get back to the environment to make more tests.

Logs (NC 10):

{"reqId":"tblKNi6OVfgX4Q0A1JCZ","remoteAddr":"ww.xx.yy.zz","app":"index","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\ForbiddenException\",\"Message\":\"Access denied\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_accesscontrol\\\/lib\\\/StorageWrapper.php(47): OCA\\\\FilesAccessControl\\\\Operation->checkFileAccess(Object(OCA\\\\FilesAccessControl\\\\StorageWrapper), 'thumbnails\\\/193\\\/...')\\n#1 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_accesscontrol\\\/lib\\\/StorageWrapper.php(291): OCA\\\\FilesAccessControl\\\\StorageWrapper->checkFileAccess('thumbnails\\\/193\\\/...')\\n#2 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(1118): OCA\\\\FilesAccessControl\\\\StorageWrapper->fopen('thumbnails\\\/193\\\/...', 'r')\\n#3 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(963): OC\\\\Files\\\\View->basicOperation('fopen', '\\\/thumbnails\\\/193...', Array, 'r')\\n#4 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Preview.php(821): OC\\\\Files\\\\View->fopen('thumbnails\\\/193\\\/...', 'r')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Preview.php(773): OC\\\\Preview->getCachedPreview(193, 'thumbnails\\\/193\\\/...')\\n#6 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Preview.php(802): OC\\\\Preview->getPreview()\\n#7 \\\/var\\\/www\\\/nextcloud\\\/core\\\/ajax\\\/preview.php(64): OC\\\\Preview->showPreview()\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Route.php(155) : runtime-created function(1): require_once('\\\/var\\\/www\\\/nextcl...')\\n#9 [internal function]: __lambda_func()\\n#10 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(293): call_user_func('\\\\x00lambda_512', Array)\\n#11 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(967): OC\\\\Route\\\\Router->match('\\\/core\\\/preview.p...')\\n#12 \\\/var\\\/www\\\/nextcloud\\\/index.php(48): OC::handleRequest()\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_accesscontrol\\\/lib\\\/Operation.php\",\"Line\":65}","level":3,"time":"2016-09-01T12:13:04+00:00","method":"GET","url":"\/nextcloud\/core\/preview.png?file=%2Fpasswort.txt&c=a2de2ee3e2869f29be9ba490d0cf933a&x=64&y=64&forceIcon=0","user":"myuser"}
{"reqId":"OhqN2PRmkVAry6+GtUoC","remoteAddr":"ww.xx.yy.zz","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 403 Access denied\",\"Exception\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Exception\\\\Forbidden\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1150): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->createDirectory('tutu')\\n#1 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(588): Sabre\\\\DAV\\\\Server->createCollection('tesst\\\/tutu', Object(Sabre\\\\DAV\\\\MkCol))\\n#2 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpMkcol(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#3 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#4 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(459): Sabre\\\\Event\\\\EventEmitter->emit('method:MKCOL', Array)\\n#5 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#6 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(60): Sabre\\\\DAV\\\\Server->exec()\\n#7 \\\/var\\\/www\\\/nextcloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/nextcl...')\\n#8 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php\",\"Line\":174,\"User\":\"myuser\"}","level":4,"time":"2016-09-01T12:13:14+00:00","method":"MKCOL","url":"\/nextcloud\/remote.php\/webdav\/tesst\/tutu","user":"myuser"}
{"reqId":"r8y8ymfX6K3B+3M\/XQp7","remoteAddr":"ww.xx.yy.zz","app":"index","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\ForbiddenException\",\"Message\":\"Access denied\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_accesscontrol\\\/lib\\\/StorageWrapper.php(47): OCA\\\\FilesAccessControl\\\\Operation->checkFileAccess(Object(OCA\\\\FilesAccessControl\\\\StorageWrapper), 'thumbnails\\\/193\\\/...')\\n#1 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_accesscontrol\\\/lib\\\/StorageWrapper.php(291): OCA\\\\FilesAccessControl\\\\StorageWrapper->checkFileAccess('thumbnails\\\/193\\\/...')\\n#2 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(1118): OCA\\\\FilesAccessControl\\\\StorageWrapper->fopen('thumbnails\\\/193\\\/...', 'r')\\n#3 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(963): OC\\\\Files\\\\View->basicOperation('fopen', '\\\/thumbnails\\\/193...', Array, 'r')\\n#4 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Preview.php(821): OC\\\\Files\\\\View->fopen('thumbnails\\\/193\\\/...', 'r')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Preview.php(773): OC\\\\Preview->getCachedPreview(193, 'thumbnails\\\/193\\\/...')\\n#6 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Preview.php(802): OC\\\\Preview->getPreview()\\n#7 \\\/var\\\/www\\\/nextcloud\\\/core\\\/ajax\\\/preview.php(64): OC\\\\Preview->showPreview()\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Route.php(155) : runtime-created function(1): require_once('\\\/var\\\/www\\\/nextcl...')\\n#9 [internal function]: __lambda_func()\\n#10 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(293): call_user_func('\\\\x00lambda_30', Array)\\n#11 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(967): OC\\\\Route\\\\Router->match('\\\/core\\\/preview.p...')\\n#12 \\\/var\\\/www\\\/nextcloud\\\/index.php(48): OC::handleRequest()\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_accesscontrol\\\/lib\\\/Operation.php\",\"Line\":65}","level":3,"time":"2016-09-01T12:13:20+00:00","method":"GET","url":"\/nextcloud\/core\/preview.png?file=%2Fpasswort.txt&c=a2de2ee3e2869f29be9ba490d0cf933a&x=64&y=64&forceIcon=0","user":"myuser"}
{"reqId":"YWAtHt+f21Kr+Om116p4","remoteAddr":"ww.xx.yy.zz","app":"index","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\ForbiddenException\",\"Message\":\"Access denied\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_accesscontrol\\\/lib\\\/StorageWrapper.php(47): OCA\\\\FilesAccessControl\\\\Operation->checkFileAccess(Object(OCA\\\\FilesAccessControl\\\\StorageWrapper), 'thumbnails\\\/8\\\/20...')\\n#1 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_accesscontrol\\\/lib\\\/StorageWrapper.php(291): OCA\\\\FilesAccessControl\\\\StorageWrapper->checkFileAccess('thumbnails\\\/8\\\/20...')\\n#2 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(1118): OCA\\\\FilesAccessControl\\\\StorageWrapper->fopen('thumbnails\\\/8\\\/20...', 'r')\\n#3 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(963): OC\\\\Files\\\\View->basicOperation('fopen', '\\\/thumbnails\\\/8\\\/2...', Array, 'r')\\n#4 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Preview.php(821): OC\\\\Files\\\\View->fopen('thumbnails\\\/8\\\/20...', 'r')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Preview.php(773): OC\\\\Preview->getCachedPreview(8, 'thumbnails\\\/8\\\/20...')\\n#6 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Preview.php(802): OC\\\\Preview->getPreview()\\n#7 \\\/var\\\/www\\\/nextcloud\\\/core\\\/ajax\\\/preview.php(64): OC\\\\Preview->showPreview()\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Route.php(155) : runtime-created function(1): require_once('\\\/var\\\/www\\\/nextcl...')\\n#9 [internal function]: __lambda_func()\\n#10 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(293): call_user_func('\\\\x00lambda_149', Array)\\n#11 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(967): OC\\\\Route\\\\Router->match('\\\/core\\\/preview.p...')\\n#12 \\\/var\\\/www\\\/nextcloud\\\/index.php(48): OC::handleRequest()\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_accesscontrol\\\/lib\\\/Operation.php\",\"Line\":65}","level":3,"time":"2016-09-01T12:13:22+00:00","method":"GET","url":"\/nextcloud\/core\/preview.png?file=%2FPhotos%2FSan+Francisco.jpg&c=3a23d6e151d066753f974514459707da&x=64&y=64&forceIcon=0","user":"myuser"}

I tried 3 instances:
owncloud 8.2.2: all operations went from office and from home
owncloud 9.0.2 and nextcloud 10: all operations went from home but not from office
At office i can login, see all in the root directory, can share folder and files in the root directory and can open the admin-panel.
I can’t join a folder or create a new folder. I didn’t get a Log-Message.
But if i open a shared link i can do all.

demo.nextcloud.com and demo.owncloud.org went from office too

My Apache2-Config:
< VirtualHost :80>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.
) https://%{HTTP_HOST}%{REQUEST_URI}
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
< /VirtualHost>

< VirtualHost *:443>
DocumentRoot "/path/to/owncloud"
ServerName ****.de

    SSLEngine on
    SSLCertificateFile /path/to/****.de-pub.pem
    SSLCertificateKeyFile /path/to/****.de-key.pem
    SSLCertificateChainFile /path/to/root.pem

    <Directory /path/to/owncloud>
            Options +FollowSymlinks
            AllowOverride All

            <IfModule mod_dav.c>
                    Dav off
            </IfModule>

            <IfModule mod_env.c>
                    Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
            </IfModule>

            SetEnv HOME /path/to/owncloud
            SetEnv HTTP_HOME /path/to/owncloud
    </Directory>

< /VirtualHost>

My Config from the Owncloud 9 Instance:

<?php $CONFIG = array ( 'instanceid' => '****', 'passwordsalt' => '****', 'secret' => '****', 'trusted_domains' => array ( 0 => '***.de', ), 'datadirectory' => '/path/to/data', 'overwrite.cli.url' => 'https://****.de', 'dbtype' => 'mysql', 'version' => '9.0.2.2', 'dbname' => '*****', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => '****', 'dbpassword' => '****', 'logtimezone' => 'UTC', 'installed' => true, 'mail_from_address' => 'admin', 'mail_smtpmode' => 'php', 'loglevel' => 1, 'mail_domain' => '****.de', );

Hey,

nachdem ich nun doch einige Zeit eine owncloud 8.2.5 am laufen hatte, hab ich mir nextcloud nochmal angesehen.

Direkt die 10.0.1 installiert, Daten sychronisiert. Das oben genannte Problem besteht aber weiterhin.
Von zuhause aus mit verschiedenen Browsern alles ok. Von Arbeit aus nicht.

Der Zugang zur Demo von Nextcloud funktioniert allerdings auch von Arbeit aus.

Ich betreibe die cloud auf einem Rootserver von 1und1 mit ubuntu 14.04 und installiertem Plesk 12.5 unter einer Subdomain.

Hat das ganze schon jemand hinbekommen?

Also du kannst das zuverlÀssig reproduzieren? Hast du mehr Infos zum Proxy-Server? Alternativ kommt man dem vermutlich auch auf die Spur, wenn man auf dem Server die Pakete mitschneidet und dann schaut, wie sie durch den Proxy kommen. In dem Fall wÀre wohl am besten, du machst einen Bugreport auf Issues · nextcloud/server · GitHub auf, die Entwickler dort sollten dir dann sagen können, wie du was machen kannst, um an mehr Infos zu kommen.

Morgen kann ich vielleicht selbst kurz testen, also das ist nur ĂŒber die Web-OberflĂ€che wenn man Ordner verschiebt oder erstellt?

Wenn ich die ownCloud 8.2.x installiere habe ich von Arbeit aus keine Probleme. Ich nutze die Cloud eigentlich nur um von Arbeit einige Dateien, die durch die Arbeit entstanden sind zu sichern. TeilnahmenbestĂ€tigungen und Personaltechnische Unterlagen. Eigentlich dĂŒrfen wir auf Arbeit das Internet nicht privat nutzen. Und zu unserem Proxy kann nicht viel sagen. Nur das der Zugriff in einen ownCloud 8.2.x ohne Probleme ĂŒber Monate hinweg funktioniert. Und der Zugriff auf eine nextCloud eben nur einmal. Dabei ist es egal, ob ich mich per http oder https mit der nextCloud per Browser verbinde.

Software kann ich nicht installieren, da es gesperrt ist. Also kann ich auf Arbeit nur per Browser auf die Cloud zugreifen.

Und nochmal der Fehler: Ich kann in einer ownCloud 8.2.x so oft ich will in die verschiedenen Ordner und Unterordner rein und in diesen auch alles mögliche machen. In einer ownCloud 9.x und einer NextCloud 10.x kann dies zwar auch. Aber nur einmal.

Bsp: Ich habe in meiner Cloud aktuell 3 Ordner Arbeit, Projekte und Sonstiges. Im Ordner Arbeit und Projekte sind verschiedene Unterordner. Als ich die nextcloud neu installiert habe konnte ich von Arbeit aus per Browser 1x in jeden dieser drei Hauptordner rein und habe dessen Inhalt gesehen. Danach bin ich den Hauptordner der Cloud gegangen um z.B. vom Ordner Arbeit in den Ordner Projekte zu wechseln. Und darauf hin bekam ich die Meldung “Die Operation ist nicht zulĂ€ssig.” Und diese Meldung bekomme ich nun bei jedem Zugriffsversuch auf einen der 3 Ordner. Auch das erstellen eines neuen Ordners endet mit dieser Meldung.

Und wenn ich das ganze von zuhause aus mache, dann klappt es. Browser habe unterschiedliche und auch die gleichen getestet wie auf Arbeit.

Das es am Proxy von Arbeit liegt glaube ich nicht, denn sonst wĂŒrde meine Subdomain cloud.chelrid.de gar nicht erst aufgehen.

Fehler besteht auch mit der NextCloud 11.0 weiterhin.

@Chelrid als Workaround kann ich dir folgendes empfehlen:
Ganz normal einloggen, einen Ordner per Link teilen und ĂŒber diesen Link alles Hochladen.
Ist zwar echt nervig so aber immerhin geht es auch von der Arbeit aus mit Versionen > Owncloud 8.x.

Der workaround ist mir bekannt, aber kann ja wohl nicht die Lösung sein.

Mir ist eben aufgefallen, dass ich nach dem einloggen dort normal in die Ordnerstruktur gehen konnte. Als ich dann eine Textdatei (ĂŒber das MenĂŒ) erstellen wollte, sagte mir die Cloud “konnte nicht erstellt werden”. Danach habe ich den Ordner per geteiltem Link aufgerufen und die Datei war trotzdem vorhanden.

Sehr merkwĂŒrdig.

LĂ€uft PHP als Apache-Modul oder in einer fcgi/fastcgi/
-Umgebung? Alles was nicht PHP-Modul ist, ist potentiell etwas frickelig besonders in Umgebungen mit Admin-Tools.

PHP 5.6.29 wird als FPM Anwendung von Apache bedient.