Sync Client produces very large log file for an old account


#1

Hey Guys,
i noticed that I have a log file (seafile.log), which is almost 900MB large. After some struggling how to open this file, there are 4 lines of errors which are written every 5 seconds. The Seafile Account “dennis.abc.org” was removed 3 month ago. It seems that since 3 month the sync client tries to check this Server every 5 seconds.

[11/11/18 19:10:19] clone-mgr.c(713): Transition clone state for 175a0095 from [error] to [check server].
[11/11/18 19:10:19] http-tx-mgr.c(806): libcurl failed to GET http://dennis.abc.org:8000/seafhttp/protocol-version: Couldn't resolve host name.
[11/11/18 19:10:19] http-tx-mgr.c(806): libcurl failed to GET http://dennis.abc.org:8082/protocol-version: Couldn't resolve host name.
[11/11/18 19:10:19] clone-mgr.c(730): Transition clone state for 175a0095 from [check server] to [error]: check server.
[11/11/18 19:10:24] clone-mgr.c(713): Transition clone state for 175a0095 from [error] to [check server].
[11/11/18 19:10:24] http-tx-mgr.c(806): libcurl failed to GET http://dennis.abc.org:8000/seafhttp/protocol-version: Couldn't resolve host name.
[11/11/18 19:10:24] http-tx-mgr.c(806): libcurl failed to GET http://dennis.abc.org:8082/protocol-version: Couldn't resolve host name.
[11/11/18 19:10:24] clone-mgr.c(730): Transition clone state for 175a0095 from [check server] to [error]: check server. 

Does someone have an idea where are these information about the old account are stored? (Im using Sync Client 6.2.5) My next steps would be to deinstall the sync client and remove all of its config files and then reinstall it.

@daniel.pan as ultimate feature request, is it possible to strip logfiles into smaller files if they reach a defined file size?


#2

Hi
the user information is stored in the database, you can clean it by following the procedure described in the manual
https://manual.seafile.com/maintain/clean_database.html

to divide log files into smaller size you must use “logrotate”
https://manual.seafile.com/deploy/using_logrotate.html


#3

This is done on restart when the file is larger then 300 MiB


#4

The Solution was a bit tricky but simple.
After digging in the SyncClient i’ve found the hidden directory “C:\seafile\seafile-data” here are a few sqlite databases. In clone.db is table for CloneTasks and there i’ve found the evil entry for the old repo.

Deleted the row and started the Sync Client, everything is fine :slight_smile:

@shoeper thanks, i think i should restart my personal computer more than once a year. :sweat_smile: