Open telotortium opened 2 years ago
Do you have a clear path to reproduce this? A defined set of steps to reach this 409 scenario?
409 means that there is a conflict. Would need to research further why this is happening.
@WhyNotHugo No, I'm not sure of the best way to reproduce this conflict. Google Calendar also throws 403 errors for several individual events, and I'm not sure why those occur either. I would need help from someone more versed in the CalDAV format to attempt to figure it out, and it might also be a Google Calendar-specific issue.
I also have the same issue when syncing from caldav to google calendar. I initially thought the error would show for "already synced" events, but apparently when new events are added to caldav they cant be synced while the error shows.
my current workaround is to delete all events on google calendar everytime i sync
OK, this seems to be reproducible (at least with my combination of orage calendar / google calendar) by altering an existing, recurring event locally, then attempting to sync.
The easiest solution when a conflict is generated seems to just be to delete the locally modified event and then sync, which it seems to accept - though of course it removes the event both locally and remotely. I think I had tried to remove locally altered events before but lost track of changes, in which case the only other option is the nuclear one, for which the steps seem to be:
rm -r ~/.vdirsyncer/status
rm -r ~/.local/share/orage/<remote_calendar_name> # orage-specific, edit to whatever your local copy is
vdirsyncer discover <remote_calendar_name>
vdirsyncer sync
not ideal, but it's all i had previously.
Hopefully that may help narrow down what's messing this up - presumably editing the recurring event locally alters its ETag
, which then does not match the remote one. But I'm not sure what's specific about recurring events altered locally that makes this different from any other kind of event modification. Perhaps @WhyNotHugo may know more...?
I'm seeing this after editing with khal
. I think @marc1uk is onto something with ETags.
Should I post a debug log?
When running
vdirsyncer sync
to regularly sync events from a CalDAV server to a Google Calendar, and the event on the CalDAV server changes after the initial sync, I will see an exception due to a HTTP 409 from Google Calendar.Seems very similar to #613.
config file:
vdirsyncer -vdebug sync
: