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.

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%\\logs\; on Linux, ~/.config//logs/ or journald.

If the log line only claims exit code 1 and nothing else, the wrapper did not capture stderr β€” go to step 2.

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.

Two things to check while you are there:.

A helper that dies before it can report anything leaves a trace in the OS:.

On Windows, the Application event log records service control failures and application crashes with the actual exception, not the wrapper's integer.

Sources indicate that 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.

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.

According to recent reports, 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.

πŸ“Œ Read also:

β†’ Read original article