syncthing / syncthing/syncthing-macos

v2.0.15: Model initialization blocks indefinitely when launched via launchd (macOS LaunchAgent)

Open
#285 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug should reproduce
Dominant language
Objective-C
Stars
3.9k
Forks
203
Avg merge
3d 14h
Merged PRs (30d)
2

Description

Bug description

Syncthing v2.0.15 ("Hafnium Hornet") fails to initialize the folder model when launched
via a macOS LaunchAgent (launchd). The Ready to synchronize log entry is never emitted,
and all model-dependent API endpoints (/rest/db/status) block indefinitely.

The same binary initializes in <1 second when launched from a terminal (pty context).

Reproduction

  1. Any LaunchAgent plist (RunAtLoad: true) pointing to the syncthing binary
  2. brew install syncthing && brew services start syncthing
    Both block forever.

Works fine:

nohup /Applications/Syncthing.app/Contents/Resources/syncthing/syncthing \
  --no-browser --no-restart &

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the initialization hang with a macOS LaunchAgent and compare it with the working terminal and nohup launches. Check whether the Ready to synchronize log entry appears and whether /rest/db/status remains blocked; done means the model initializes and the API responds when started through launchd.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.