Thunderbird calendar/contacts sync fails with HTTP 503

Nextcloud version (eg, 12.0.2): 14.0.0
Operating system and version (eg, Ubuntu 17.04): Linux
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 7.1): 7.2.9

I am not able to synchronize any contacts or calendar date with Mozilla Thunderbird. The browser console shows me

PROPFIND https://<URL>/remote.php/dav/calendars/<USER>/personal/ [HTTP/2.0 503 Service Unavailable 44ms]
Lightning: [calCachedCalendar] replay action failed: null, uri=https://<URL>/remote.php/dav/calendars/<USER>/personal/, result=2147500037, operation=[xpconnect wrapped calIOperation]

It used to work until a few days ago. No changes configuration changes were made.

I tried several things and OS (Linux, Windows) with no success. I also tried with a fresh and clean installation of NextCloud with no success. Still the same result. Synchronization with DAVDroid works without any problems.

My Config-Array:

<?php
$CONFIG = array (
 'instanceid' => '<removed>',
'passwordsalt' => '<removed>',
  'secret' => '<removed>',
  'trusted_domains' => 
  array (
    0 => '<removed>',
  ),
  'datadirectory' => '<removed>',
  'dbtype' => 'mysql',
  'version' => '14.0.0.19',
  'overwrite.cli.url' => '<removed>',
  'dbname' => '<removed>',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '<removed>',
  'dbpassword' => '<removed>',
  'installed' => true,
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => '<removed>',
  'mail_domain' => '<removed>',
);

Got no further ideas. Help is appreciated. Many thanks.

1 Like

Wich Thunderbird-Version > 52?

Did You try this fix:

  • go to the config editor (Settings -> Advanced -> General -> Config Editor)
  • search for network.cookie.same-site.enabled
  • set it to false

For carddav you should consider to use the cardbook-plugin:

7 Likes

THANK YOU!
this did the job for me.
i use tbird 60 on linux in a (nasty) setup behind a proxy with windoze-auth and it stopped working (around the time i upgraded it to 52+ and nc to 14) - now it works again!

2 Likes

Correct, I’m using TB60. Setting network.cookie.same-site.enabled to false solved the problem. Many thanks!!

Thank you very much! I wasted so much time for this annoying problem. I also didn’t have Config editor enabled in Thunderbird. This answer helped me to enabled it: https://askubuntu.com/a/925292/811175

I can confirm this solution solved my issue. Thunderbird 60.5 with Lightning 6.2.5 on Ubuntu 18.04.

This use to work, and has now stopped…

OK, so, Ive upgraded NC to 15.0.4, Calendar 1.6.4
Ubuntu 18.04, Thunberbird 60.5.1 Lightning 6.2.5

Ive cleared all the cookies and the passwords for the NC site from Thunderbird, and set the network.cookie.same-site.enabled=False

Still getting the errors…

    > Lightning:[calCachedCalendar] replay action failed: null, uri=https://DOMAIN/remote.php/dav/calendars/USER/personal/, result=2147500037, operation=[xpconnect wrapped calIOperation]  calCachedCalendar.js:330
> Lightning:"There has been an error reading data for calendar: USER.  However, this error is believed to be minor, so the program will attempt to continue. Error code: DAV_NOT_DAV. Description: The resource at https://DOMAIN/remote.php/dav/calendars/USER/personal/ is either not a DAV collection or not available"  calCalendarManager.js:984
> Lightning:There has been an error reading data for calendar: USER.  However, this error is believed to be minor, so the program will attempt to continue. Error code: READ_FAILED. Description:   calCalendarManager.js:984
> Lightning:[calCachedCalendar] replay action failed: null, uri=https://DOMAIN/remote.php/dav/calendars/gary/personal/, result=2147500037, operation=[xpconnect wrapped calIOperation]  calCachedCalendar.js:330

And it never asks for the Uusername/Password anymore which it use to do …

Anybody else with experiences… anything greatly appreciated.
Thanks

So , https://bugzilla.mozilla.org/show_bug.cgi?id=1468912 seems to suggest this still exists in Stable releases, is scheduled for the next release ( might be in the 66 Beta 2 now ? ) - and should be in the next stable release… not sure how far away that is - but at least Im not going mad… :wink:

Nextcloud 15.0.4 and Thunderbird 60.5.1 work very well without setting the mentioned parameter.
The related Nextcloud issue has been closed in the meantime.