coddingtonbear/inthe.am

Error in the pull function: Sync failed

poetaman opened this issue · 3 comments

It used to work, but in last months not really. This is what I get:

❯ task sync
Syncing with inthe.am:53589

Failed to receive header: Error in the pull function.
Sync failed.  Could not connect to the Taskserver.

Up. Doesn't work since yesterday. Same thing with inthe.am.

@wpawlikowski Actually it works for me now since October. Don't remember what all I changed, I think taskd.credentials had changed https://inthe.am/configure/synchronization change over time? @coddingtonbear Do taskd.credentials expire after a period? Not sure as I backed up the local files in a different folder and had reinstalled everything. One other thing I changed is that all of my directories are all my files are under ~/.task, and the config is in ~/.taskrc. I had tried other combination of folder and config file locations, but they didn't work. That was because one of: taskwarrior, timewarrior, or inthe.am setup script did not like other location for these files.

Contents of ~/.taskrc:

data.location=/Users/poetaman/.task
taskd.certificate=/Users/poetaman/.task/private.cert
taskd.key=/Users/poetaman/.task/private.key
taskd.ca=/Users/poetaman/.task/ca.cert.pem
taskd.server=inthe.am:<somenumber>
taskd.credentials=inthe_am/<somename>/<someid>
taskd.trust=ignore hostname

It looks like certificate/key/ca was expired, now it works like a charm. Thank you for idea!