Node HandbookNODE HANDBOOK
Core startup

Hiddify: core exited with code

The interface watched a child process end and reported the number the operating system returned. That number is a category, not a diagnosis — and one category covers almost every real failure, which is why the code alone rarely helps.

Last updated: 2026-11-24 · Every error string on this page was reproduced on a real client.

What an exit code can and cannot say

A process exits with a small integer. By convention zero means success and anything else means failure, and that convention is the entire useful content of most codes. A core that rejects a configuration, cannot bind a port, or hits an internal error generally returns the same value.

Two codes are worth separating because they mean something specific:

CodeConventional meaningWhere to look
0Exited normallyThe process was told to stop; this is not a failure
1General failureCore output — configuration, port, permission, runtime
2Usage or argument errorHow the core was invoked, not what it was given
127Command not foundThe binary is absent or not executable
137 / 139Killed, or crashed on a signalMemory limits, or a genuine crash

Code 1 is the one that appears constantly and says almost nothing. Code 127 has its own diagnosis and is covered separately, because a binary that was never found is a different problem from a binary that ran and failed.

The core writes more than the exit code

Hiddify wraps a sing-box core. The core prints its own diagnostics to standard output and error, and the interface surfaces only some of them. When the summary is a bare exit code, the detail is in the log the interface keeps, or in the terminal if you start the core yourself.

The single most useful line is the first error-level line, not the last. Cores log in sequence, so an early failure produces a cascade of messages that are consequences rather than causes. Reading from the bottom gives you the last consequence; reading from the first error gives you the cause.

Four things that produce a code 1

The configuration is rejected

The most common. A field the core's schema does not accept, a value outside its allowed set, or a structure in the wrong place. The message names the field and often the line, which makes this the easiest of the four to resolve — and the one where the exit code adds the least.

A port is already held

The core cannot bind its listener because another process owns it. Since the core's default listener uses a conventional port, this is frequent on machines where another client was installed. The message names the address, which distinguishes it immediately.

A privileged operation was refused

Creating a tunnel device, changing routes, or binding a low port requires rights the process does not have. On desktop platforms this usually requires an elevation step the application prompts for; if that prompt was declined, or the helper is not installed, the core starts and dies at the first privileged call.

The binary does not match the platform

An architecture mismatch produces an immediate failure, often with no log at all because the process never reached its own code. Code 1 with an empty log points here, as does code 127. Confirm the architecture of both the binary and the system before anything else.

Distinguishing them in three steps

  1. Is the log empty? Then the process died before writing anything — an architecture or loader problem, not a configuration one.
  2. Does the first error name a field or a path? Then the configuration or a missing artifact is the cause, and the message already tells you which.
  3. Does the first error name an address or a permission? Then it is a bind or a rights problem, both of which have specific remedies.

Three steps, and none of them requires interpreting the exit code. The code only told you the process stopped, which the interface already reported.

What not to do

  • Do not reinstall first. A reinstall replaces files, which addresses one of the four causes and destroys the log evidence for the other three.
  • Do not run as administrator as a first move. Elevation changes which causes you can hit and can leave a second core alive under another account, which then collides on the port and produces a different error.
  • Do not delete the profile. The configuration the message points at is the evidence. Removing it may make the next start succeed for an unrelated reason and the cause is never learned.

The record worth keeping is the exact code, whether the log has content, and the first error line. Those three are enough to name the cause in every case above.

Frequently asked

What does code 1 mean specifically?

It means the process reported failure without a more specific category. Every configuration error, bind failure, permission refusal, and internal fault returns it. The specific reason is only in the core's output.

The log is empty and the code is 1. What now?

A process that fails before writing anything did not start its own code — suspect an architecture mismatch, a missing loader, or a security product blocking execution. Check the binary's architecture against the system first.

Why does code 137 appear?

That value is conventionally produced when a process is killed by a signal, typically because a memory limit was reached. It indicates the operating system terminated the core rather than the core deciding to exit.

Can the interface show the full core output?

Often only partially. Starting the core directly from a terminal shows everything, and the first error line from that run is the most valuable single piece of evidence available.

Is 127 the same as 1?

No. 127 conventionally means the command was not found — the binary is absent or not executable. That has a file-level cause, while 1 covers everything that happens after the binary runs.