taskwarrior-flutter icon indicating copy to clipboard operation
taskwarrior-flutter copied to clipboard

Cannot setup sync (v2)

Open DaitiDay opened this issue 8 months ago • 4 comments

Describe your issue

I'm trying to setup sync with a local taskserver running on a rpi. The server works just fine (tested with 2 laptops), but if I go into the app settings and add certificates and taskrc file (a copy of the one I use on the laptop, without taskd.certificate, taskd.key and taskd.ca), I get all green ticks but at the bottom the popup says "Please setup your TaskServer"

Steps to reproduce

  1. Go to Menu
  2. Profile -> Manage selected profile -> Configure Taskserver
  3. Add taskrc (as explained above)
  4. Configure Server Certificate set to ca.cert.pem
  5. Configure your certificate set to first_last.cert.pem
  6. Configure your key set to first_last.key.pem
  7. Press the lightning (?) icon in the top right corner
  8. All green ticks
  9. Popup at the bottom of the screen says "Please setup your TaskServer"

What was the expected result?

Taskserver correctly setup and sync enabled

Put here any screenshots or videos (optional)

No response

How can we contact you (optional)

No response

Would you like to work on this issue?

None

By submitting this issue, I have confirmed that:

  • [x] I have starred the repo ⭐ and watched 👀 it on GitHub and followed the contribution guidelines.

DaitiDay avatar Mar 26 '25 18:03 DaitiDay

Any help?

DaitiDay avatar Mar 29 '25 18:03 DaitiDay

Have same issue... I think it may be related to the certificates. Personally I use self-signed certificates and in taskrc these lines:

taskd.trust=ignore hostname

Do you have the same setting by any chance?

DeadlySquad13 avatar Mar 31 '25 07:03 DeadlySquad13

Related https://github.com/CCExtractor/taskwarrior-flutter/issues/428#issue-2773330452

DeadlySquad13 avatar Mar 31 '25 07:03 DeadlySquad13

I tried to put that in taskrc but seems like it's not being loaded... I tried with a simplified taskrc:

taskd.server={host}:53589
taskd.credentials={org}\/{client}\/{key}
taskd.trust=ignore hostname

But when I load it (via file, not pasting the content) I get:

taskd.server={host}:53589
taskd.credentials={org}\/{client}\/{key}

Edit: since for some reason my android phone does not take up local DNS set with pihole, I used the local IP of the taskserver as {host}, but I tried with the hostname too just to be sure, with no changes.

DaitiDay avatar Mar 31 '25 07:03 DaitiDay