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 403. [10/28/16 09:30:41] http-tx-mgr.c(3290): Upload permission denied for repo e1eab3ae on server [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
Also maybe resync option helps, but it is unavailable on command-line seaf-cli version of client, so I create issue about this too:

Syncthing have “Send only” (or “Folder Master”) mode for this feature

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!


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.