Repository navigation
Closed
Labels
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Milestone
Description
I misconfigured an .stignore file to include a file that did not exist:
$ cat /syncthing/notes/.stignore
// .stignore
#include .stglobalignore
This leads to syncthing logging an error at a very high rate (at least dozens of times per second):
$ tail -n20 /syncthing/syncthing.log
[FHHUZ] 21:57:28 WARNING: Error on folder "notes" (pyt9c-kd72a): loading ignores: parse error: failed to load include file .stglobalignore: open /syncthing/notes/.stglobalignore: no such file or directory
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now error
[FHHUZ] 21:57:28 INFO: Cleared error on folder "notes" (pyt9c-kd72a)
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now idle
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now sync-waiting
[FHHUZ] 21:57:28 WARNING: Error on folder "notes" (pyt9c-kd72a): loading ignores: parse error: failed to load include file .stglobalignore: open /syncthing/notes/.stglobalignore: no such file or directory
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now error
[FHHUZ] 21:57:28 INFO: Cleared error on folder "notes" (pyt9c-kd72a)
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now idle
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now sync-waiting
[FHHUZ] 21:57:28 WARNING: Error on folder "notes" (pyt9c-kd72a): loading ignores: parse error: failed to load include file .stglobalignore: open /syncthing/notes/.stglobalignore: no such file or directory
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now error
[FHHUZ] 21:57:28 INFO: Cleared error on folder "notes" (pyt9c-kd72a)
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now idle
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now sync-waiting
[FHHUZ] 21:57:28 WARNING: Error on folder "notes" (pyt9c-kd72a): loading ignores: parse error: failed to load include file .stglobalignore: open /syncthing/notes/.stglobalignore: no such file or directory
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now error
[FHHUZ] 21:57:28 INFO: Cleared error on folder "notes" (pyt9c-kd72a)
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now idle
[FHHUZ] 21:57:28 VERBOSE: Folder "pyt9c-kd72a" is now sync-waiting
I rotate my log files monthly; this error caused last month's log to grow to 20 GB on disk (would have been much larger without ZFS compression). I also found that RAM usage increased significantly with the file missing (normal: 300 MB, with missing file: 10 GB).
Expected behaviour would be that syncthing uses a longer retry interval before attempting to reload the missing included file.
System information: FreeBSD 13.0-RELEASE-p7, syncthing 1.18.1.
Metadata
Metadata
Assignees
Labels
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
rasa commentedon Mar 25, 2022
One thought is offering an
#includeifwhere it reports it only once if it can't load it. .gitconfig has this feature.Alternatively, we could make
#includemuch quieter, but add an#include!which constantly whines (or even fails) if the file is missing.lib/model: Clear folder error after loading ignores (fixes syncthing#…
lib/model: Clear folder error after loading ignores (fixes #8232) (#8238