Skip to content

Missing include file endlessly spams log #8232

Closed

Description

@davidschlachter

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.

Activity

  1. rasa commented on Mar 25, 2022

    @rasa
    Member

    One thought is offering an #includeif where it reports it only once if it can't load it. .gitconfig has this feature.

    Alternatively, we could make #include much quieter, but add an #include! which constantly whines (or even fails) if the file is missing.

  2. added a commit that references this issue on Mar 25, 2022
    4cd3327
  3. added a commit that references this issue on Mar 27, 2022
    55c513b
  4. added this to the v1.19.3 milestone on Apr 10, 2022
  5. added
    bug
    on Apr 15, 2022
  6. added
    frozen-due-to-age
    on Mar 28, 2023
  7. locked and limited conversation to collaborators on Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions