Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: Failed to discover collections for google #5

Closed
kultkino opened this issue Jul 5, 2022 · 3 comments
Closed

warning: Failed to discover collections for google #5

kultkino opened this issue Jul 5, 2022 · 3 comments

Comments

@kultkino
Copy link

kultkino commented Jul 5, 2022

I'm new here. I'm trying to get help. I'm not sure, if the Issues-Section is the right place.
So please forgive me, in case it is not. I will remove it.

I'm running Vdirsyncer-Dockerized on a Synology-Nas in Docker.
I'm tying to sync the local cal with my google-calendar.
I installed pip install vdirsyncer[google]
Authentication with Google Caldav works fine, but I keep on getting the following warning:
warning: Failed to discover collections for google

Config:

General

[general]
status_path = "/vdirsyncer/status/"

Pairs

[pair google_local]
a = "google"
b = "local"
collections = ["from a", "from b"]
conflict_resolution = "b wins"

[storage google]
type = "google_calendar"
token_file = "/vdirsyncer/google_token"
client_id = "78214-f1bcquf5q1c6n66i7lb.apps.googleusercontent.com"
client_secret = "GO
************************UqBT"

[storage local]
type = "caldav"
url = "https://a*****b.c******d.ch/caldav/tobias.faust/hjqbrkvn/"
username = "username"
password = "password"

Logfile

date stream content
2022-07-05T15:37:01.148396474Z stdout [[2022-07-05 17:37:01]] error: 1 out of 1 tasks failed.
2022-07-05T15:37:01.148347903Z stdout [[2022-07-05 17:37:01]] error: Use -vdebug to see the full traceback.
2022-07-05T15:37:01.148235353Z stdout [[2022-07-05 17:37:01]] error: Unknown error occurred: Not Found
2022-07-05T15:37:01.030566005Z stdout [[2022-07-05 17:37:01]]   - "hjqbrkvn" ("privat")
2022-07-05T15:37:00.891772174Z stdout [[2022-07-05 17:37:00]] local:
2022-07-05T15:37:00.751577839Z stdout [[2022-07-05 17:37:00]] warning: Failed to discover collections for google, use -vdebug to see the full traceback.
2022-07-05T15:37:00.397884203Z stdout [[2022-07-05 17:37:00]] Discovering collections for pair google_local
2022-07-05T15:37:00.205408107Z stdout [[2022-07-05 17:37:00]] crond: USER vdirsyncer pid 148 cmd yes | vdirsyncer -c /vdirsyncer/config discover && vdirsyncer -c /vdirsyncer/config metasync && vdirsyncer -c /vdirsyncer/config sync
2022-07-05T15:36:01.150517508Z stdout [[2022-07-05 17:36:01]] error: 1 out of 1 tasks failed.
2022-07-05T15:36:01.150445998Z stdout [[2022-07-05 17:36:01]] error: Use -vdebug to see the full traceback.
2022-07-05T15:36:01.150325178Z stdout [[2022-07-05 17:36:01]] error: Unknown error occurred: Not Found
2022-07-05T15:36:01.040395877Z stdout [[2022-07-05 17:36:01]]   - "hjqbrkvn" ("privat")
2022-07-05T15:36:00.904075175Z stdout [[2022-07-05 17:36:00]] local:
2022-07-05T15:36:00.754974988Z stdout [[2022-07-05 17:36:00]] warning: Failed to discover collections for google, use -vdebug to see the full traceback.
2022-07-05T15:36:00.396383196Z stdout [[2022-07-05 17:36:00]] Discovering collections for pair google_local
2022-07-05T15:36:00.204823292Z stdout [[2022-07-05 17:36:00]] crond: USER vdirsyncer pid 137 cmd yes | vdirsyncer -c /vdirsyncer/config discover && vdirsyncer -c /vdirsyncer/config metasync && vdirsyncer -c /vdirsyncer/config sync
2022-07-05T15:35:01.186076506Z stdout [[2022-07-05 17:35:01]] error: 1 out of 1 tasks failed.
2022-07-05T15:35:01.185902206Z stdout [[2022-07-05 17:35:01]] error: Use -vdebug to see the full traceback.
2022-07-05T15:35:01.185779085Z stdout [[2022-07-05 17:35:01]] error: Unknown error occurred: Not Found
2022-07-05T15:35:01.062918650Z stdout [[2022-07-05 17:35:01]]   - "hjqbrkvn" ("privat")

Thnx for your help

@kultkino
Copy link
Author

kultkino commented Jul 6, 2022

Maybe it is linked to the authenticationprocess:
I set up everything newly and went through everything step by step and now I ended up with the following warning:

warning: No graphical browser found. Please open the URL manually.
How would I do that?

In the first situation, I created a toke file placed on my share for vdirsyncer and linked it as a "mount-point" (file). I guess that was not correct, which is why the discovery would not work.

Opening the URL form the logfile, I'm aksed to login in which I can successfully and than I'm given a token, which I should use. Where do I place it? (see screnshot)

date stream content
2022-07-06T06:16:01.125304852Z stdout [[2022-07-06 08:16:01]]   - "hjqbrkvn" ("privat")
2022-07-06T06:16:00.986891012Z stdout [[2022-07-06 08:16:00]] local:
2022-07-06T06:16:00.843757373Z stdout [[2022-07-06 08:16:00]] Paste obtained code: warning: Failed to discover collections for google, use -vdebug to see the full traceback.
2022-07-06T06:16:00.749108202Z stdout [[2022-07-06 08:16:00]] Follow the instructions on the page.
2022-07-06T06:16:00.748963172Z stdout [[2022-07-06 08:16:00]] warning: No graphical browser found. Please open the URL manually.
2022-07-06T06:16:00.744917884Z stdout [[2022-07-06 08:16:00]] Opening https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=903952278214-f1bcquf5qbfqbq6siikbu11c6n66i7lb.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar&state=eKrER5skv6YqlmIFp1xoi58mLAYVdR&access_type=offline&approval_prompt=force ...
2022-07-06T06:16:00.501155271Z stdout [[2022-07-06 08:16:00]] Discovering collections for pair google_local
2022-07-06T06:16:00.311459398Z stdout [[2022-07-06 08:16:00]] crond: USER vdirsyncer pid  36 cmd yes | vdirsyncer -c /vdirsyncer/config discover && vdirsyncer -c /vdirsyncer/config metasync && vdirsyncer -c /vdirsyncer/config sync
2022-07-06T06:15:52.363623792Z stdout [[2022-07-06 08:15:52]] crond: crond (busybox 1.35.0) started, log level 8
2022-07-06T06:15:52.308461981Z stdout [[2022-07-06 08:15:52]] Autodiscover and Autosync are enabled
2022-07-06T06:15:52.258445310Z stdout [2022-07-06 08:15:52] Current time is Wed Jul  6 08:15:52 CEST 2022
2022-07-06T06:15:52.211742765Z stdout [2022-07-06 08:15:52] Set Timezone to Europe/Vienna
2022-07-06T06:15:52.152151765Z stdout [2022-07-06 08:15:52]
2022-07-06T06:15:52.152020645Z stdout [2022-07-06 08:15:52] Starting Logging...
2022-07-06T06:15:52.079900469Z stdout  
2022-07-06T06:15:52.079879199Z stdout Enjoy!

@Sblop
Copy link

Sblop commented Sep 12, 2022

Go to the pimutils vdirsyncer site, that is the source for vdirsyncer.

@Bleala
Copy link
Owner

Bleala commented May 3, 2023

The solution for this should be this Issue.

I'll close this issue here.

@Bleala Bleala closed this as completed May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants