-
-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check folder status before checking ignores #187
Comments
So Syncthing will return 500 for |
yeah, though that could mean other errors, so it's best to check the status, before you check the ignores. |
Actually, I do check the Later on, I get a FolderStatus event, where the The FolderStatus event isn't documented, and neither is the structure of the config, so I'm not sure how |
I think the error field is set in the config. |
If of any use - some info from Windows Event Logs for the crashing SyncTrayzor (v.1.0.32) Application Error:
.NET Runtime:
|
Ah righty, I'll check that when I'm next near a computer. Did the state field replace the invalid field, then? If so, in what version? @scienmind thanks - I think I know what's happening: syncthing changed some details of the API and I wasn't aware. Just need to figure out how best to resolve it. |
API change seem reasonable to blame. |
I don't think we've changed anything in the API |
This case used to appear as a value in the config's invalid field and apparently it no longer does (although we might well be talking around the v0.10 era). |
It should still appear there. If it's not, there is an issue. |
It no longer appears there. |
I don't see an error field. This is the config that's fetched: "folders":[
{
"id":"default",
"path":"C:\\Users\\Antony\\Sync",
"devices":[
{
"deviceID":"XXXXX"
}
],
"readOnly":false,
"rescanIntervalS":60,
"ignorePerms":false,
"autoNormalize":false,
"minDiskFreePct":1,
"versioning":{
"type":"",
"params":{
}
},
"copiers":0,
"pullers":0,
"hashers":0,
"order":"random",
"ignoreDelete":false,
"scanProgressIntervalS":0,
"pullerSleepS":0,
"pullerPauseS":0,
"maxConflicts":-1,
"disableSparseFiles":false,
"invalid":""
}
], |
Well invalid holds the error, hence I call it error field :D |
Heh, ok then! That clears things up slightly - I wasn't sure whether you were referring to the State field being set to Error... Even so, it doesn't look like the field is being set, whatever it's called :D |
If you remove the marker, rescan, it should be set. |
If I remove the marker and restart - which is the case that causes the reported problem, and a case which used to work - it isn't set. That is why this issue is open |
Ok I guess we can close this, and open up one in syncthing. |
Folders can unfail at any point. Don't fetch ignores for failed folders, but do fetch ignores when they unfail. Don't watch failed folders. Fixes #187
@canton7 are the recent commits meant to work around the syncthing's behavior and fix the issue? Tried re-adding the external drive's folder today, and when unmounted, the console is still flooded with those:
On the plus side, it hasn't crashed yet, but maybe i'm just lucky/haven't waited enough... |
The log os expected, it tells you why the folder is not working. |
Yeah, that's just what syncthing does when you have a folder missing. SyncTrayzor is working fine, and Syncthing is also working as designed. |
OK, then I assume I can resurrect the syncing of all unmountable folders. Thanks! |
Related to:
syncthing/syncthing#2630
The text was updated successfully, but these errors were encountered: