Server Error - sync of a library fails - deleted folder gets restored

My server is on a Raspberry Pi, version 6.1.2, my Windows 10 Client is version 6.2.4.

I am getting a „server error“ on the client side, the sync of a specific lybrary is not possible.

On the server side, seaf-fsck did not report any corrupted files the last time I ran it.

However, when the server/connection errors started, I ran seaf-fsck, too, and then it did report lots of corrupted files that I had transferred only a short time before. These files were (and still are) in the library that does not get synced anymore. I then deleted the whole “offending” folder that I had added previously, which obviously had caused all the trouble. The thing is, on my Windows client, it keeps restoring the folder after I have deleted it, even though the folder is shown as deleted when I check with the web interface. It is in the trash, but there it is kept for some days or weeks before being erased completely.

I am not quite sure what log info to post, but here is a selection:

Blockquote
applet:
[09/16/18 00:20:00]read id from id file
[09/16/18 00:20:04]starting seaf-daemon: (“-c”, “C:/Users/Paperino/ccnet”, “-d”, “H:/Seafile/Seafile/seafile-data”, “-w”, “H:/Seafile/Seafile”)
[09/16/18 00:20:05][Rpc Client] connected to daemon
[09/16/18 00:20:05][Rpc Client] connected to daemon
[09/16/18 00:20:06]Starting the network status detector
[09/16/18 00:20:06][AutoUpdateManager] cancel all download tasks
[09/16/18 00:20:06][AutoUpdateManager] clean file caches db
[09/16/18 00:20:06][AutoUpdateManager] clean file caches
[09/16/18 00:20:06]starting applet rpc service
[09/16/18 00:20:06]applet rpc service started
[09/16/18 00:20:06][Rpc Client] connected to daemon
[09/16/18 00:20:06][Rpc Client] connected to daemon
[09/16/18 00:38:14]request failed for https://raspberrypi.ucbw3eszyghlhncb.myfritz.net:443/api2/account/info/:

Blockquote ccnet:
[09/12/18 16:51:25] …/common/session.c(398): Accepted a local client
[09/12/18 16:51:25] …/common/session.c(398): Accepted a local client
[09/12/18 16:51:25] …/common/session.c(398): Accepted a local client
[09/12/18 16:51:26] …/common/session.c(398): Accepted a local client
[09/12/18 16:51:26] …/common/session.c(398): Accepted a local client
[09/12/18 16:51:26] …/common/session.c(398): Accepted a local client
[09/12/18 16:51:26] …/common/session.c(398): Accepted a local client
[09/12/18 16:55:13] …/common/peer.c(943): Local peer down
[09/12/18 16:55:13] …/common/peer.c(943): Local peer down
[09/12/18 16:55:13] …/common/peer.c(941): libevent got an error! what=33, errno=0 (No error)
[09/12/18 16:55:13] …/common/peer.c(943): Local peer down
[09/12/18 16:55:13] …/common/peer.c(941): libevent got an error! what=33, errno=0 (No error)
[09/12/18 16:55:13] …/common/peer.c(943): Local peer down
[09/12/18 16:55:13] …/common/peer.c(941): libevent got an error! what=33, errno=0 (No error)
[09/12/18 16:55:13] …/common/peer.c(943): Local peer down

