[solved] Sync client error while validating patch > update to 0.9.3

OS: Windows 11
Client: v0.9.2 - ad58523870c3c03ec01b0f22800a27c572cf3aa3
Server: 4.0.5 - 406762a4b5bff7b60189291ad4ee16c69a94ecd7 → Ubuntu 22.04.1
Synchronization issue

I get an “errors detected while validating patch error” in the app logs it seems like some ETag missmatch between the server files and the ones downloaded/computed by the client:

2023-01-10T11:23:52.358+0100	INFO	sync-task	There are still some operations not validated	{"count": 24, "first error": "eTag are not similar"}

2023-01-10T11:23:52.358+0100	ERROR	sync-task	Could not validate changes on target	{"error": "eTag are not similar", "errorVerbose": "eTag are not similar\ngithub.com/pydio/cells/common/sync/merger.(*TreePatch).validateOperation\n\t/ext-go/1/src/github.com/pydio/cells/common/sync/merger/tree-patch-validate.go:140\ngithub.com/pydio/cells/common/sync/merger.(*TreePatch).validateWalking.func1\n\t/ext-go/1/src/github.com/pydio/cells/common/sync/merger/tree-patch-validate.go:107\ngithub.com/pydio/cells/common/sync/merger.(*TreeNode).WalkOperations\n\t/ext-go/1/src/github.com/pydio/cells/common/sync/merger/tree-node-operations.go:145\ngithub.com/pydio/cells/common/sync/merger.(*TreeNode).WalkOperations\n\t/ext-go/1/src/github.com/pydio/cells/common/sync/merger/tree-node-operations.go:152\ngithub.com/pydio/cells/common/sync/merger.(*TreePatch).validateWalking\n\t/ext-go/1/src/github.com/pydio/cells/common/sync/merger/tree-patch-validate.go:103\ngithub.com/pydio/cells/common/sync/merger.(*TreePatch).validateEndpoint\n\t/ext-go/1/src/github.com/pydio/cells/common/sync/merger/tree-patch-validate.go:85\ngithub.com/pydio/cells/common/sync/merger.(*TreePatch).Validate.func1\n\t/ext-go/1/src/github.com/pydio/cells/common/sync/merger/tree-patch-validate.go:41\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1357"}

2023-01-10T11:23:52.358+0100	ERROR	sync-task	Could not validate patch	{"error": "errors detected while validating patch", "errorVerbose": "errors detected while validating patch\ngithub.com/pydio/cells/common/sync/merger.(*TreePatch).Validate\n\t/ext-go/1/src/github.com/pydio/cells/common/sync/merger/tree-patch-validate.go:56\ngithub.com/pydio/cells/common/sync/proc.(*Processor).Process\n\t/ext-go/1/src/github.com/pydio/cells/common/sync/proc/processor.go:259\ngithub.com/pydio/cells/common/sync/proc.(*ConnectedProcessor).ProcessPatches\n\t/ext-go/1/src/github.com/pydio/cells/common/sync/proc/processor-locker.go:76\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1357"}

2023-01-10T11:23:52.358+0100	ERROR	sync-task	Status: Errors detected while validating patch - Progress: 100%

2023-01-10T11:23:52.360+0100	INFO	sync-task	Got Stats for fs:///A:/*****/jelly-music	{"stats": {"HasChildrenInfo":true,"HasSizeInfo":true,"Size":605622834,"Folders":18,"Files":24}}

2023-01-10T11:23:52.552+0100	INFO	sync-task	Got Stats for https://*****/jelly-music	{"stats": {"HasChildrenInfo":false,"HasSizeInfo":true,"Size":605622834,"Folders":0,"Files":0}}

2023-01-10T11:23:52.552+0100	INFO	sync-task	Stats after running patch

2023-01-10T11:23:52.552+0100	ERROR	sync-task	Processing ended with 1 errors!

2023-01-10T11:25:30.475+0100	ERROR	endpoint.cells.remote	Stopping watcher on errorrpc error: code = DeadlineExceeded desc = context deadline exceeded


Any help would be appreciated…

This issue also persists after a full resync, and complete deletion of all files

Hello, thanks for posting !

It is not officially released yet, but can you download this version Index of /pub/cells-sync/release/0.9.3 and retry? There is an eTag incompatibility introduced in server v4, documentation will soon be published on that topic.

Best

Hey, thanks for the quick reply!
I think v0.9.3 does indeed fix the problem :). I will keep an eye out for any further problems and will report anything here.
So far I really like the new cells.

Thanks

Hi, I realise this is an old thread, however this is an error I keep getting on a daily basis.

I’m running Pydio Cells Home Edition 4.4.15 (the latest stable version at the time of writing) on Ubuntu Linux, and CellsSync 0.9.4 (also the latest stable) on macOS and Windows 11 clients. I have the server behind a Caddy 2 reverse proxy, set up as described in the official documents.

Despite the above comments stating that upgrading to CellsSync 0.9.3 fixed the issue, I can confirm that I get the “errors detected while validating patch” daily, as new files are added on the filesystem and synced, and further confirm that I get them on the uploading clients, as well as on downloading ones (those which haven’t created the files and are only synchronising them from the server). The error is only an annoyance; it appears that nothing has actually gone wrong: the files are accessible and valid (uncorrupted). Usually, pausing the task, followed by resuming it results in a clean synchronisation with no errors. From a UX perspective, though, it looks bad as it makes non-technical users of the system fear that something has gone wrong, which then becomes a trust problem.

Is there anything I can do to help debug this problem, leading to an improvement in the next version?

Thanks

1 Like