CalDav logs: what does that correspond to?

Hello, good evening

For the past few days I’ve had these logs in Gladys

2023-03-30T14:47:01+0200 \u003cerror\u003e calendar.syncUserCalendars.js:34 (CalDAVHandler.syncUserCalendars) Error: Bad status: 0
    at exports.XMLHttpRequest.request.onreadystatechange (/src/server/services/caldav/node_modules/dav-request/dav.js:3424:27)
    at setState (/src/server/services/caldav/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:610:14)
    at exports.XMLHttpRequest.dispatchEvent (/src/server/services/caldav/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:591:25)
    at exports.XMLHttpRequest.handleError (/src/server/services/caldav/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:532:5)
    at ClientRequest.errorHandler (/src/server/services/caldav/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:459:14)
    at ClientRequest.emit (node:events:513:28)
    at TLSSocket.socketErrorListener (node:_http_client:502:9)
    at TLSSocket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
2023-03-30T14:47:01+0200 \u003cerror\u003e index.js:53 (Timeout.syncAllUsers [as _onTimeout]) NotFoundError: CALDAV_FAILED_REQUEST_CALENDARS
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at CalDAVHandler.syncUserCalendars (/src/server/services/caldav/lib/calendar/calendar.syncUserCalendars.js:35:11)
    at Promise.map.concurrency (/src/server/services/caldav/index.js:46:13)
2023-03-30T14:48:00+0200 \u003cinfo\u003e scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Thu, 30 Mar 2023 12:48:00 GMT

I’d like to know what this refers to, especially since I stopped the CalDAV service to test, but it remains:

2023-03-30T15:24:00+0200 \u003cinfo\u003e scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Thu, 30 Mar 2023 13:24:00 GMT

Thank you very much in advance

Hi @dahut,

From your first block of logs, I get the impression that during synchronization your calendar service (Google Calendar, iCloud Calendar…) is not accessible. Which service do you use? And do you sync your calendar with an app on your mobile or your computer as well? If so, does synchronization still work on those devices?

That log line is normal — it’s the checking of events for scenes; it’s independent of the CalDAV system.

1 Like

Hi @bertrandda
Sorry for the late reply

I use the Framagenda service for my calendar.
And I also sync it on 2 different computers via Thunderbird and it works correctly.
On Gladys, it works half the time. But previously it used to work pretty well.
I tried to sync it manually, to reset it, etc. and it always responds « synchronization impossible » and yet the whole calendar was synchronized until 15 days ago.

It’s not really a problem since I use it every day but I like when everything works correctly.

And for the last log, does it check every minute?

I’ll try to see if I can reproduce it with framagenda. However I think they based their service on Nextcloud, and I’ve never had these kinds of problems. How many calendars do you have on it? Do they have anything special, webcal subscriptions, shared with other framagenda users…?

Yes I believe it’s every minute.

I have 2 calendars on it and no webcal subscription.

I reactivated the CalDAV service and let the synchronization run on its own. It completed correctly.
And this morning, I got the same error log 3 times. I’ll watch for now to see if it happens again.
Thanks