Read-only seafile library sync breaks if local files changed

I configure local Seafile client for sync library with readonly shared permissions for current login. First and next syncs works well. But when user change file in synced folder locally, sync process breaks.

In logs I see those errors:
[10/28/16 09:30:41] http-tx-mgr.c(3272): Upload with HTTP sync protocol version 1. [10/28/16 09:30:41] http-tx-mgr.c(1012): Transfer repo 'e1eab3ae': ('normal', 'init') --> ('normal', 'check') [10/28/16 09:30:41] http-tx-mgr.c(2124): Bad response code for GET http://example.com/seafhttp/repo/e8eab3ae-e582-4093-8f26-da9555e4e1d7/permission-check/?op=upload&client_id=5543ed4eb98d52923c6e573c99e4ef0619df6f1a&client_name=anonymous: 403. [10/28/16 09:30:41] http-tx-mgr.c(3290): Upload permission denied for repo e1eab3ae on server http://example.com. [10/28/16 09:30:41] http-tx-mgr.c(1012): Transfer repo 'e8eab3ae': ('normal', 'check') --> ('error', 'finished') [10/28/16 09:30:41] sync-mgr.c(728): Repo 'myrepo' sync state transition from uploading to 'error': 'You do not have permission to access this library'.

Restarting seafile server and client don’t help. How to fix this problem and force resync library from server, with overwrite local changes?

Seems that this is issue, so I move this to https://github.com/haiwen/seafile/issues/1792
Also maybe resync option helps, but it is unavailable on command-line seaf-cli version of client, so I create issue about this too: https://github.com/haiwen/seafile/issues/1791

Syncthing have “Send only” (or “Folder Master”) mode for this feature https://docs.syncthing.net/users/foldertypes.html#folder-sendonly

So we can mark one place as master, and it do one-way read-only sync, so restore all local changes from master folder. Will be good to see same thing in Seafile too!

2 Likes

Would appreciate that feature aswell.

1 Like

I test topic case with Syncthing and it works well! When I add or delete files in slave clients, after some time folder is restored from master client (new filed is deleted, removed is restored, changed is synced back).

So Syncthing solve this task well, and our company must move this tast from Seafile to Syncthing server. Also Syncthing can sync file owners (when running as root).

Will be good to see same behavior of one-way sync in Seafile server, for solve all tasks via one sync tool, not two.