kidd / org-gcal.el

Org sync with Google Calendar. (active maintained project as of 2019-11-06)
439 stars 47 forks source link

Process epg not running #242

Closed bitozoid closed 1 year ago

bitozoid commented 1 year ago

I have tried to setup org-gcal and have found several issues that I have already solved, until I found this one. Oauth seems to work because somehow I have managed to publish some events after a lot of tries.

I was stuck on

Contacting host: oauth2.googleapis.com:443

but managed to solve it with (gnupg 2.4.3):

(fset 'epg-wait-for-status 'ignore)

However, the oauth secret data seems not to be encrypted/saved. I'm asked for a plstore passphrase, and then:

...
Contacting host: oauth2.googleapis.com:443
error in process filter: epg--status-GET_HIDDEN: Process epg not running: exited abnormally with code 2

error in process filter: Process epg not running: exited abnormally with code 2

Buffer  plstore /home/bitozoid/.config/emacs-profiles/doom1/emacs.d/.local/cache/oauth2-auto.plist modified; kill anyway? (yes, no, save and then kill, ?):

BUG: Attempted to write ‘oauth2-auto’ keys to /home/bitozoid/.config/emacs-profiles/doom1/emacs.d/.local/cache/oauth2-auto.plist, not ‘oauth2-auto-plstore’ (/home/bitozoid/.config/emacs-profiles/doom1/emacs.d/.local/cache/oauth2-auto.plist).  Please report to https://github.com/rhaps0dy/emacs-oauth2-auto/issues/6. Backtrace:

((t oauth2-auto--plstore-write ("rdskrk0h1lg9c8pio154tjntrc@group.calendar.google.c..." org-gcal (:access-token "ya29.a0AfB_byADbdtFlurZonuGKR..." :refresh-token "1//03MVkrwHaumOCCgYIA-Z1of..." :expiration 1693333144)) nil) (t #f(compiled-function () #<bytecode 0x4c7ba13134b337d>) nil nil) (t #f(compiled-function (op value) #<bytecode -0x11bdfb3ba218863a>) (:next #f(compiled-function () #<bytecode 0x198000fa5c91>)) nil) (t iter-next (#f(compiled-function (op value) #<bytecode -0x11bdfb3ba218863a>) #f(compiled-function () #<bytecode 0x198000fa5c91>)) nil) (t aio--step (#f(compiled-function (op value) #<bytecode -0x11bdfb3ba218863a>) #s(aio-promise nil (#[257 "\302\301\300\3#\207" [#s(aio-promise nil nil) #[514 "\1\303\267\202/\0\302\300\242\240\210\301\304\240\207\301\1\240\210\304C\305\306\2\300\301\302%\216\3072)\0\302\242 \210\202!\0000\1\310\240)\210\207\311\312\3\"\207" [(#[0 "\301\302\300\242\"\207" [... signal iter-end-of-sequence] 3]) (#0) (#[0 "\301\302\242\240\210\303\300\242\240\207" [... ... ... #6] 2]) #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (:close 6 :next 15)) nil make-closure #[0 "\300\242?\205\16\0\303\301\242\240\210\302\304\240\207" [V0 V1 V2 V3 nil] 2] cps--yield t error "Unknown iterator operation %S"] 9 "\n\n(fn OP VALUE)"] aio--step] 5 "\n\n(fn VALUE)"])) #f(compiled-function () #<bytecode 0x198000fa5c91>)) nil) (t #f(compiled-function (value) #<bytecode 0xa1714030991ba52>) (#f(compiled-function () #<bytecode 0x198000fa5c91>)) nil) (t apply (#f(compiled-function (value) #<bytecode 0xa1714030991ba52>) #f(compiled-function () #<bytecode 0x198000fa5c91>)) nil) (t timer-event-handler ([t 25838 10377 830551 nil #f(compiled-function (value) #<bytecode 0xa1714030991ba52>) (#f(compiled-function () #<bytecode 0x198000fa5c91>)) nil 951000 nil]) nil) (t aio-wait-for (#s(aio-promise nil nil)) nil) (t org-gcal--get-access-token ("rdskrk0h1lg9c8pio154tjntrc@group.calendar.google.c...") nil) (t org-gcal--post-event ("2023-09-19" "2023-09-19" "My sample event" nil nil "" "rdskrk0h1lg9c8pio154tjntrc@group.calendar.google.c..." #<marker at 18708 in 20230829_134047-my_file.org> "opaque" nil nil nil nil nil) nil) (t org-gcal-post-at-point nil nil) (t funcall-interactively (org-gcal-post-at-point) nil) (t command-execute (org-gcal-post-at-point record) nil) (t execute-extended-command (nil "org-gcal-post-at-point" nil) nil) (t funcall-interactively (execute-extended-command nil "org-gcal-post-at-point" nil) nil) (t command-execute (execute-extended-command) nil))

I have also tried to set asymmetric keys with no success.

I suppose I really need to downgrade somehow to gnupg 2.4.0 (unavailable in my distro).

bitozoid commented 1 year ago

I finally compiled and downgraded to gnupg 2.4.0 and got it working.

Some info about emacs 29.1 and gnupg > 2.4.0: https://www.reddit.com/r/emacs/comments/15hoeby/gnupg_versions_241_and_higher_break_writing_files/