taskwarrior: Can no longer sync and `task diag` throwing tons of "nonexistent task" errors

To report a bug…

  • What command(s) did you run? Ran task sync.

Got an error: Sync failed. The Taskserver returned error: 500 Client sync key not found.

“Hmm, that’s weird. Worked fine a couple days ago.”

Then ran: task sync init

Got: Sync failed. The Taskserver returned error: 500 ERROR: Could not find common ancestor for abed5db6-500b-49e9-9a4b-1edc10f63165

Ran task sync again: task sync

This time, got:

Sync failed. The Taskserver returned error: 500 ERROR: ‘253402225200’ is not a valid date in the ‘m/d/Y’ format.

“WTF”?

Ran task sync init again hoping for a different outcome but got:

Sync failed. The Taskserver returned error: 500 ERROR: '253402225200' is not a valid date in the 'm/d/Y' format. again.

Couple more attempts (why does trying the same thing never work) but no dice.

Run task diagnostics

task 2.6.1
   Platform: Darwin

Compiler
    Version: Apple LLVM 13.0.0 (clang-1300.0.29.3)
       Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
 Compliance: C++17

Build Features
      CMake: 3.21.3
    libuuid: libuuid + uuid_unparse_lower
  libgnutls: 3.6.16
 Build type: Release

Configuration
       File: /Users/me/.taskrc (found), 3925 bytes, mode 100644
       Data: /Users/me/.task_work (found), dir, mode 40755
    Locking: Enabled
         GC: Enabled
     Server: tw.example.com:53589
         CA: -
Certificate: /Users/me/.task_work/cert.cert.pem, readable, 4042 bytes
        Key: /Users/me/.task_work/key.key.pem, readable, 24742 bytes
      Trust: strict
    Ciphers: NORMAL
      Creds: Blah/Blah/************************************

Hooks
     System: Enabled
   Location: /Users/me/.task_work/hooks
     Active: on-add-pirate    (executable)
             on-modify-pirate (executable)
   Inactive: .DS_Store        (not executable)unrecognized hook name

Tests
   Terminal: 203x42
       Dups: Scanned 1830 tasks for duplicate UUIDs:
             No duplicates found
 Broken ref: Scanned 1830 tasks for broken references:
             Task c3ae8515-4916-4593-ad2b-bc813ac27c20 depends on nonexistent task: [\"[\"[\"[\"[\"[\"[\"[\"[\"[\"[\"[\"b723baf3-2f3c-42ad-bad9-c9526efa0ecf\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]
             Task b5c467be-e7ff-4239-87c6-4b503bb522e2 depends on nonexistent task: [\"abe46ee9-cdec-4dd0-9093-6783164a9250\"]
             Task 9089c55b-3708-43dd-8735-ae629e885144 depends on nonexistent task: [\"[\"[\"[\"[\"[\"[\"[\"[\"[\"[\"[\"b723baf3-2f3c-42ad-bad9-c9526efa0ecf\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]
             Task f3c5420c-7b64-43e1-8242-b36d206653b7 depends on nonexistent task: [\"[\"[\"[\"[\"[\"[\"[\"[\"[\"[\"[\"b723baf3-2f3c-42ad-bad9-c9526efa0ecf\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]
             Task 4b780a7a-c819-4a8b-9b1b-732bd2faa1ad depends on nonexistent task: [\"[\"[\"[\"[\"[\"[\"[\"[\"[\"[\"[\"b723baf3-2f3c-42ad-bad9-c9526efa0ecf\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]\"]

This goes on for hundreds or thousands of lines.

Tasks are listing fine and everything else appears normal.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

@sdondley In my original message I was indeed referring to the escaping of the depends attribute, as @bradyt points out.

I finally noticed your second comment. Glad that you seem to have the half of the story where you know how to fix this. One comment in reply:

Why is tx.data smaller now? I think because it no longer has the full history of sync updates. The client sent the current state, and that’s all that Taskserver has now. That seems fine.

Yeah, over 8 thousands years. I did the math.

I’m a good procrastinator, but I’m not that fucking good.