Owncloud_Sub_Url breaks WebDAV

Hi,

I’m setting up Owncloud on my personal server using a Docker instance by following the provided documentation (admin_manual/installation/docker/).
As far I’m using other services, I want owncloud to be available under domainname/owncloud. If I deploy the Docker instance with the OWNCLOUD_SUB_URL env variable set, the PROPFIND verb fails with Error 405 (see the logs below).

Probably I missed something in the configuration (is there a variable that defines a path specifically for WebDAV access?) but I found something conclusive to go on.

I followed the thread with the elements about 40x errors with WebDAV but without success after doing all the checks.

Thanks a lot in advance for the help

Steps to reproduce

  1. Create a Docker Instance of Owncloud without OWNCLOUD_SUB_URL set ( / default value)
  2. Install and open the Calendar App : works out-of-the-box, I can create calendars and load them on third-party client (KOrganizer, iPhone Calender client)
  3. Create a fresh new Docker Instance of Owncloud with OWNCLOUD_SUB_URL set to /owncloud
  4. Install and open the Calendar App : don’t work anymore, in the web interface, the calendars do not display (keeps loading with turning circle), third-party client don’t sync anymore

Expected behaviour

Calendar should load on the web interface and allow the third party clients to sync (step 1 and 2) :

Web server log
[12/Apr/2023:19:33:59 +0000] "GET /apps/calendar/ HTTP/1.1" 200 11601 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
[12/Apr/2023:19:33:59 +0000] "GET /core/js/oc.js?v=<deleted> HTTP/1.1" 200 6462 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
[12/Apr/2023:19:34:00 +0000] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 834 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
[12/Apr/2023:19:34:00 +0000] "PROPFIND /remote.php/dav HTTP/1.1" 207 1284 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
[12/Apr/2023:19:34:00 +0000] "POST /index.php/apps/calendar/v1/config HTTP/1.1" 200 945 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
[12/Apr/2023:19:34:00 +0000] "PROPFIND /remote.php/dav/calendars/lumbermatt/ HTTP/1.1" 207 7602 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
[12/Apr/2023:19:34:00 +0000] "PROPFIND /remote.php/dav/principals/users/lumbermatt/ HTTP/1.1" 207 1612 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"

Web server error log

Calendar doesn’t load, web interface keeps loading, sync do not work.
PROPFIND verb fails with a 405 error “Method not allowed”.

[12/Apr/2023:19:54:34 +0000] "GET /owncloud/apps/calendar/ HTTP/1.1" 200 11625 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
[12/Apr/2023:19:54:34 +0000] "GET /owncloud/core/js/oc.js?v=<deleted> HTTP/1.1" 200 6702 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
[12/Apr/2023:19:54:35 +0000] "GET /owncloud/custom/calendar/img/favicon-touch.png HTTP/1.1" 200 2292 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
[12/Apr/2023:19:54:35 +0000] "GET /owncloud/ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 302 726 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
[12/Apr/2023:19:54:35 +0000] "PROPFIND /owncloud/remote.php/dav HTTP/1.1" 405 999 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
[12/Apr/2023:19:54:35 +0000] "POST /owncloud/index.php/apps/calendar/v1/config HTTP/1.1" 200 969 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"

Security & setup warnings display a warning : “Your web server is not yet set up properly to allow file synchronization because the WebDAV interface seems to be broken.”

Same beahior occurs occurs when using WebDav with the file part : PROPFIND fails with error 405.

Server configuration

Operating system: Docker version 20.10.5+dfsg1 on Debian Linux Stable (5.10.0-21-amd64)

Web server: Integrated in the Docker Image (owncloud/server:latest on Docker Hub)

Database: Docker instance mariadb:latest (10.11.2+maria~ubu2204)

PHP version: Integrated in the Docker Image (owncloud/server on Docker Hub)

ownCloud version: (see ownCloud admin page) 10.12.0.6

Updated from an older ownCloud or fresh install: Fresh Install (data volume cleared between each time)

Where did you install ownCloud from: Docker Hub (via docker-compose)

Signing status (ownCloud 9.0 and above):

No errors have been found.

List of activated apps: Only Calendar in the basic installation

Are you using external storage, if yes which one: No

Are you using encryption: No

Are you using an external user-backend, if yes which one: No

Client configuration

Browser: Firefox/110.0

Operating system: KDE Neon 5.27

Logs

ownCloud log (data/owncloud.log)

No relevant data (just login)

Hey,

i think this could be caused by a current known and documented issue in 10.12.0:

If you have installed ownCloud 10.12.0 in the combination of:

  • index.php-less setup
  • URL via subfolder

the files view in the web UI will be empty. The desktop app will not be able to sync and an error 405 (Method not allowed) will be thrown. A fix is in progress and will be provided asap. Note that owncloud Server 10.11.0 and earlier are not affected.

Workaround: until the fix is provided, use the .htaccess from your 10.11 backup in your production system.

1 Like

Hi,

Thank you very much for this advice, I think there is little I had not read in my search for this problem but indeed I must have omitted to look in the release notes.

I had found the same topic on the owncloud-docker github (issue 383) which confirmed that there were other users with this problem.
I have redeployed an instance to 10.11 and it works perfectly and will do until a fix is in.

Thanks and have a good weekend

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.