Blockquote seafile:
[09/16/18 00:42:32] http-tx-mgr.c(4261): Bad response code for GET https://raspberrypi.ucbw3eszyghlhncb.myfritz.net:443/seafhttp/repo/d8092c7d-1059-46bb-843f-3da0f888e87c/block/e8b09b17c314047bfeaa3671e923eb26b87123da: 500.
[09/16/18 00:42:32] repo-mgr.c(4350): Transfer failed.
[09/16/18 00:42:33] http-tx-mgr.c(792): libcurl failed to GET https://raspberrypi.ucbw3eszyghlhncb.myfritz.net:443/seafhttp/repo/d8092c7d-1059-46bb-843f-3da0f888e87c/block/80add461f1ca0a111bf9a87a4bb87bd45583ce6f: Failed writing received data to disk/application.
[09/16/18 00:42:33] http-tx-mgr.c(792): libcurl failed to GET https://raspberrypi.ucbw3eszyghlhncb.myfritz.net:443/seafhttp/repo/d8092c7d-1059-46bb-843f-3da0f888e87c/block/52de04cae315acb30b420a3d2a9f7ac9689c9069: Failed writing received data to disk/application.
[09/16/18 00:42:33] repo-mgr.c(4350): Transfer failed.
[09/16/18 00:42:33] repo-mgr.c(4350): Transfer failed.
[09/16/18 00:42:33] http-tx-mgr.c(792): libcurl failed to GET https://raspberrypi.ucbw3eszyghlhncb.myfritz.net:443/seafhttp/repo/d8092c7d-1059-46bb-843f-3da0f888e87c/block/c1ac32550481aa0c57688dc8444dcc8003cb818d: Failed writing received data to disk/application.
[09/16/18 00:42:33] repo-mgr.c(4350): Transfer failed.
[09/16/18 00:42:33] http-tx-mgr.c(1153): Transfer repo ‘d8092c7d’: (‘normal’, ‘data’) → (‘error’, ‘finished’)
[09/16/18 00:42:33] sync-mgr.c(607): Repo ‘Teaching - Resources’ sync state transition from downloading to ‘error’: ‘Error occurred in download.’.

Here are the results of the server logs:

Blockquote seafile@raspberrypi:~/logs $ tail seahub.log
cursor.execute(sql, params)
File “/home/seafile/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.
egg/django/db/backends/utils.py”, line 64, in execute
return self.cursor.execute(sql, params)
File “/home/seafile/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.
egg/django/db/utils.py”, line 98, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File “/home/seafile/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.
egg/django/db/backends/utils.py”, line 64, in execute
return self.cursor.execute(sql, params)
File “/home/seafile/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.
egg/django/db/backends/sqlite3/base.py”, line 318, in execute
return Database.Cursor.execute(self, query, params)
OperationalError: database is locked

Blockquote seafile@raspberrypi:~/logs $ tail seahub_django_request.log
cursor.execute(sql, params)
File “/home/seafile/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.
egg/django/db/backends/utils.py”, line 64, in execute
return self.cursor.execute(sql, params)
File “/home/seafile/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.
egg/django/db/utils.py”, line 98, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File “/home/seafile/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.
egg/django/db/backends/utils.py”, line 64, in execute
return self.cursor.execute(sql, params)
File “/home/seafile/seafile-server-6.1.2/seahub/thirdpart/Django-1.8.18-py2.7.
egg/django/db/backends/sqlite3/base.py”, line 318, in execute
return Database.Cursor.execute(self, query, params)
OperationalError: database is locked

Some database Info:

Blockquote seafile@raspberrypi:~/seafile-data $ ls -l
total 152
drwxr-xr-x 2 seafile seafile 4096 Apr 20 2016 commits
drwxr-xr-x 2 seafile seafile 4096 Apr 20 2016 fs
drwxr-xr-x 2 seafile seafile 4096 Aug 11 22:50 httptemp
drwxr-xr-x 2 seafile seafile 4096 Apr 20 2016 library-template
-r–r–r-- 1 seafile seafile 79 Aug 5 01:04 seafile.conf
-rw-r–r-- 1 seafile seafile 23 Aug 5 01:04 seafile.conf.seafile-5.0.0-bak
-rw-r–r-- 1 seafile seafile 117760 Sep 16 00:58 seafile.db
drwxr-xr-x 5 seafile seafile 4096 Apr 20 2016 storage
drwxr-xr-x 2 seafile seafile 4096 Sep 16 00:55 tmpfiles
drwxr-xr-x 4 seafile seafile 4096 May 25 2017 seahub-data

Any ideas what the problem could be?

I solved the issue by deleting the parent library and then recreating it. No idea what went wrong.