-
-
Notifications
You must be signed in to change notification settings - Fork 965
Open
Description
Bug Description
When api_key is set in config.toml, the openfang stop CLI command fails with 401 Unauthorized. The CLI does not pass the API key when communicating with the local daemon.
Steps to Reproduce
- Set
api_key = "..."inconfig.toml - Start daemon:
openfang start - Try to stop:
openfang stop
Expected Behavior
openfang stop should work — the CLI should read the api_key from config.toml and authenticate with the local daemon automatically.
Actual Behavior
✘ Shutdown request failed (401 Unauthorized)
This also causes openfang stop in update scripts to fail, leaving the binary locked ("Text file busy" error when trying to replace it).
Workaround
Use systemctl stop openfang or pkill -9 openfang instead.
Environment
- OpenFang v0.3.2 / v0.3.3
- Ubuntu 24.04
api_keyconfigured in config.toml for remote dashboard access
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels