jobisoft / TbSync

[Thunderbird Add-On] Central user interface to manage cloud accounts and to synchronize their contact, task and calendar information with Thunderbird
https://github.com/jobisoft/TbSync/wiki/About:-TbSync
Mozilla Public License 2.0
801 stars 54 forks source link

Personal Outlook account synchronization stopped working the next day #725

Closed pvones closed 2 months ago

pvones commented 2 months ago

Your environment

Windows 10 22H2

TbSync version: 4.8 Thunderbird version: 115.12.1

Expected behavior

I setup the calendar synchronization yesterday (personal outlook account, server: eas.outlook.com, period: everything, active sync: best available) and it had worked. I closed the Thunderbird. Today after 10 hours I started Thunderbird again, but the synchronization stopped working. I was asked to enter the password again (getting 401 auth errors) in an infinite loop. I tried to close the Thunderbird and start again, disable/enable the synchronization, nothing helped.

Actual behavior

It is supposed to synchronize. I was able to get it work again by following steps: 1. Thunderbird menu bar: Tools | Clear Recent History 2. Set time range: Everything, keep all the three checkboxes checked, click Clear now button 3. Open TbSync account manager (it shows the last 401 error) 4. Click the Account actions button to open the popup menu 5. Synchronize all enabled acocunts

EDIT today it happend again and I wasn't able to get it work even by the steps above. It is stuck in the infinite login loop. I removed the account and recreated again. I enabled the server side logging in the Outlook web mail.

I use Thunderbird on two computers. When I got it work on the first one it still didn't work on the second one, so it isn't a server state issue. When copied the content of TbSync folder to the second computer it started to work again too without any password prompt. There must be something wrong in the saved local state (last updated time or so).

Steps to reproduce

  1. Setup the syncronization
  2. Close Thunderbird
  3. Wait at least 10 hours
  4. Start Thunderbird again
  5. Open TbSync account manager
  6. Click Synchronize now button

Note

I enabled the detailed logging, but there was nothing interesting, just the 401 errors. When you get an error, it is good to log the http reply body content too, because sometimes there is an additional information that can help to narrow the issue.

pvones commented 2 months ago

It belongs to the EAS-4-TbSync project