exit code 1 is the most useless error message in software, and it is everywhere in proxy clients. The generic value means "something returned non-zero". It does not mean "permission denied", "DNS failed", or "port in use" — those are all exit code 1 too.
The error itself is not lost. The wrapper that produced exit code 1 also had access to stderr, and something, somewhere, still has it. Three places to look, in order of how often they work.
1. The wrapper's own log, not the screenshot
Clients that shell out to a helper usually write the child's stderr into their own log file before collapsing it to an exit code. On Windows that is typically under %APPDATA%\<client>\logs\; on Linux, ~/.config/<client>/logs/ or journald.
# the client wrote the exit code, the log has the reason grep -i "exit code" ~/.config/*/logs/*.log | tail -20 journalctl -u <service> -n 100 --no-pager If the log line only says exit code 1 and nothing else, the wrapper did not capture stderr — go to step 2.
2. Run the helper by hand, with the same arguments
The client invokes a binary with a specific argument list. Find it in the log, then run it yourself. This is the step people skip, and it is the one that always works.
# as root, exactly as the client would, but with output visible sudo /path/to/helper --some-flag 2>&1 | tail -20 Two things to check while you are there:
- Does it produce output at all? A helper that prints nothing and exits 1 was killed before it started, which usually means a missing library, a blocked binary, or an antivirus quarantine.
- Does the exit code change when you run it elevated? If yes, the failure is a privilege problem and the "fix" is the service install, not the config.
3. The OS layer, which records failures the app never sees
A helper that dies before it can report anything leaves a trace in the OS:
# Linux dmesg | tail -30 systemctl status <unit> --no-pager On Windows, the Application event log records service control failures and application crashes with the actual exception, not the wrapper's integer.
Why this specific message appears so often
The client's DNS rewrite step is a good example. It calls into a privileged helper, the helper fails, the client prints set system dns failed: exit code 1. Nothing in that string mentions privilege, DNS, or which interface. The wrapper replaced the useful part with an integer.
The pattern repeats across clients and across platforms: a "service and cores not satisfied" message is the same collapse of a much richer child-process failure.
The rule
An exit code is a fact about a process, not a diagnosis of a cause. When you see exit code 1, stop looking at the client's UI. The answer is one of: the client's log, the helper run by hand, or the OS event log. In that order, and the third one almost never needs to be reached.
Worked examples of this triage, with the exact log lines that confirm each stage, are collected here: exit code 1 in Clash Verge Rev and the four service install cases. Both pages start from the evidence you can collect before changing a setting, which is the part that most write-ups skip.


