IOS客户端同步数据库时提示上传出错

问题描述:
服务器版本:5.1.2
某用户的IOS客户端一个资料库同步失败
提示:ERROR OCCURED IN UPLOAD
另外两个用户的windows客户端可以成功同步资料库

可疑操作:
同步失败前3天,曾发现全部数据约130G,比真实资料库80G大不少。于是通过./seaf-gc.sh 清除过约50G的已删除数据,当时提示一切正常,成功清除。

服务器端Log

seafile.log
[07/04/2017 07:51:05 AM] http-server.c(1192): Remote head commit 77c96153-5414-4ada-a4e4-310c53d3df45:116ea4e9701e8f4a085f86a3e589ca8cd6faba61 not found.
[07/04/2017 07:51:44 AM] http-server.c(988): Failed to get commit 116ea4e9701e8f4a085f86a3e589ca8cd6faba61 for repo 77c96153-5414-4ada-a4e4-310c53d3df45.
之后大概报了3000条记录都是
[07/10/2017 10:56:22 PM] http-server.c(988): Failed to get commit 116ea4e9701e8f4a085f86a3e589ca8cd6faba61 for repo 77c96153-5414-4ada-a4e4-310c53d3df45.

seahub_django_request.log
提示两种Warning:
1.有很多warning NOT Found 这些要紧么?需要处理么
2. _reject Forbidden (CSRF cookie not set.): /
具体如下
2017-07-10 10:59:16,761 [WARNING] django.request:170 get_response Not Found: /solr/
2017-07-10 10:59:21,854 [WARNING] django.request:170 get_response Not Found: /info
2017-07-10 10:59:35,765 [WARNING] django.request:170 get_response Not Found: /dfshealth.jsp
2017-07-10 10:59:37,252 [WARNING] django.request:170 get_response Not Found: /hadoop/dfshealth.jsp
2017-07-10 16:01:28,451 [WARNING] django.request:170 get_response Not Found: /apple-touch-icon-precomposed.png
2017-07-10 16:01:28,524 [WARNING] django.request:170 get_response Not Found: /apple-touch-icon.png
2017-07-10 16:01:28,871 [WARNING] django.request:170 get_response Not Found: /apple-touch-icon-precomposed.png
2017-07-10 16:01:28,945 [WARNING] django.request:170 get_response Not Found: /apple-touch-icon.png
2017-07-10 17:54:14,314 [WARNING] django.request:170 get_response Not Found: /status.taobao
2017-07-10 18:34:20,023 [WARNING] django.request:170 get_response Not Found: /echo.php
2017-07-10 21:06:34,755 [WARNING] django.request:170 get_response Not Found: /cache/global/img/gs.gif
2017-07-10 21:15:19,152 [WARNING] django.request:170 get_response Not Found: /apple-touch-icon-precomposed.png
2017-07-10 21:15:19,236 [WARNING] django.request:170 get_response Not Found: /apple-touch-icon.png
2017-07-10 21:15:19,516 [WARNING] django.request:170 get_response Not Found: /apple-touch-icon-precomposed.png
2017-07-10 21:15:19,631 [WARNING] django.request:170 get_response Not Found: /apple-touch-icon.png
2017-07-11 00:14:27,833 [WARNING] django.request:170 get_response Not Found: /mysql/admin/
2017-07-11 00:14:28,165 [WARNING] django.request:170 get_response Not Found: /mysql/dbadmin/
2017-07-11 00:14:28,492 [WARNING] django.request:170 get_response Not Found: /mysql/sqlmanager/
2017-07-11 00:14:28,833 [WARNING] django.request:170 get_response Not Found: /mysql/mysqlmanager/
2017-07-11 00:14:29,168 [WARNING] django.request:170 get_response Not Found: /phpmyadmin/
2017-07-11 00:14:29,478 [WARNING] django.request:170 get_response Not Found: /phpMyadmin/

2017-07-09 15:28:41,852 [WARNING] django.request:98 _reject Forbidden (CSRF cookie not set.): /

请教应该如何排错?
谢谢
@daniel.pan
@lian

运行./seaf-fsck.sh
结果如下,貌似没提示错误?
[07/10/17 23:10:24] fsck.c(586): Running fsck for repo 77c96153-5414-4ada-a4e4-310c53d3df45.
[07/10/17 23:10:24] fsck.c(413): Checking file system integrity of repo Work(77c96153)…
[07/10/17 23:55:42] fsck.c(650): Fsck finished for repo 77c96153.

客户端seafile.log日志如下,每30秒重试一次,全部log都是这几行重复,仅把log里的ip替换了,其它为原文
[07/11/17 07:17:04] sync-mgr.c(660): Repo ‘Work’ sync state transition from ‘synchronized’ to ‘uploading’.
[07/11/17 07:17:04] http-tx-mgr.c(3272): Upload with HTTP sync protocol version 1.
[07/11/17 07:17:04] http-tx-mgr.c(1012): Transfer repo ‘77c96153’: (‘normal’, ‘init’) --> (‘normal’, ‘check’)
[07/11/17 07:17:04] http-tx-mgr.c(1012): Transfer repo ‘77c96153’: (‘normal’, ‘check’) --> (‘normal’, ‘commit’)
[07/11/17 07:17:04] http-tx-mgr.c(1012): Transfer repo ‘77c96153’: (‘normal’, ‘commit’) --> (‘normal’, ‘fs’)
[07/11/17 07:17:04] http-tx-mgr.c(1012): Transfer repo ‘77c96153’: (‘normal’, ‘fs’) --> (‘normal’, ‘data’)
[07/11/17 07:17:04] http-tx-mgr.c(1012): Transfer repo ‘77c96153’: (‘normal’, ‘data’) --> (‘normal’, ‘update-branch’)
[07/11/17 07:17:04] http-tx-mgr.c(3179): Bad response code for PUT http://111.111.111.111/seafhttp/repo/77c96153-5414-4ada-a4e4-310c53d3df45/commit/HEAD/?head=44ddf2469502271c86981415f83ffe961d1072c5: 500.
[07/11/17 07:17:04] http-tx-mgr.c(3395): Failed to update branch of repo 77c96153.
[07/11/17 07:17:04] http-tx-mgr.c(1012): Transfer repo ‘77c96153’: (‘normal’, ‘update-branch’) --> (‘error’, ‘finished’)
[07/11/17 07:17:04] sync-mgr.c(728): Repo ‘Public Work’ sync state transition from uploading to ‘error’: ‘Error occured in upload.’.

客户端版本5.1.4,仔细又看了下客户端log,出现过几次这个记录,但不频繁,而且不确定是不是当时在操作服务器做检查导致,比如当时有可能停了服务器的seafile和seahub。
[07/11/17 01:58:48] http-tx-mgr.c(707): libcurl failed to GET http://111.111.111.111/seafhttp/repo/77c96153-5414-4ada-a4e4-310c53d3df45/permission-check/?op=upload&client_id=de73c35ee6e3c6b09de976298f53ffdf6cf7acee&client_name=xxxxxx%40xxxxdeiMac-4.local: Couldn’t connect to server.
[07/11/17 01:58:48] http-tx-mgr.c(3290): Upload permission denied for repo 77c96153 on server http://111.111.111.111.

没人搭理 …算了,自己处理很方便,复制资料到另外一个文件夹,取消原来的同步,删了这个repo,设置新的同步即可。但是这并不能解决是哪里出错了,原想借这个机会也许Seafile能发现一个原来没注意到的Bug…