mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1520] 🐛 Bug: nginx-ui keeps trying to connect to stale unix socket (nginx-ui.sock) #3038
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#3038
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bishwajitcadhikary on GitHub (Jan 12, 2026).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1520
When running nginx-ui on macOS via Homebrew, the application repeatedly tries to connect to a Unix socket (nginx-ui.sock) that is not active or not created by default.
This causes continuous connection refused errors in the error log, even though the web UI works normally over HTTP.
⸻
To Reproduce
Steps to reproduce the behavior:
1. Install nginx-ui using Homebrew
brew install nginx-ui
brew services start nginx-ui
tail -f /opt/homebrew/var/log/nginx-ui.err.log
dial unix /opt/homebrew/var/nginx-ui/nginx-ui.sock: connect: connection refused
⸻
Expected behavior
nginx-ui should not attempt to connect to a Unix socket unless socket mode is explicitly configured.
If socket support is disabled or unused, no socket-related errors should appear in logs.
⸻
Screenshots
N/A (log output included above)
⸻
Info (please complete the following information):
• Server OS: macOS (Apple Silicon)
• Server Arch: aarch64 (arm64)
• Nginx UI Version: Homebrew latest (as of Jan 2026)
• Your Browser: Chrome / Safari
⸻
Additional context
• The web UI and API endpoints return 200 OK and function correctly.
• Error repeats every ~10 seconds in nginx-ui.err.log.
• Removing the stale socket file immediately resolves the issue:
rm -f /opt/homebrew/var/nginx-ui/nginx-ui.sock
Suggestion:
• Disable Unix socket usage unless explicitly enabled
• Or validate socket existence before attempting to dial
• Or auto-clean stale socket files on startup