Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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.

Assessment

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

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.

Description

bug should reproduce

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 &
Dominant language
Objective-C
Stars
4k
Forks
202
Avg merge
5d 21h
Merged PRs (30d)
3

Getting set up

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.

More from syncthing/syncthing-macos

All issues in syncthing/syncthing-macos

Similar issues

More Objective-C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.