pimutils / vdirsyncer

📇 Synchronize calendars and contacts.
https://vdirsyncer.pimutils.org/
Other
1.51k stars 156 forks source link

Nextcloud imported calendar not found #1084

Closed Jocomol closed 10 months ago

Jocomol commented 10 months ago

A few weeks ago I imported a calendar twice into my personal calendar on my own nextcloud. This didn't change any behaviour of vdirsyncer with the exact same config on my work machine. Recently I set up my private machine pretty much the same as my work machine, even the vdirsyncer config is the same. But unfortunately I get this error:

Syncing work_calendar/FLDPRFX_2F5BE02AFF824F0C85025B10B9D838E9
Syncing work_calendar/FLDPRFX_044E92173CDC4152A28AC14E8754D351
Syncing calendars/contact_birthdays
Syncing calendars/imported-horaireics
Syncing calendars/imported-horaire1ics
Syncing calendars/personal
Syncing calendars/default
error: Unknown error occurred for calendars/imported-horaire1ics: Not Found
error: Use `-vdebug` to see the full traceback.

This makes it impossible to sync my calendar.

Now I have tried to somehow ignore these calendars in vdirsyncer, delete them in the local copy of vdirsyncer or delete them on the nextcloud but everything failed.

Jocomol commented 10 months ago

I was able to fix it by changing

[storage nc_calendar]
type = "caldav"
url = "https://nextcloud.mynextcloud.com/nextcloud/remote.php/dav/principals/users/Jocomol/"
username = "Jocomol"
password = ""

To

[storage nc_calendar]
type = "caldav"
url = "https://nextcloud.mynextcloud.com/nextcloud/remote.php/dav/principals/users/Jocomol/$NAMEOFCALENDAR"
username = "Jocomol"
password = ""

Where $NAMEOFCALENDAR is the actual name of the calendar I wanted to import. It imported: personal, contact_birthdays and default.