Sync between network share drive (CIFS) and seafile

Hi,

Just to let you know…

On seafile pro 6.2.3, i tried to sync a folder (Archives) located on a network drive (CIFS) with Seafile, from a local PC.
It’s a weird idea but it may helps to sync to different servers :

  • Seafile to share on the internet
  • Local CIFS drive to make an archive

The sync process first hangs

Client Seafile.log traces :

[01/19/18 18:03:41] seaf-daemon.c(558): starting seafile client 6.1.3
[01/19/18 18:03:41] seaf-daemon.c(560): seafile source code version 5fc440fe04370308d8dd9de4b1c63a388da68278
[01/19/18 18:03:41] ../common/mq-mgr.c(60): [mq client] mq cilent is started
[01/19/18 18:03:41] ../common/mq-mgr.c(106): [mq mgr] publish to heartbeat mq: seafile.heartbeat
[01/19/18 18:03:41] wt-monitor-win32.c(565): GetQueuedCompletionStatus failed, error code 87[01/19/18 18:03:41] wt-monitor-win32.c(565): GetQueuedCompletionStatus failed, error code 87[01/19/18 18:03:41] wt-monitor-win32.c(565): GetQueuedCompletionStatus failed, error code 87[01/19/18 18:03:41] wt-monitor-win32.c(565): GetQueuedCompletionStatus failed, error code 87[01/19/18 18:03:43] sync-mgr.c(702): Repo '_Projets' sync state transition from 'synchronized' to 'committing'.
[01/19/18 18:08:17] clone-mgr.c(847): Transition clone state for ba143b7b from [init] to [check server].
[01/19/18 18:08:17] [01/19/18 18:08:17] clone-mgr.c(847): Transition clone state for ba143b7b from [check server] to [fetch].
http-tx-mgr.c(4288): Download with HTTP sync protocol version 2.
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'init') --> ('normal', 'check')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'check') --> ('normal', 'commit')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'commit') --> ('normal', 'fs')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'fs') --> ('normal', 'data')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'data') --> ('finished', 'finished')
[01/19/18 18:08:17] wt-monitor-win32.c(565): GetQueuedCompletionStatus failed, error code 87[01/19/18 18:08:17] clone-mgr.c(847): Transition clone state for ba143b7b from [fetch] to [done].
[01/19/18 18:10:17] sync-mgr.c(832): Failed to start http upload: Empty argument(s)
[01/19/18 18:10:17] sync-mgr.c(764): Repo '_Projets' sync state transition from committing to 'error': 'Failed to start upload.'.
[01/19/18 18:10:18] sync-mgr.c(702): Repo 'Archives' sync state transition from 'synchronized' to 'committing'.
[01/19/18 18:10:18] repo-mgr.c(3570): Can't find worktree status for repo Archives(ba143b7b).
[01/19/18 18:10:18] repo-mgr.c(3834): Failed to apply worktree changes to index.
[01/19/18 18:10:18] sync-mgr.c(1671): [Sync mgr] Failed to commit to repo Archives(ba143b7b).
[01/19/18 18:10:18] sync-mgr.c(764): Repo 'Archives' sync state transition from committing to 'error': 'Failed to index files.'.
[01/19/18 18:10:19] sync-mgr.c(702): Repo 'Archives' sync state transition from 'synchronized' to 'committing'.

But then it starts to sync

[01/19/18 18:08:17] clone-mgr.c(847): Transition clone state for ba143b7b from [init] to [check server].
[01/19/18 18:08:17] [01/19/18 18:08:17] clone-mgr.c(847): Transition clone state for ba143b7b from [check server] to [fetch].
http-tx-mgr.c(4288): Download with HTTP sync protocol version 2.
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'init') --> ('normal', 'check')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'check') --> ('normal', 'commit')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'commit') --> ('normal', 'fs')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'fs') --> ('normal', 'data')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'data') --> ('finished', 'finished')
[01/19/18 18:08:17] wt-monitor-win32.c(565): GetQueuedCompletionStatus failed, error code 87[01/19/18 18:08:17] clone-mgr.c(847): Transition clone state for ba143b7b from [fetch] to [done].
[01/19/18 18:10:17] sync-mgr.c(832): Failed to start http upload: Empty argument(s)
[01/19/18 18:10:17] sync-mgr.c(764): Repo '_Projets' sync state transition from committing to 'error': 'Failed to start upload.'.
[01/19/18 18:10:18] sync-mgr.c(702): Repo 'Archives' sync state transition from 'synchronized' to 'committing'.
[01/19/18 18:10:18] repo-mgr.c(3570): Can't find worktree status for repo Archives(ba143b7b).
[01/19/18 18:10:18] repo-mgr.c(3834): Failed to apply worktree changes to index.
[01/19/18 18:10:18] sync-mgr.c(1671): [Sync mgr] Failed to commit to repo Archives(ba143b7b).
[01/19/18 18:10:18] sync-mgr.c(764): Repo 'Archives' sync state transition from committing to 'error': 'Failed to index files.'.
[01/19/18 18:10:19] sync-mgr.c(702): Repo 'Archives' sync state transition from 'synchronized' to 'committing'.
[01/19/18 18:15:27] sync-mgr.c(702): Repo 'Archives' sync state transition from 'committing' to 'uploading'.
[01/19/18 18:15:27] http-tx-mgr.c(3423): Upload with HTTP sync protocol version 2.
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'init') --> ('normal', 'check')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'check') --> ('normal', 'commit')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'commit') --> ('normal', 'fs')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'fs') --> ('normal', 'data')
[01/19/18 18:08:17] http-tx-mgr.c(1132): Transfer repo 'ba143b7b': ('normal', 'data') --> ('finished', 'finished')
[01/19/18 18:08:17] wt-monitor-win32.c(565): GetQueuedCompletionStatus failed, error code 87[01/19/18 18:08:17] clone-mgr.c(847): Transition clone state for ba143b7b from [fetch] to [done].
[01/19/18 18:10:17] sync-mgr.c(832): Failed to start http upload: Empty argument(s)

And then it completes the sync

[01/19/18 18:20:29] sync-mgr.c(702): Repo 'Archives' sync state transition from 'uploading' to 'initializing'.
[01/19/18 18:20:29] sync-mgr.c(1516): Removing blocks for repo Archives(ba143b7b).
[01/19/18 18:20:32] sync-mgr.c(702): Repo 'Archives' sync state transition from 'synchronized' to 'committing'.
[01/19/18 18:20:32] sync-mgr.c(702): Repo 'Archives' sync state transition from 'committing' to 'initializing'.
[01/19/18 18:20:43] sync-mgr.c(702): Repo 'Archives' sync state transition from 'synchronized' to 'committing'.
[01/19/18 18:20:43] sync-mgr.c(702): Repo 'Archives' sync state transition from 'committing' to 'initializing'.

Regards,

Gautier

1 Like

Hi,

In our architecture, our users local documents are located in a CIFS Share (Windows Documents Shortcut points to \\server$homes\user\documents CIFS Path)

In this configuration, syncing is very slow.

The process begins by indexing during more than 20 mn on a 8Gb Library.

The CPU process is very high

Regards,

Gautier