关于Windows客户端多帐号的问题


#1

Seafile Windows客户端,添加一个内网的帐户,一个外网的帐户,同时使用时,经常出现网络连接断、服务器内部错误等问题,建议:
一、客户端改多进程或线程方式,解决相互冲突的问题
二、切换方式改为TAB页,并行同步
三、请教有没有办法启动Seafile多个进程,每个进程负责一个帐户?


#2

这个应该是网络或者服务器问题本身导致的,与使用多个账号无关


#3

应该是你服务器配置或者安装有问题,你的server是什么平台,看看是否有问题,一般和客户端没啥关系。


#4

内网服务器是Centos,外网是运行在ARM上的Ubuntu。单独运行都很好,两个一起来就出问题。


#5

你可以发一下客户端的 seafile.log 来看一下。在托盘图标那里可以点“打开日志文件夹”。


#6

[12/21/18 11:07:44] clone-mgr.c(715): Transition clone state for 5ea7f114 from [init] to [check server].
[12/21/18 11:07:45] clone-mgr.c(715): Transition clone state for 5ea7f114 from [check server] to [fetch].
[12/21/18 11:07:45] http-tx-mgr.c(1181): Transfer repo ‘5ea7f114’: (‘normal’, ‘init’) --> (‘normal’, ‘check’)
[12/21/18 11:07:45] http-tx-mgr.c(1181): Transfer repo ‘5ea7f114’: (‘normal’, ‘check’) --> (‘normal’, ‘commit’)
[12/21/18 11:07:45] http-tx-mgr.c(1181): Transfer repo ‘5ea7f114’: (‘normal’, ‘commit’) --> (‘normal’, ‘fs’)
[12/21/18 11:08:06] http-tx-mgr.c(1070): libcurl failed to POST http://A.B.C.D:8082/repo/head-commits-multi/: Couldn’t connect to server.
[12/21/18 11:08:57] http-tx-mgr.c(1070): libcurl failed to POST http://A.B.C.D:8082/repo/head-commits-multi/: Couldn’t connect to server.
[12/21/18 11:09:34] http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/ec49fd96-b8f2-4ade-9a1c-55f016e266d1/commit/HEAD: Couldn’t connect to server.
[12/21/18 11:09:34] sync-mgr.c(621): Repo ‘Photo’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:09:34] [12/21/18 11:09:34] http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/8f6fabc0-0c59-4c0b-9523-cbac782b209c/commit/HEAD: Couldn’t connect to server.
http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/c395c8f8-df97-4fae-ba41-25c7fd6744e4/commit/HEAD: Couldn’t connect to server.
[12/21/18 11:09:34] sync-mgr.c(621): Repo ‘Files’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:09:34] sync-mgr.c(621): Repo ‘OneNote’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:09:41] http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/b64ca081-5d42-4755-be30-e2db8d60df7d/commit/HEAD: Couldn’t connect to server.
[12/21/18 11:09:41] sync-mgr.c(621): Repo ‘Code’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:09:48] http-tx-mgr.c(1070): libcurl failed to POST http://A.B.C.D:8082/repo/head-commits-multi/: Couldn’t connect to server.
[12/21/18 11:10:05] [12/21/18 11:10:05] http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/c395c8f8-df97-4fae-ba41-25c7fd6744e4/commit/HEAD: Couldn’t connect to server.
http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/ec49fd96-b8f2-4ade-9a1c-55f016e266d1/commit/HEAD: Couldn’t connect to server.
[12/21/18 11:10:05] http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/8f6fabc0-0c59-4c0b-9523-cbac782b209c/commit/HEAD: Couldn’t connect to server.
[12/21/18 11:10:05] sync-mgr.c(621): Repo ‘Photo’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:10:05] sync-mgr.c(621): Repo ‘OneNote’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:10:05] sync-mgr.c(621): Repo ‘Files’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:10:12] http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/b64ca081-5d42-4755-be30-e2db8d60df7d/commit/HEAD: Couldn’t connect to server.
[12/21/18 11:10:15] sync-mgr.c(621): Repo ‘Code’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:10:36] http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/ec49fd96-b8f2-4ade-9a1c-55f016e266d1/commit/HEAD: Couldn’t connect to server.
[12/21/18 11:10:36] sync-mgr.c(621): Repo ‘Photo’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:10:36] http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/c395c8f8-df97-4fae-ba41-25c7fd6744e4/commit/HEAD: Couldn’t connect to server.
[12/21/18 11:10:36] sync-mgr.c(621): Repo ‘OneNote’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:10:36] http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/8f6fabc0-0c59-4c0b-9523-cbac782b209c/commit/HEAD: Couldn’t connect to server.
[12/21/18 11:10:36] sync-mgr.c(621): Repo ‘Files’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:10:39] http-tx-mgr.c(1070): libcurl failed to POST http://A.B.C.D:8082/repo/head-commits-multi/: Couldn’t connect to server.
[12/21/18 11:10:43] http-tx-mgr.c(808): libcurl failed to GET http://A.B.C.D:8082/repo/b64ca081-5d42-4755-be30-e2db8d60df7d/commit/HEAD: Couldn’t connect to server.
[12/21/18 11:10:43] sync-mgr.c(621): Repo ‘Code’ sync state transition from initializing to ‘error’: ‘Failed to get sync info from server.’.
[12/21/18 11:11:23] http-tx-mgr.c(1181): Transfer repo ‘5ea7f114’: (‘normal’, ‘data’) --> (‘canceled’, ‘data’)
[12/21/18 11:11:23] clone-mgr.c(715): Transition clone state for 5ea7f114 from [fetch] to [canceling].
[12/21/18 11:13:14] http-tx-mgr.c(808): libcurl failed to GET http://10.X.Y.Z/seafhttp/repo/5ea7f114-122b-4dde-9ced-55273e4c56a4/block/86e89a8b10da1494a46a04f721125f4ad5751b7e: Failed writing received data to disk/application.
[12/21/18 11:13:14] http-tx-mgr.c(1181): Transfer repo ‘5ea7f114’: (‘canceled’, ‘data’) --> (‘canceled’, ‘finished’)
[12/21/18 11:13:14] clone-mgr.c(715): Transition clone state for 5ea7f114 from [canceling] to [canceled].


#7

从你的日志看来是由于服务器连接不上引起的,不一定跟代码有关系。你用的是什么版本的客户端呢?如果是旧版的,可以尝试升级到最新版本。