Different behavour depending host

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:


Or for longer, use three backticks above and below the code snippet:


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:

Nextcloud version (eg, 18.0.2): nextcloud 20.0.5
Operating system and version (eg, Ubuntu 20.04): ubuntu 20.04 LTS
Apache or nginx version (eg, Apache 2.4.25): nginx
PHP version (eg, 7.1): php7.4

The issue you are facing:

Connecting from home, all works well. Connecting from my company (behind a proxy with a strong level of security), calendar and task doesn’t work. Calendar doesn’t appear and an error is send : impossible to modify visibility of calendar

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:


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


The output of your Apache/nginx/system log in /var/log/____:


Perhaps check with the Browser’s debug tool if all resources were loaded. Perhaps some scripts are blocked… could also be browser plugins…

Debug console Edge : (in order)

  • For calendar :

/remote.php/dav/calendars/user1/tches/:1 Failed to load resource: the server responded with a status of 403 ()
Failed to ocs/v2.php/apps/user_status/api/v1/statuses/… :1 failed to load resource: the server responded with a status of 404 ()
DevTools failed to load SourceMap: Could not parse content for https://x.y.z/core/js/dist/files_fileinfo.js.map: Unexpected token < in JSON at position 0

  • For Task :
    tasks.js?v=39ff2aea-4:2 REPORT https://x.y.z/remote.php/dav/calendars/user1/tches/ 403
    Show 18 more frames from Library code
    tasks.js?v=39ff2aea-4:2 Error
    at XMLHttpRequest.n.value.regeneratorRuntime.mark.regeneratorRuntime.wrap.e.abrupt.a.onreadystatechange (tasks.js?v=39ff2aea-4:2)

I think so. It work’s fine from home. But from my company network, with Mozilla and Edge, I can’t create folder, Task and Calendar show blank page (I can see task created at home but few seconds). Rest of app work’s fine, I can create or upload files. I don’t know where to search the bug.

With console explorer, I saw this message when I tried to create a folder named “CREATE_FOLDER”. For information, files creation suppression or move, folder deletion
work well. What can I do to close this ?

Denied by the Policy
Your request is denied by the current Policy.
For assistance, please contact your Service Desk.
2021-01-22 09:58:48
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Edg/87.0.664.57

And debugger

Request URL: https://cloud.XXXX.fr/remote.php/dav/files/USER1/CREATE_FOLDER

Request Method: MKCOL

Status Code: 403

Remote Address: X.Y.Z.W:8080

Referrer Policy: same-origin

Response Headers : cache-control: no-cache, content-length: 447, content-type: text/html, x-frame-options: deny, Request Headers :authority: cloud.XXXX.fr :method: MKCOL :path: /remote.php/dav/files/USER1/CREATE_FOLDER, :scheme: https, accept: /,accept-encoding: gzip, deflate, br, accept-language: fr,fr-FR;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6, cookie: __Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; oc_sessionPassphrase=…; …; nc_username=USER1; nc_token=…; nc_session_id=…, origin: https://cloud.XXXX.fr, referer: https://cloud.XXXX.fr/apps/files/?dir=/&fileid=6, requesttoken: …, sec-fetch-dest:

Empty, sec-fetch-mode: cors, sec-fetch-site: same-origin, user-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Edg/87.0.664.57, x-requested-with: XMLHttpRequest

May be the root cause ?

Same with security enforcement with few warnings !

Does anyone a idea ? It seems to be link to security policy but witch one : my server (NGINX security policy) or proxy of my enterprise ? In the last case, if so, why can I upload/download files successfully ? I need hep …

This is a strange error that I wouldn’t expect from your Linux server.


perhaps. What is strange, that they would partially block https encrypted content (normally, it’s only possible to see that there is some traffic to a specific server, but nothing about the files you ask for). You could try with a firefox portable or tor browser where no enterprise certificates are in the certification store. But it’s possible that you are not allowed to use these or this is block entirely.

Thx pour your reply. I will try your solution but I think it would not work due to security policy of my enterprise. We eren’t able to use non authorized tools ie portable firefox.
Anothers question : error show Remote Address: X.Y.Z.W:8080. 8080 is usually an http port redirection. To respond to a https ??

I found my problem. webdav client is used by Nextcloud to create folder. Security policy of my enterprise blocks webdav request. Simple. Audio & video too : blocked by security. So I can’t use Task and calendar apps for same reasons. But upload/download files is possible, strange. Works well from home.