Description
Steps to reproduce
- Make Nextcloud accessible via https://[Server-IP]/nextcloud via an Alias
- Setup a fresh Nextcloud install in /var/www/nextcloud
- Activate Contacts, Calendar and Tasks App
- Try to add Cal- or CardDav Server in iOS Settings as described here
Notes:
- As described here I made https://[Server-IP]/nextcloud/.well-known/cal|carddav and via an Redirect entry in the Apache Conf also https://[Server-IP]/.well-known/cal|carddav pointing at https://[Server-IP]/nextcloud/remote.php/dav
- Sync between Nextcloud and Thunderbird (CardBook for Contacts and Lightning for Calendars works just like it should
Expected behaviour
iOS beeing able to find and setup the Cal-/CardDav Server correctly
Besides the fact that it requires manual editing of Cal-/CardDav Settings to get (at least CardDav) working
is this a known problem and is there a fix for it (after searching multiple days I didn´t find a solution)?
And is there a way to get it working without manual editing?
Actual behaviour
iOS displays message that sync via SSL is not possible (SSL enabled and working correctly)
After manual setting up the settings for SSL and the Account URL at least CardDav seems to work somehow, but CalDav doesn´t
Server configuration
Operating system: Rasbian (Debian) Jessie/8
Web server: Apache2
Database: MySQL
PHP version: PHP 5.6.30 (output of php -v)
Nextcloud version: The current stable release (12.0.2)
Updated from an older Nextcloud/ownCloud or fresh install: Fresh install
Where did you install Nextcloud from: As described here from the .tar.bz2 archive
Signing status: No errors have been found.
Signing status
No errors have been found.List of activated apps:
App list
Enabled:
- activity: 2.5.2
- bruteforcesettings: 1.0.2
- calendar: 1.5.3
- comments: 1.2.0
- contacts: 1.5.3
- dav: 1.3.0
- federatedfilesharing: 1.2.0
- federation: 1.2.0
- files: 1.7.2
- files_pdfviewer: 1.1.1
- files_sharing: 1.4.0
- files_texteditor: 2.4.1
- files_trashbin: 1.2.0
- files_versions: 1.5.0
- files_videoplayer: 1.1.0
- firstrunwizard: 2.1
- gallery: 17.0.0
- logreader: 2.0.0
- lookup_server_connector: 1.0.0
- nextcloud_announcements: 1.1
- notifications: 2.0.0
- oauth2: 1.0.5
- password_policy: 1.2.2
- provisioning_api: 1.2.0
- serverinfo: 1.2.0
- sharebymail: 1.2.0
- survey_client: 1.0.0
- systemtags: 1.2.0
- tasks: 0.9.5
- theming: 1.3.0
- twofactor_backupcodes: 1.1.1
- updatenotification: 1.2.0
- workflowengine: 1.2.0
Disabled: - admin_audit
- encryption
- files_external
- user_external
- user_ldap
Nextcloud configuration:
Config report
"instanceid": "ocvf2bnn26s2", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "Server-IP" ], "datadirectory": "\/media\/hdd1\/NextcloudData", "overwrite.cli.url": "https:\/\/Server-IP\/nextcloud", "dbtype": "mysql", "version": "12.0.2.0", "dbname": "nextcloud", "dbhost": "localhost", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "memcache.local": "\\OC\\Memcache\\APCu"Are you using external storage, if yes which one: None
Are you using encryption: No
Are you using an external user-backend, if yes which one: None
Client configuration
Browser: None, as it is iOS itself acessing the Server.
Operating system: iOS 10.3.3
Logs
Web server error log
Web server error log
- (Later described as Try 1) When Trying to setup the CardDav Server (using https://[Server-IP]/ as value for Server; as described here )
Client-IP - - [20/Aug/2017:22:03:03 +0200] "PROPFIND /.well-known/carddav HTTP/1.1" 302
2842 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
Client-IP - - [20/Aug/2017:22:03:03 +0200] "PROPFIND /nextcloud/remote.php/dav HTTP/1.1" 401 1868 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
Client-IP - Benedikt Nerb [20/Aug/2017:22:03:03 +0200] "PROPFIND /nextcloud/remote.php/dav HTTP/1.1" 207 2371 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
Client-IP - - [20/Aug/2017:22:03:05 +0200] "PROPFIND / HTTP/1.1" 405 707 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
Client-IP - - [20/Aug/2017:22:03:05 +0200] "PROPFIND /principals/ HTTP/1.1" 405 708 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
- (Later described as Try 2) After manual editing the SSL and Account URL options and saving (note that this automatically changed the "Server" value to the Account URL (in my case https://[Server-IP]/nextcloud/remote.php/dav/principals/users/Benedikt%20Nerb/) it worked.
Client-IP - - [20/Aug/2017:22:19:35 +0200] "PROPFIND /nextcloud/remote.php/dav/principals/users/Benedikt%20Nerb/ HTTP/1.1" 401 2006 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
Client-IP - Benedikt Nerb [20/Aug/2017:22:19:35 +0200] "PROPFIND /nextcloud/remote.php/dav/principals/users/Benedikt%20Nerb/ HTTP/1.1" 207 2525 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
- (Later described as Try 3) When Trying to setup the CalDav Server (using https://[Server-IP]/ as value for Server; as described here )
Client-IP - - [20/Aug/2017:22:39:31 +0200] "PROPFIND /nextcloud/remote.php/dav HTTP/1.1" 401 1864 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
Client-IP - Benedikt Nerb [20/Aug/2017:22:39:32 +0200] "PROPFIND /nextcloud/remote.php/dav HTTP/1.1" 207 1823 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
Client-IP - - [20/Aug/2017:22:39:33 +0200] "PROPFIND / HTTP/1.1" 405 707 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
Client-IP - - [20/Aug/2017:22:39:33 +0200] "PROPFIND /principals/ HTTP/1.1" 405 708 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
Client-IP - - [20/Aug/2017:22:39:33 +0200] "PROPFIND /calendar/dav/Benedikt%20Nerb/user/ HTTP/1.1" 405 729 "-" "iOS/10.3.3 (14G60) accountsd/1.0"
- (Later described as Try 4) After manual editing the SSL and Account URL options and saving (note that this automatically changed the "Server" value to the Account URL (in my case https://[Server-IP]/nextcloud/remote.php/dav/principals/users/Benedikt%20Nerb/) it results in the calendars beeing detected correctly and everthing seems to be fine until the calendars vanish
Client-IP - - [20/Aug/2017:22:59:55 +0200] "PROPFIND /nextcloud/remote.php/dav/calendars/Benedikt%20Nerb/ HTTP/1.1" 401 1320 "-" "iOS/10.3.3 (14G60) dataaccessd/1.0"
Client-IP - Benedikt Nerb [20/Aug/2017:22:59:56 +0200] "REPORT /nextcloud/remote.php/dav/addressbooks/users/Benedikt%20Nerb/contacts_shared_by_Johanna%20Nerb/ HTTP/1.1" 207 1785 "-" "iOS/10.3.3 (14G60) dataaccessd/1.0"
Client-IP - Benedikt Nerb [20/Aug/2017:22:59:56 +0200] "PROPFIND /nextcloud/remote.php/dav/calendars/Benedikt%20Nerb/ HTTP/1.1" 207 17420 "-" "iOS/10.3.3 (14G60) dataaccessd/1.0"
Client-IP - Benedikt Nerb [20/Aug/2017:22:59:58 +0200] "PROPFIND /nextcloud/remote.php/dav/calendars/Benedikt%20Nerb/feiertageoliver-nerb/ HTTP/1.1" 207 1630 "-" "iOS/10.3.3 (14G60) dataaccessd/1.0"
Client-IP - Benedikt Nerb [20/Aug/2017:22:59:59 +0200] "PROPFIND /nextcloud/remote.php/dav/calendars/Benedikt%20Nerb/personal_shared_by_Alexandra%20Nerb/ HTTP/1.1" 207 1645 "-" "iOS/10.3.3 (14G60) dataaccessd/1.0"
Client-IP - Benedikt Nerb [20/Aug/2017:23:00:00 +0200] "PROPFIND /nextcloud/remote.php/dav/calendars/Benedikt%20Nerb/personal/ HTTP/1.1" 207 1618 "-" "iOS/10.3.3 (14G60) dataaccessd/1.0"
Client-IP - Benedikt Nerb [20/Aug/2017:23:00:01 +0200] "PROPFIND /nextcloud/remote.php/dav/calendars/Benedikt%20Nerb/contact_birthdays/ HTTP/1.1" 207 1629 "-" "iOS/10.3.3 (14G60) dataaccessd/1.0"
Client-IP - Benedikt Nerb [20/Aug/2017:23:00:02 +0200] "PROPFIND /nextcloud/remote.php/dav/calendars/Benedikt%20Nerb/erc-heimspiele/ HTTP/1.1" 207 1624 "-" "iOS/10.3.3 (14G60) dataaccessd/1.0"
Client-IP - Benedikt Nerb [20/Aug/2017:23:00:03 +0200] "REPORT /nextcloud/remote.php/dav/calendars/Benedikt%20Nerb/feiertageoliver-nerb/ HTTP/1.1" 207 11016 "-" "iOS/10.3.3 (14G60) dataaccessd/1.0"
I think (quite sure) it´s this request, that ends the (working) sync of calendars
Client-IP - - [20/Aug/2017:23:07:14 +0200] "PROPFIND / HTTP/1.1" 405 707 "-" "iOS/10.3.3 (14G60) dataaccessd/1.0"
After this sync the Account URL in the CalDav Server value got set to https://[Server-IP]/.
Nextcloud log
Nextcloud log
Containing nothing regarding the Problems with iOS