coddingtonbear / inthe.am

Access your Taskwarrior tasks from any browser anywhere
https://inthe.am/
GNU Affero General Public License v3.0
593 stars 51 forks source link

500 Client sync key not found #386

Closed apraga closed 2 years ago

apraga commented 2 years ago

Hi,

When doing a task sync init, I have : Sync failed. The Taskserver returned error: 500 Unrecognized taskwarrior file format. I have setup the folder according to the instructions. There are no backlog, only a completed.data andpending.data.

Tthe inital sync works when removing completed.data but the website is not updated. The log on the server says

An error was encountered when attempting to sync Inthe.AM's UI with the Taskserver: 2: :: 
Configuration override rc.verbose:new-uuid 
Configuration override rc.json.array:TRUE 
Configuration override rc.confirmation:no 
Configuration override rc.dependency.confirmation:no 
Configuration override rc.recurrence.confirmation:no 
Configuration override rc.gc:off 
Configuration override rc.uda.intheamattachments.type:string 
Configuration override rc.uda.intheamattachments.label:"Inthe.AM Attachments" 
Configuration override rc.uda.intheamoriginalemailsubject.type:string 
Configuration override rc.uda.intheamoriginalemailsubject.label:"Inthe.AM E-mail Subject" 
Configuration override rc.uda.intheamoriginalemailid.type:numeric 
Configuration override rc.uda.intheamoriginalemailid.label:"Inthe.AM E-mail ID" 
Configuration override rc.uda.intheamtrelloid.type:string 
Configuration override rc.uda.intheamtrelloid.label:"Inthe.AM Trello Object ID" 
Configuration override rc.uda.intheamtrelloboardid.type:string 
Configuration override rc.uda.intheamtrelloboardid.label:"Inthe.AM Trello Board ID" 
Configuration override rc.uda.intheamtrellolistid.type:string 
Configuration override rc.uda.intheamtrellolistid.label:"Inthe.AM Trello List ID" 
Configuration override rc.uda.intheamtrellolistposition.type:numeric 
Configuration override rc.uda.intheamtrellolistposition.label:"Inthe.AM Trello Card Position in List" 
Configuration override rc.uda.intheamtrellolistname.type:string 
Configuration override rc.uda.intheamtrellolistname.label:"Inthe.AM Trello List Name" 
Configuration override rc.uda.intheamtrellourl.type:string 
Configuration override rc.uda.intheamtrellourl.label:"Inthe.AM Trello URL" 
Configuration override rc.uda.intheamtrellodescription.type:string 
Configuration override rc.uda.intheamtrellodescription.label:"Inthe.AM Trello Description" 
Configuration override rc.uda.intheamtrellolastupdated.type:string 
Configuration override rc.uda.intheamtrellolastupdated.label:"Inthe.AM Trello Last Updated" 
Configuration override rc.uda.intheamduplicateof.type:string 
Configuration override rc.uda.intheamduplicateof.label:"Inthe.AM Duplicate of Task" 
Configuration override rc.uda.intheammergedfrom.type:string 
Configuration override rc.uda.intheammergedfrom.label:"Inthe.AM Duplicate Tasks Merged" Sync failed. The Taskserver returned error: 500 Client sync key not found..

Any idea ? Thanks

coddingtonbear commented 2 years ago

"Unrecognized taskwarrior file format" means that your local taskwarrior client is sending data in a format that the server doesn't recognize. This might mean that you have some corrupted data locally.

The other error "Client sync key not found" means that the UI and the taskserver can't agree about what point in time their histories diverge. This might be caused by your running task sync init; because I believe that'll erase that history.

There is a red button in your Inthe.AM configuration's "Danger Zone" section you can use for getting your task account back to a clean slate. I think that's probably the right choice at this point. You might need to re-download keys afterward, but trust what the UI says above me here.

Good luck!

apraga commented 2 years ago

Thanks for the quick answer. For posterity, here’s what I did.

I’ve cleared task data on the website multiple time and removed backlog.data as advised. None of this worked.

However, sync seems to be working now but I have no idea what made it work.