Server 6.2.5: Failed to sync library, gc error


#1

Hello, Sorry for my english,
There was a problem in synchronizing the library on the client with our server (community edition 6.2.5 on Ubuntu 16.04)
Client log:

[07/18/18 14:10:32] clone-mgr.c(847): Transition clone state for 1dc61044 from [init] to [fetch].
[07/18/18 14:10:32] transfer-mgr.c(314): Transfer repo ‘1dc61044’: (‘normal’, ‘init’) --> (‘normal’, ‘check’)
[07/18/18 14:10:32] processors/check-tx-v3-proc.c(315): repo version is 0, protocol version is 5.
[07/18/18 14:10:32] transfer-mgr.c(314): Transfer repo ‘1dc61044’: (‘normal’, ‘check’) --> (‘normal’, ‘commit’)
[07/18/18 14:10:46] transfer-mgr.c(314): Transfer repo ‘1dc61044’: (‘normal’, ‘commit’) --> (‘normal’, ‘fs’)
[07/18/18 14:11:01] …/common/fs-mgr.c(1171): Data does not contain a directory.
[07/18/18 14:11:01] processors/getfs-proc.c(570): Bad response: 401 Object not found.
[07/18/18 14:11:01] transfer-mgr.c(351): Transfer repo ‘1dc61044’: (‘normal’, ‘fs’) --> (‘error’, ‘finished’): Failed to get file information from remote library
[07/18/18 14:11:01] clone-mgr.c(847): Transition clone state for 1dc61044 from [fetch] to [fetch].
[07/18/18 14:11:01] no handler for event type 14

Seafile.log on server:

[07/18/2018 09:25:54 AM] …/common/fs-mgr.c(1121): [fs mgr] Corrupt seafile object 9c53323ef7f6b115ec5bf3c45623f15cd5d42aa3.
[07/18/2018 09:25:54 AM] …/common/fs-mgr.c(2398): Couldn’t get file 8389b07f-2317-470b-82b3-122b8d5d4c92:9c53323ef7f6b115ec5bf3c45623f15cd5d42aa3
[07/18/2018 09:25:54 AM] size-sched.c(260): [scheduler] Failed to compute size of repo 7c5d4efe.

I decided to make seaf-fsck, there were 2 problems in this library, and they corrected creating empty files (did not save the message). Later I deleted these files via the web interface and cleaned the trash.
But when you run seaf-gc, an error occurs:

./seaf-gc.sh 8389b07f-2317-470b-82b3-122b8d5d4c92

Starting seafserv-gc, please wait …
[07/18/18 13:18:01] gc-core.c(440): GC version 0 repo Sicilia-obmen(8389b07f-2317-470b-82b3-122b8d5d4c92)
[07/18/18 13:18:01] gc-core.c(313): GC started. Total block number is 334158.
[07/18/18 13:18:01] gc-core.c(46): GC index size is 167079 Byte.
[07/18/18 13:18:01] gc-core.c(327): Populating index.
[07/18/18 13:18:01] gc-core.c(181): Populating index for repo 8389b07f.
[07/18/18 13:18:32] gc-core.c(234): Traversed 3 commits, 304275 blocks.
[07/18/18 13:18:32] gc-core.c(183): Populating index for sub-repo 8d88fd2a.
[07/18/18 13:18:32] gc-core.c(234): Traversed 2 commits, 28 blocks.
[07/18/18 13:18:32] gc-core.c(183): Populating index for sub-repo 88d7a470.
[07/18/18 13:18:32] gc-core.c(234): Traversed 2 commits, 57 blocks.
[07/18/18 13:18:32] gc-core.c(183): Populating index for sub-repo c7901241.
[07/18/18 13:18:32] gc-core.c(234): Traversed 2 commits, 2001 blocks.
[07/18/18 13:18:32] gc-core.c(183): Populating index for sub-repo e2469e40.
[07/18/18 13:18:32] gc-core.c(234): Traversed 271 commits, 1725 blocks.
[07/18/18 13:18:32] gc-core.c(183): Populating index for sub-repo e7893d83.
[07/18/18 13:18:32] gc-core.c(234): Traversed 17 commits, 327 blocks.
[07/18/18 13:18:32] gc-core.c(183): Populating index for sub-repo d06724fa.
[07/18/18 13:18:32] gc-core.c(234): Traversed 2 commits, 5 blocks.
[07/18/18 13:18:32] gc-core.c(183): Populating index for sub-repo 154d294d.
[07/18/18 13:18:32] gc-core.c(234): Traversed 24 commits, 276 blocks.
[07/18/18 13:18:32] gc-core.c(183): Populating index for sub-repo 426293b0.
[07/18/18 13:18:32] gc-core.c(234): Traversed 238 commits, 10717 blocks.
[07/18/18 13:18:32] gc-core.c(183): Populating index for sub-repo 9c438999.
[07/18/18 13:18:33] gc-core.c(234): Traversed 631 commits, 11244 blocks.
[07/18/18 13:18:33] gc-core.c(183): Populating index for sub-repo 62bc62cc.
[07/18/18 13:18:33] gc-core.c(234): Traversed 471 commits, 8890 blocks.
[07/18/18 13:18:33] gc-core.c(183): Populating index for sub-repo b1386ca8.
[07/18/18 13:18:33] gc-core.c(234): Traversed 2 commits, 519 blocks.
[07/18/18 13:18:33] gc-core.c(183): Populating index for sub-repo 1dc61044.
[07/18/18 13:18:33] …/…/common/fs-mgr.c(1284): [fs mgr] Failed to read file 9c53323ef7f6b115ec5bf3c45623f15cd5d42aa3.
[07/18/18 13:18:33] gc-core.c(80): Failed to find file 8389b07f-2317-470b-82b3-122b8d5d4c92:9c53323ef7f6b115ec5bf3c45623f15cd5d42aa3.
[07/18/18 13:18:33] …/…/common/commit-mgr.c(518): [comit-mgr] CommitTraverseFunc failed
[07/18/18 13:18:33] gc-core.c(234): Traversed 6 commits, 17643 blocks.

[07/18/18 13:18:33] gc-core.c(456): === GC is finished ===
[07/18/18 13:18:33] gc-core.c(460): The following repos are damaged. You can run seaf-fsck to fix them.
[07/18/18 13:18:33] gc-core.c(463): 8389b07f-2317-470b-82b3-122b8d5d4c92
seafserv-gc run done

In this case, seaf-fsck repeatedly finds no errors for this library, and seaf-gc finds.
There are similar topics, but there is no solution for me:


Are there any solutions to this problem?
The rest of the libraries are normally synchronized.


#2

What arguments did you pass when you ran seaf-fsck?


#3

The first time I used without arguments, I saw that there were errors, and I used the --repair, I finally got the message that 2 files were replaced with empty ones.
Now with or without argument, there are no errors.


#4

Your problem is that the repo size is not being reported correctly. Is that particular repo encrypted by any chance?


#5

No, the repo is not encrypted


#6

I also tried to export the library with siaf-fsk, and there were errors. Approximate behavior I found in the topic