Hello! Please help me understand - why does the CLI query show the folder state as “idle”? But in fact, in the GUI the folder state is “Out of state” due to the error “Access is denied”
Because the GUI enriches the information from the API with some logic of its own. (idle and needs changes → out of sync)
Did I understand correctly - “idle” and “needs changes” in CLI same as “out of sync” in GUI? But why then do folders in the “up to date” state also have the “idle” status in the CLI too? In CLI “idle” same as “out of sync” and “up to date”
Idle with errors is shown as “Out of Sync” and idle without errors is shown as “Up to Date”. Maybe there’s even more to it - I don’t remember all the details right now.
I implemented this additional GUI logic for Syncthing Tray which also comes with a small CLI tool called syncthingctl
that also applies this logic, too. I wrote syncthingctl
before Syncthing had its own CLI but since I had a totally different focus with syncthingctl
it is still complementary to the official CLI, e.g. its status command is less verbose more user friendly (but also less machine friendly).
Idle just means it’s not right now doing anything. That will be the state almost always; if there’s something it tries to sync but fails it will spend a short time in syncing
, apparently fail to do whatever it needs to, and then rest in idle
until the next attempt.
I understand, thank you!