Cannot sync Lightning via CalDav, Error 0x80570015

Support intro

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 : 16.05
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04.3 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.29
PHP version (eg, 7.1): PHP 7.2.19-0ubuntu0.18.04.2

The issue you are facing:

Every time I try to add my Nextcloud calendar to Lightning/Thunderbird, it spits back the following error:

[Exception… “Component returned failure code: 0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]” nsresult: “0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE)” location: “JS frame :: jar:file://///phy-alex/bal/thunder/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D.xpi!/components/calItemModule.js -> resource://calendar/calendar-js/calCalendarManager.js :: createCalendar :: line 445” data: no]

This is mostly gibberish to me, but I get the impression I’m looking at a password issue. The problem is, Lightning is not prompting me for credentials when I try to sync up to my calendar. Perhaps there’s some way I can force it to do so?

The annoying part is the client on my Android phone works perfectly! Syncs up every time.

Is this the first time you’ve seen this error? (Y/N): No - Ongoing, been trying to fix it for some time.

Steps to replicate it:

  1. In Lightning: Select ‘Add New Calendar,’ select ‘On Network.’

  2. Specify ‘CalDav,’ enter URL pasted directly from a logged-in Nextcloud instance of the desired calendar.

  3. Meet with failure. Every. Frelling. Time.

The output of your Nextcloud log in Admin > Logging:

	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:38:57-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:38:27-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:37:57-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:37:27-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:36:57-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:36:27-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:35:57-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:35:27-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:34:56-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:34:51-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:34:26-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:34:21-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-09-29T09:33:51-0700
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.

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


<?php
$CONFIG = array (
  'instanceid' => 'ocl8bsebg3rh',
  'passwordsalt' => '<removed>',
  'secret' => '<removed>',
  'trusted_domains' => 
  array (
    0 => 'www.bluefeathertech.com',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '16.0.5.1',
  'overwrite.cli.url' => 'http://www.bluefeathertech.com/nextcloud',
  'dbname' => 'ncdb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '<removed>',
  'dbpassword' => '<removed>',
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'mysql.utf8mb4' => true,
  'app_install_overwrite' => 
  array (
    0 => 'calendar',
  ),
  'updater.secret' => <removed>,
);

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

www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:55:14 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1371 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:55:30 -0700] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:55:13 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:55:39 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1351 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:55:46 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1371 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:55:33 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:56:00 -0700] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:56:09 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1351 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:55:54 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:56:18 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1371 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:56:30 -0700] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:56:14 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:56:39 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1351 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:56:50 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1371 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:56:34 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:57:00 -0700] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:57:09 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1351 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:56:54 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:57:22 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1371 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:57:30 -0700] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:57:14 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:57:39 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1351 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:57:54 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1371 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:57:35 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:58:00 -0700] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:58:09 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1351 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:57:55 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:58:26 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1371 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:58:30 -0700] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:58:15 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:58:39 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1351 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:58:35 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:58:58 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1371 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:59:00 -0700] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:59:09 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1351 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:58:55 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:59:26 -0700] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1" 200 2575 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - kc7gr.roadie [29/Sep/2019:11:59:30 -0700] "PROPFIND /nextcloud/remote.php/dav/files/kc7gr.roadie/ HTTP/1.1" 207 1233 "-" "Mozilla/5.0 (Windows) mirall/2.5.2git (build 20190319) (Nextcloud)"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:59:30 -0700] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 2593 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
www.bluefeathertech.com:443 192.168.42.1 - - [29/Sep/2019:11:59:15 -0700] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=2kSIn6TxBVAdC1xsifPw HTTP/1.1" 200 1007 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"

At this point, I’m seriously reconsidering rebuilding the whole bloody web server from the ground up. It’s especially frustrating since the calendar worked just fine in earlier versions of Nextcloud.

Assistance welcome. Thanks much!

It might be necessary to set the “calendar.network.multirealm” parameter, as described here:

https://stijn.tintel.eu/blog/2015/09/03/thunderbird-lightning-and-multiple-caldav-accounts-on-the-same-server

Thanks, checked it - Already set to ‘True.’

Next idea?

If this parameter has been set, you should be able to set different passwords for each calendar resource on your server. If you’re not asked to enter credentials you should check the password manager within Thunderbird if these have been entered previously. If yes, you could delete the settings, restart Thunderbird so that you should be forced to enter it again.