pimutils / pimutils/vdirsyncer

Ocassionally, google backend fail

Open
#575 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cant reproduce cat: server compat mod: Google
Dominant language
Python
Stars
1.9k
Forks
185
Avg merge
11h 49m
Merged PRs (30d)
1

Description

I've a cron on two machines that syncs all my calendars, including a single google calendar one:

 0	*	*	*	*	chronic vdirsyncer -v DEBUG sync

For some reason, I get a few emails a day for 401 errors. The odd thing is:

  • Which machine fails varies.
  • They fail only from time to time.

The full debug output is here.

My configuration:

[general]
status_path = "~/.local/share/vdirsyncer/status/"

##### Contacts ######

[pair contacts]
a = "contacts_local"
b = "contacts_fastmail"
collections = null
metadata = []
conflict_resolution = ["command", "vimdiff"]

[storage contacts_local]
type = "filesystem"
path = "~/.local/share/contacts/cards/"
fileext = ".vcf"

[storage contacts_fastmail]
type = "carddav"
url = "https://carddav.messagingengine.com/dav/addressbooks/user/hobarrera@fastmail.com/Default/"
username = "hobarrera@fastmail.com"
password.fetch = ["command", "~/.local/bin/vdirsyncer-pass", "fastmail:carddav"]

##### Calendars ######

[pair calendars]
a = "calendars_local"
b = "calendars_fastmail"
collections = ["from b"]
metadata = ["color", "displayname"]
conflict_resolution = ["command", "vimdiff"]

[storage calendars_local]
type = "filesystem"
path = "~/.local/share/calendars/"
fileext = ".ics"

[storage calendars_fastmail]
type = "caldav"
url = "https://caldav.messagingengine.com/"
username = "hobarrera@fastmail.com"
password.fetch = ["command", "~/.local/bin/vdirsyncer-pass", "fastmail:caldav"]

##### Work Calendars #####

[pair work_calendars]
a = "calendars_local"
b = "calendars_google"
collections = ["hbarrera@shiftgig.com"]
metadata = ["color", "displayname"]
conflict_resolution = ["command", "vimdiff"]

[storage calendars_google]
type = "google_calendar"
token_file = "~/.cache/vdirsyncer/google.token"
client_id = "1066339489224-5v10lce8q2i7d4ivo441bjus5d3178uu.apps.googleusercontent.com"
client_secret = "REDACTED"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked full debug output and the google_calendar storage configuration, including token_file and the scheduled sync command. Trace the intermittent 401 responses across both machines and determine the authentication failure; done means the cause and a reliable resolution or handling strategy are documented and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.