bgregos / foreground

Simple Android personal task manager with Taskwarrior integration
Apache License 2.0
253 stars 15 forks source link

Sync issue with taskd 1.1.0 on FreeBSD #138

Closed norbu09 closed 2 years ago

norbu09 commented 2 years ago

I have different results with foreground and task with the same config. Here is the log line from taskd when syncing from task

2022-03-09 09:00:56 [13] 'sync' from 'Public/Lenz' using 'task 2.6.1' at 10.1.10.238:60382

using the same certs i get this with foreground

2022-03-09 09:00:35 INFO Auth failure: org 'Public' user 'Lenz' unknown

i haven't used taskwarrior in years and just wanted to set everything up again and really like foreground - anything i can help with to get this debugged?

bradyt commented 2 years ago

For your setting taskd.credentials = Public/Lenz/<key>, do you have the same <key> value at task and Foreground?

That error seems to align with taskd checking for the directory $TASKDDATA/orgs/Public/users/<key>/, as suggested by https://github.com/GothenburgBitFactory/taskserver/blob/v1.1.0/src/Database.cpp#L99-L103. You'll only see user=Lenz in the file config there.

The value of <key> is a bit secret, by the way, please don't share it here if your task list has sensitive data.

norbu09 commented 2 years ago

Thanks for the help. the server is only reachable internally so no issue with sharing IDs :)

i did track it down to a typo in the ID after all - checked it a few times before posting, still had a typo. so sorry for bothering you