Skip to content

cmd/syncthing, etc: Consistent failure restart backoff - #7439

Merged
calmh merged 1 commit into
syncthing:mainfrom
imsodin:all/restart-backoff
Mar 7, 2021
Merged

calmh merged 1 commit into
syncthing:mainfrom
imsodin:all/restart-backoff

Conversation

@imsodin

@imsodin imsodin commented Mar 7, 2021

Copy link
Copy Markdown
Member

There are timing parameters to catch frequent failure restarts in our monitor, and exit with an error. Systemd units also have such a mechanism by default, but with much less strict parameters that often allow infinite restart loops in case of DB problems. One example is this report, where a single user sent 3.5k events in a few hours: https://sentry.syncthing.net/syncthing/syncthing/issues/8679

Now the same restart parameters are used in the monitor as in the systemd service.

@calmh
calmh merged commit 587c89d into syncthing:main Mar 7, 2021
@imsodin
imsodin deleted the all/restart-backoff branch March 7, 2021 16:15
@st-release st-release added this to the v1.15.0 milestone Mar 9, 2021
calmh added a commit to calmh/syncthing that referenced this pull request Mar 11, 2021
* main:
  build: Update notify (syncthing#7444)
  next-gen-gui: Add button to restore default theme (syncthing#7433)
  lib/protocol: Optimize FileKey (syncthing#7440)
  cmd/syncthing, etc: Consistent failure restart backoff (syncthing#7439)
  lib: Return error from db.FileSet.Snapshot (fixes syncthing#7419, ref syncthing#5907) (syncthing#7424)
calmh added a commit to calmh/syncthing that referenced this pull request Apr 5, 2021
* main: (36 commits)
  etc: Fix start-limit parameters location in systemd units (ref syncthing#7439) (syncthing#7529)
  gui: Add confirmation dialog for revert/override (fixes syncthing#7520) (syncthing#7522)
  readme: Larger link for Fitt's law, still semantic (syncthing#7523)
  gui, man, authors: Update docs, translations, and contributors
  lib/model: Reset conn when enc token is missing (fixes syncthing#7198) (syncthing#7518)
  lib: Handle adding enc folders on an existing conn (fixes syncthing#7509) (syncthing#7510)
  cmd/strelaysrv: Increase default strelaysrv network buffer size (fixes syncthing#7514) (syncthing#7517)
  lib/ur: Prevent panic when blocksResult is nil (ref syncthing#7495) (syncthing#7515)
  lib/model: Encrypted fileinfo trailer needs to be in wire format (syncthing#7505)
  lib/model: Error check in test (syncthing#7508)
  lib/osutil: Fix raising max FDs on macOS (syncthing#7507)
  lib/connections: Silence "connected to myself" messages. (syncthing#7500)
  lib/osutil: Remove unused code
  all: Simplify some method calls (syncthing#7499)
  cmd/uraggregate: Ignore errors harder (syncthing#7498)
  cmd/syncthing: Error handling on upgrade (syncthing#7497)
  Remove unnecessary guard around `delete` (syncthing#7496)
  all: Remove miscellaneous vestigial code (syncthing#7495)
  all: Remove crypto/md5 (syncthing#7493)
  lib/api: Missing error handling in API delete-device (syncthing#7494)
  ...
greatroar pushed a commit to greatroar/syncthing that referenced this pull request May 8, 2021
@calmh calmh added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Aug 11, 2022
@syncthing syncthing locked and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants