Hi Seafile Commuity,
I have noticed, that file updates service filling up my logs, although I turned it off recently.
Enviroment:
Seafile 7.1.8 dockerized version
Debian Buster
file_updates_sender.log:
.
.
.
[2021-03-28 13:57:44.993642] Start sending file updates emails...
[2021-03-28 13:57:45.082110] Set language code to hu for user: myemail@domain.com
[2021-03-28 13:57:49.645701] Finish sending file updates emails.
[2021-03-28 13:58:44.801286] Start sending file updates emails...
[2021-03-28 13:58:49.516685] Finish sending file updates emails.
[2021-03-28 13:58:44.911458] Set language code to hu for user: myemail@domain.com
[2021-03-28 14:00:55.287677] Start sending file updates emails...
[2021-03-28 14:00:55.392578] Set language code to hu for user: myemail@domain.com
[2021-03-28 14:01:00.086849] Finish sending file updates emails.
[2021-03-28 14:01:55.267407] Start sending file updates emails...
[2021-03-28 14:01:55.405674] Set language code to hu for user: myemail@domain.com
[2021-03-28 14:02:00.008541] Finish sending file updates emails.
[2021-03-28 14:02:55.448861] Start sending file updates emails...
[2021-03-28 14:02:55.535359] Set language code to hu for user: myemail@domain.com
[2021-03-28 14:03:00.135840] Finish sending file updates emails.
[2021-03-28 14:03:55.348983] Start sending file updates emails...
[2021-03-28 14:03:55.435677] Set language code to hu for user: myemail@domain.com
[2021-03-28 14:04:00.067778] Finish sending file updates emails.
[2021-03-28 14:04:55.350382] Start sending file updates emails...
[2021-03-28 14:04:55.436830] Set language code to hu for user: myemail@domain.com
[2021-03-28 14:05:00.319027] Finish sending file updates emails.
[2021-03-28 14:05:55.406504] Start sending file updates emails...
[2021-03-28 14:05:55.493662] Set language code to hu for user: myemail@domain.com
[2021-03-28 14:06:00.121868] Finish sending file updates emails.
[2021-03-28 14:06:55.395079] Start sending file updates emails...
[2021-03-28 14:06:55.481424] Set language code to hu for user: myemail@domain.com
[2021-03-28 14:07:00.019656] Finish sending file updates emails.
.
.
.
As you can see, Seafile initiate sending file updates every 60 seconds for some reason.
Related parts of ccnet.log:
[2021-03-28 13:59:44,170] [INFO] Subscribe to channels: {'seahub.stats', 'seaf_server.stats', 'seaf_server.event'}
[2021-03-28 13:59:44,200] [INFO] Starting background tasks.
[2021-03-28 13:59:44,201] [INFO] Start file updates sender, interval = 60 sec #this line
[2021-03-28 13:59:44,215] [INFO] work weixin notice sender is disabled
[2021-03-28 13:59:44,216] [INFO] search indexer is started, interval = 600 sec
[2021-03-28 13:59:44,227] [INFO] seahub email sender is disabled
[2021-03-28 13:59:44,228] [INFO] ldap sync is disabled
[2021-03-28 13:59:44,229] [INFO] virus scan is disabled
[2021-03-28 13:59:44,239] [INFO] Starting data statistics.
[2021-03-28 13:59:44,240] [INFO] content scan is disabled
[2021-03-28 13:59:44,280] [INFO] Start counting file operations..
[2021-03-28 13:59:44,298] [INFO] Start counting monthly traffic info..
[2021-03-28 13:59:44,321] [INFO] Start counting total storage..
[2021-03-28 13:59:44,488] [INFO] http server process already start.
[2021-03-28 13:59:44,489] [INFO] office converter started
[2021-03-28 13:59:44,507] [INFO] Start counting user activity info..
[2021-03-28 13:59:44,522] [INFO] [UserActivityCounter] update 0 items.
[2021-03-28 13:59:44,524] [INFO] Start counting traffic info..
[2021-03-28 13:59:44,545] [INFO] Traffic counter finished, total time: 0.021103382110595703 seconds.
[2021-03-28 13:59:44,777] [INFO] [FileOpsCounter] Finish counting file operations in 0.495410680770874 seconds, 0 added, 0 deleted, 0 visited, 0 modified
[2021-03-28 13:59:45,199] [INFO] [TotalStorageCounter] Finish counting total storage in 0.8419122695922852 seconds.
[2021-03-28 13:59:45,433] [INFO] Monthly traffic counter finished, update 3 user items, 1 org items, total time: 1.1348130702972412 seconds.
[2021-03-28 13:59:52,355] [INFO] Added "timeCheck697137.txt"
[2021-03-28 13:59:54,474] [INFO] Added "sync_desktop_88950463932e4d71bdcbd6544aef0eae.json"
[2021-03-28 14:04:57,744] [INFO] Added "sync_desktop_88950463932e4d71bdcbd6544aef0eae.json"
[2021-03-28 14:09:44,231] [INFO] starts to index files
[2021-03-28 14:10:00,225] [INFO] Added "timeCheck827849.txt"
[2021-03-28 14:10:02,082] [INFO] Added "sync_desktop_88950463932e4d71bdcbd6544aef0eae.json"
It is confusing for me as it shows seahub email sender is disabled
and Start file updates sender, interval = 60 sec
at the same time
My config files:
1.seafevents.log:
[DATABASE]
type = mysql
host = db
port = 3306
username = seafile
password = *****
name = seahub_db
[AUDIT]
enabled = false
[INDEX FILES]
external_es_server = true
es_host = elasticsearch
es_port = 9200
enabled = true
interval = 10m
highlight = fvh
## If true, indexes the contents of office/pdf files while updating search index
## Note: If you change this option from "false" to "true", then you need to clear the search index and update the index again. See the FAQ for details.
index_office_pdf = false
[OFFICE CONVERTER]
port = 6000
host = 127.0.0.1
enabled = true
workers = 1
[SEAHUB EMAIL]
enabled = false
## interval of sending Seahub email. Can be s(seconds), m(minutes), h(hours), d(days)
#interval = 30d
# Enable statistics
[STATISTICS]
enabled=true
There was a similar thread on the forum recently [Solved] Incerasing server load - Too many "send_file_updates" processes ;
however the solution described below does not suit for me, because I believe I configured my email server settings properly. (Seafile is able to send emails e.g when I share links, I tested it.)
Just to clarify: Seafile (according to my configuration) do not send any emails about file updates, so I cant understand why it is “triggered” every 60 seconds.
Could anyone tell whether it is a normal behavior /what is going on?
Thanks!