[API] Check for completion when ignores files prevent 100% completion?

I am suffering from this bug which probably won’t have a fix because it’s quite complicated. I was wondering in this case is it possible to still rely on the API to check for “essentially 100% completion” (ignoring ignored folders which prevent 100% completion from being reported because of the bug).

What would be the recommendation to check for “all other files except ignored folders are synced”? My existing script that runs on system startup and on system shutdown simply waits for 30 seconds and checks for 100% completion, but because it never reaches 100% for the above reason, this condition is never met. Checking arbitrarily for 99% completion is error-prone and not good enough.

Much appreciated.

Or you can simplify life by having the same ignore patterns so the devices know what to expect

@calmh I do use the same .stignore file across all devices. My issue was marked as a duplicate: Ignored directories reported as out of sync · Issue #9804 · syncthing/syncthing · GitHub. This comment says a workaround is to “create invalid entries” which I took to mean simply ensure the ignored directories that show up as out-of-sync on all the devices exist on all devices, but they do already.

Then that issue should have nothing to do with what you’re experiencing, which you should troubleshoot accordingly.

@calmh What other troubleshooting is needed besides already submitted issue that was immediately marked as duplicate without request for additional information along with this thread from a year ago?

Yeah it’s not related to the issue it was supposedly a duplicate of. Showing a syncthing cli debug file for each level of the path down to the supposedly out of sync item might shed some light. There is some magic going on with the unignored-sub-path thing because the intermediate directories need to be represented somehow even though they’re supposed to be ignored.