Syncing Taskwarrior with GCS to start a new replica does not work #4122
Replies: 2 comments 2 replies
-
|
Your intuition is good. You did not mention seeing any snapshot files in the bucket, and indeed those would contain all of the tasks, while versions contain only deltas. So the bug is that the second machine is signalling success when it has not actually done anything. I can reproduce this with a local task server, so it is not specific to GCP. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
I moved this to an issue, since it represents a bug. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I'm trying to understand why I am unable to use
task syncto initiate tracking on a new replica of my tasks. Taskwarrior returns a code 0 with a success message, but nothing is imported. 🤷🏻♂️My
task show verboseoutput is as follows:Given that, despite verbosity for sync being set, nothing really meaningful has been shown, I'll go through what exactly happened and I would greatly appreciate if anyone could provide some light on what might be causing this misbehaviour. 🙏🏻
Context
I have a Google Cloud Storage bucket set up to synchronise my tasks. It was working flawlessly across two separate machines, so both machines had correctly set up their
gcloudauthentication.At some point, I wanted to change the encryption secret to a different passphrase, and here's what I did on the main machine I use with Taskwarrior:
sync.encryption_secretconfiguration to the desired passphrase;task sync.If I check the files in my bucket, I can confirm that the following are present:
salt, created when I rantask sync;latest(currently sitting at 32 B), with its "Last Modified" pointing to the last sync command I ran on the main machine;v-hashfiles of varying sizes, each one matching atask synccommand run where changes had been enacted.The Issue
On the additional machine, the following has been done:
sync.encryption_secretconfiguration to match the new passphrase;.taskdirectory to clean the entire task list.I have tried to run both
task syncandtask sync init, and both commands output the message:However, despite this, not a single task is imported after the operation, and the task list is empty.
I am unfortunately clueless as to why there is a sucess message, but no replication of the tasks.
Main Suspicion
My suspicion, despite being unable to confirm it myself, is that the sync operations run from the main machine in the Context section do not actually send all the tasks to the GCS bucket. From my understanding, the
v-hashfiles refer only to diffs between one sync and another.For instance, I do remember that after running step 3 to sync the tasks after resetting the bucket, only the
saltfile had been created with a 16-byte size. Given that I have more than 1,000 tasks in my list, I can at least infer thissaltfile does not store any task data.I hope this information is sufficient for you guys to help me with this issue, I have tried to be as thorough in my description as possible. 🙇🏻♂️ If you need any additional information to be able to understand the situation, please let me know and I appreciate beforehand any help! 😉
Beta Was this translation helpful? Give feedback.
All reactions