OSX and Nextcloud not connecting via CalDAV - 405 Method not allowed

Hello!

I cannot connect via CalDAV or CardDAV to my nextcloud installation. I’m using the URL that is provided in the calendar section of Nextcloud. However, there is an error “405 Method not allowed”, see below. I have set up a new installation, so all files in nextcloud including .htaccess should be with default parameters.

What I have already tried to fix the issue:

  1. Disable mod_security
  2. Connect via CyberDuck to WebDAV -> This works and shows files, however I want to connect to CalDAV

What else could I try?

Best regards
Eneas

Nextcloud version (11.0.1):
Operating system and version (Ubuntu 16.04):
Apache or nginx version (Apache 2.4.18):
PHP version (7.0.13-0ubuntu0.16.04.1):
Is this the first time you’ve seen this error and can you replicate it?:
I can replicate it every single time.

The issue you are facing:
Cannot connect via Caldav.

The output of your Nextcloud log in Admin > Logging:
Doesn’t show any error.

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

<?php $CONFIG = array ( 'instanceid' => 'o', 'passwordsalt' => '9', 'secret' => 'Zx', 'trusted_domains' => array ( 0 => 'cloud.hostname.com', ), 'datadirectory' => '/mnt/nextcloud', 'overwrite.cli.url' => 'http://cloud.hostname.com', 'dbtype' => 'mysql', 'version' => '11.0.1.2', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'nextclouduser', 'dbpassword' => 'p', 'logtimezone' => 'UTC', 'installed' => true, 'mail_from_address' => 'nextcloud', 'mail_smtpmode' => 'php', 'mail_domain' => 'hostname.com', ); The output of your Apache log in `/var/log/____`: - [25/Jan/2017:10:37:35 +0000] "PROPFIND /.well-known/caldav HTTP/1.1" 405 3608 " " "Mac+OS+X/10.12.2 (16C67) accountsd/113" - [25/Jan/2017:10:37:35 +0000] "HEAD /.well-known/caldav HTTP/1.1" 404 281 "-" "Mac+OS+X/10.12.2 (16C67) accountsd/113" - [25/Jan/2017:10:37:35 +0000] "PROPFIND / HTTP/1.1" 405 606 "-" "Mac+OS+X/10.12.2 (16C67) accountsd/113" - [25/Jan/2017:10:37:35 +0000] "PROPFIND /caldav/v2 HTTP/1.1" 405 605 "-" "Mac+OS+X/10.12.2 (16C67) accountsd/113" - [25/Jan/2017:10:37:35 +0000] "PROPFIND /principals/users// HTTP/1.1" 405 622 "-" "Mac+OS+X/10.12.2 (16C67) --- Remember, this information may be requested if it isn't supplied; for fastest response please provide as much as you can :heart: Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.

you can redirect these .well-know/-stuff that is needed for os x in your apache vhost:

Redirect 301 /.well-known/carddav /remote.php/dav
Redirect 301 /.well-known/caldav /remote.php/dav

https://docs.nextcloud.com/server/11/admin_manual/issues/general_troubleshooting.html#troubleshooting-contacts-calendar

1 Like

Thank you! This works great!!

Can you share some calendars from Calendar.app ?
I have an error when tryin to do that.

I had the same problem - couldn´t get it to work with the same problem.

Then I changed the connection method to “Advanced” - there you can set server, path and port on your own…
and there it worked

Wanted to add: This method did NOT work for CardDAV :frowning:

This topic is for CalDAV and marked as solved. If you have issues with cardDAV, please open a new thread.