Troubleshooting
This page starts from what you see: a node that never comes up, a client that cannot connect, a panel that shows no traffic. Each section names the log lines katana writes for that problem, what causes them and how to fix them. Log lines are quoted exactly as katana 6.1.0 writes them. Other versions word some of them differently and behave differently in places, so check yours with katana --version first.
Read Raise the log detail before you dig into a specific problem: most per-connection failures are logged only at debug level, which is off by default.
Where to look first
Section titled “Where to look first”| Symptom | Section |
|---|---|
| katana exits right after it starts | katana exits at startup |
| katana runs, but a node’s port is not open | A node never comes up |
| You saved the config file and nothing changed | A config edit had no effect |
| The port is open, but clients fail to connect | Clients cannot connect |
| Users are faster or slower than their plan | Speeds are not what you expect |
| The panel shows no traffic, or the wrong amount | Traffic does not show in the panel |
| A destination that an audit rule should block still loads | An audit rule does not block |
| Only the destinations routed through WireGuard time out | A WireGuard outbound passes no traffic |
Log lines such as node_info: GET … or report <id>: … |
Panel request errors |
Three checks answer most questions before you read further:
-
Check the file.
katana --test -c /etc/katana/config.tomlprintsConfiguration OKorconfiguration error: …. It parses the file and, for each node, checkspanel_typeandnode_type(on a helium node, that the file leaves the protocol to the panel) and builds the node’s outbounds,[dns]and routes, and the listener settings of a Hysteria 2 node on Xboard or V2board. It does not contact the panel or bind a port, soConfiguration OKsays nothing about the panel or the listener. -
Check the listeners. A node that is up holds its port. TCP-based nodes listen on TCP, and Hysteria 2 nodes on UDP:
Terminal window ss -ltnp | grep katana # every node type but Hysteria 2ss -lunp | grep katana # Hysteria 2A node missing from this list did not build at startup, or has not come up yet and is retrying. Its log lines say which.
-
Read the log. katana writes to standard output. Under systemd, that is the journal, for example
journalctl -u katana -f.
How to read a log line
Section titled “How to read a log line”Every line has a UTC timestamp, a level, a target and a message:
2026-09-24T08:15:02.481233Z ERROR katana::manager::node: node 1: node_info failed: GET /api/v1/server/UniProxy/config; retrying in 4sThe target is the module that wrote the line; Raise the log detail uses it to turn detail on for one part of katana. The examples on this page leave out the timestamp and usually the target.
Different lines name a node in different ways:
| Form | Example | Used by |
|---|---|---|
node <node_id> |
node 1: listening on [::]:443 |
Startup and its retries, polls, reports and audit |
inbound <Type>_<listen_ip>_<port> |
inbound V2ray_0.0.0.0_443: binding <address> failed: … |
The runtime’s messages about a node’s listener, such as a bind that failed |
<panel_type>@<host>#<node_id> on helium, <panel_type>@<host>#<node_id>/<node type> on NewV2board and V2board |
reload: added node newv2board@https://panel.example.com#1/v2ray |
Config reloads, including a refused one (reload: node …: …; keeping current config) |
In the inbound form, <listen_ip> is written as in the file, so a node on 0.0.0.0 is V2ray_0.0.0.0_443 even where it binds [::]. In the reload form, <panel_type> is in lower case, and <node type> is the type katana asks the panel for: your node_type in lower case, or vless when a V2ray, VMess or VLESS node has enable_vless = true.
Raise the log detail
Section titled “Raise the log detail”katana’s log filter uses the tracing filter syntax: a default level, then optional target=level pairs separated by commas. A target matches itself and every module under it, so katana::manager=debug also covers katana::manager::node.
You can set the filter in two places:
At startup, katana takes its filter from the RUST_LOG environment variable when it holds a valid filter, and from [log].level otherwise. This suits a one-off foreground run:
RUST_LOG=info,etemenanki_supervisor=debug katana -c /etc/katana/config.tomlFor a systemd service, put the variable in a drop-in file and restart the service. Restarting drops every connection.
[Service]Environment=RUST_LOG=info,etemenanki_supervisor=debugkatana applies a changed [log].level on hot reload, without dropping connections. Save the file and look for reload: log level → …:
[log]level = "info,etemenanki_supervisor=debug"From then on, the file wins over RUST_LOG. Remove the key when you are done; that sets the level back to info. An invalid value logs invalid log level "<value>": … and keeps the current filter.
These are the targets worth knowing:
| Target | What it logs |
|---|---|
katana::runtime |
Startup errors, config reloads, the file watcher, shutdown, and the warning for a WireGuard outbound that several nodes route to |
katana::manager::node |
Node start and its retries, polls, panel request errors, traffic reports, missed <n> flow events |
katana::lower |
Users skipped because the node cannot admit them (warn) |
katana::lower::inbound |
The warning that listen_ip = "0.0.0.0" serves IPv4 only on this host (warn) |
katana::api |
Audit rule sources: an unreadable rules file or a regex that does not compile (warn) |
katana::rule |
An audit rule id left out of the route table (warn) |
etemenanki_supervisor |
The runtime that serves every node: inbound … listening on … (info), accept errors (warn), connections dropped at a built-in limit, and one line for each connection that fails its handshake or ends with an error (debug) |
etemenanki_protocols |
The proxy kernel: protocol cores, transports, the Hysteria 2 listener (etemenanki_protocols::hysteria) and the WireGuard tunnel (etemenanki_protocols::wireguard) |
boringtun |
WireGuard handshakes, keepalives and session changes |
katana exits at startup
Section titled “katana exits at startup”katana exits with status 1 when it cannot run at all. The last line says why:
| Log line | Cause | Fix |
|---|---|---|
failed to load config: … |
The file is missing, not UTF-8, or not valid TOML, or it has an unknown key | Run katana --test; it prints the same error. Config file lists every key. |
config defines no [[node]] entries |
The file has no [[node]] table |
Add one. [node] with single brackets does not count. |
node 1: unknown panel_type "…" |
panel_type is not NewV2board, V2board or Helium (in any case). Xboard is NewV2board. Helium needs katana 4.5.0 or later. |
Fix the value. |
node 1: panel_type "SSpanel" is not supported: katana serves the NewV2board and Helium panels |
The node names SSPanel, in any case, which katana 6 no longer serves. The quoted value is spelled as in the file. | Serve the node from an Xboard, V2board or helium panel and change its [[node]] table to match. See Upgrading to katana 6. |
node 1: unknown node_type "…" |
node_type is not a known value |
Use V2ray, Trojan, Shadowsocks, AnyTLS, Socks, Http or Hysteria2. A helium node sets no node_type. |
node 1: [node.api] node_type is set, but a helium node's protocol is described by the panel; remove it (of [node.hysteria], only congestion is this host's to choose) |
A helium node’s file sets a key that helium’s panel describes. The line names the first one it finds: [node.api] node_type or enable_vless, or a [node.hysteria] key other than congestion (port, credential, udp, udp_idle_timeout, obfs, obfs_password, [node.hysteria.masquerade], up_mbps, down_mbps, ignore_client_bandwidth). |
Remove the key. The panel’s node config gives the protocol, the port and every Hysteria 2 setting but congestion. See helium. |
node 1: newV2board: no UniProxy panel describes an sss node; sss is Helium's own protocol, served with panel_type = "Helium" |
node_type = "sss" on an Xboard or V2board node. |
Serve sss nodes from helium. |
node 1: … with another reason |
Something the node builds before it asks the panel does not build: an [[outbound]], [dns], [node.route] (route references unknown outbound …, building route failed: …), a Hysteria 2 node’s listener settings, or a [node.hysteria] congestion other than cubic, bbr or reno, which every node checks |
See Outbounds, Routing or Hysteria 2 nodes. |
no nodes could be started |
Every node was skipped for one of the reasons above | Fix them; --test reports the first. |
A node skipped for one of the node 1: … reasons does not stop the others. katana exits only when none is left. An error in an [[outbound]] or in [dns] is found by every node, so it skips them all.
On a reload, the same errors do not skip a node: they refuse the whole save. If a node that the save adds or changes does not build, or any node after an [[outbound]] or [dns] edit, katana logs a line such as reload: node newv2board@https://panel.example.com#1/v3ray: unknown node_type "v3ray"; keeping current config, applies nothing from that save, and keeps every node running as it was. A node that was skipped at startup and is still broken is added again by every later save, so it refuses every save, even one that edits only other parts of the file, until you fix or remove its [[node]] table; see Hot reload.
A node never comes up
Section titled “A node never comes up”A node keeps trying until it is up. Each attempt asks the panel for the node’s settings, asks for the user list, loads the audit rules, builds the node and binds its listener. A Hysteria 2 node on Xboard or V2board with [node.hysteria].port set takes its settings from the file instead and asks the panel only for users. node 1: listening on [::]:443 means every step worked.
flowchart TB
S["Attempt"] --> I{"Panel returns node settings katana can serve?"}
I -- no --> R["ERROR, then wait"]
I -- yes --> U{"Panel returns the user list?"}
U -- no --> R
U -- yes --> B{"Node builds and binds?"}
B -- no --> R
B -- yes --> L["listening on ip:port"]
R -- "wait over, or the node's config saved" --> S
When a step fails, the node logs one ERROR line that names the step and the wait, for example node 1: user_list failed: GET /api/v1/server/UniProxy/user; retrying in 2s, and tries again after the wait. The first wait is 1 second, and each failure after that doubles it, up to 60 seconds or update_periodic, whichever is shorter. Every attempt asks the panel for everything afresh, so a fix in the panel is seen at the next attempt.
Start-up log lines
Section titled “Start-up log lines”All of these lines come from katana::manager::node at ERROR. Each begins with node <node_id>: and ends with ; retrying in <N>s, which the table leaves out. The node tries again after the wait, so fix the cause and watch for the next line.
| Log line | Cause | Fix |
|---|---|---|
node_info failed: GET /api/v1/server/UniProxy/config |
The request to an Xboard or V2board panel failed: the host may be wrong or unreachable, the request may have timed out, or the panel may have rejected the key, the node_id or the node type. |
Send the request by hand to see the panel’s answer. Check the node type. |
node_info failed: GET config |
The same for helium. helium answers 401 without a token and 403 for a wrong token or node ID. |
The same. |
node_info failed: parse UniProxy config response: expected value at line 1 column 1, or another JSON error such as EOF while parsing a value at line 1 column 0 |
The panel answered with something that is not JSON, often an HTML page from a wrong host, an empty body, a redirect, a web firewall or a bot check in front of the panel. |
Send the request by hand and look at the body. host is the panel’s base URL, including https://. |
node_info failed: parse UniProxy config response: a value of the wrong type at line <L>, column <C> |
A field of the panel’s answer has the wrong type, such as server_port sent as a string. The line names the position, not the value, which may be a key. |
Send the request by hand and look at that position in the body. |
node_info failed: parse UniProxy config response: <reason> with another reason |
katana read the answer and refused the node it describes. The reason says why; UniProxy refusals lists them. | Change the node in the panel. |
node_info failed: parse helium config response: … |
helium answered with something that is not a node config katana can use: not JSON, or a config that breaks one of the node config’s rules, which the text after the colon names. | Send the request by hand and look at the body. |
user_list failed: … |
The user request failed. The node needs a user list to come up, so it binds nothing and retries. The endings are the same as for node_info failed. |
Check the panel as for node_info failed. |
panel returned no node info or panel returned no user list |
The panel, or something in front of it, answered 304 Not Modified, although katana asked without a tag. |
Send the request by hand and check what answers it. |
initial start failed: TLS node requires cert.mode = "file" |
The node uses TLS, because the panel turned it on or because it is a Trojan node, which always uses TLS, and [node.controller.cert] has no mode = "file". |
Set mode = "file", cert_file and key_file. |
initial start failed: TLS node requires cert.cert_file and cert.key_file |
mode = "file" with a path missing. |
Set both paths. |
initial start failed: No such file or directory (os error 2) |
cert_file or key_file does not exist. |
Check both paths. Use absolute paths: a relative one is opened against katana’s working directory. |
initial start failed: Permission denied (os error 13) |
katana may not read cert_file or key_file. |
Check the files’ owner and mode. |
initial start failed: inbound <tag>: binding <address> failed: Permission denied (os error 13) |
katana may not bind a port below 1024. | Grant CAP_NET_BIND_SERVICE or run as root; see Deployment. |
initial start failed: inbound <tag>: binding <address> failed: Address already in use (os error 98) |
Another program, or another node, holds the port. With listen_ip = "0.0.0.0" on a dual-stack host the node binds [::], which also collides with a program on the same port over IPv6. |
Free the port, or change it in the panel. |
initial start failed: inbound <tag>: binding <address> failed: Cannot assign requested address (os error 99) |
listen_ip is not an address of this host. |
Use an address the host has, or 0.0.0.0. |
initial start failed: node requests kernel-unsupported feature: ACME cert mode "…" or … cert.reject_unknown_sni |
Your own file asks for a certificate mode or check katana does not implement. | Set mode = "file", or remove reject_unknown_sni. |
initial start failed: inbound <tag>: padding scheme line <n> … |
An AnyTLS node’s padding scheme has a line the kernel cannot read, such as padding scheme line 2 is not key=value. |
Fix the scheme in the panel. See AnyTLS. |
UniProxy refusals
Section titled “UniProxy refusals”On Xboard and V2board, katana converts the panel’s answer into a node config as it reads it, and refuses there, by name, whatever it cannot serve. Each refusal is a node_info line whose reason follows parse UniProxy config response: . While the node comes up it is an ERROR, node 1: node_info failed: parse UniProxy config response: <reason>; retrying in <N>s, and the node binds nothing. On a node that is already up, a poll that brings a refused answer logs WARN node 1: node_info: parse UniProxy config response: <reason>, and the node keeps its last settings while its users still follow the panel. Either way the node takes the answer once the panel is fixed. The reasons, after parse UniProxy config response: :
| Reason | Cause | Fix |
|---|---|---|
server_port <n> is not a port (1 to 65535) |
The panel’s port for the node is 0, missing, negative or above 65535. katana refuses it rather than serve another port. |
Set the node’s port in the panel. On Xboard, katana binds the server port, not the port shown to users. |
node requests kernel-unsupported feature: … |
The panel asks for something katana does not serve: VLESS flow "…", an XTLS flow off VLESS, REALITY on a VMess node, socks without TLS, http without TLS, socks over REALITY, http over REALITY, httpupgrade transport, splithttp transport, transport "…", tcp header type "…" or shadowsocks cipher "…". |
Change the node in the panel. For tcp header type, set the TCP node’s header type to none. Protocols lists what katana serves. |
tcp header is not an object or tcp header type is not a string |
The panel’s TCP header setting for the node is malformed. | Set the node’s header type to none in the panel, or clear the header. |
the panel's node is protocol "…", but this node is configured as … or … which katana does not serve |
The panel’s node is another protocol than node_type says. |
See node_type and the panel’s protocol. |
security reality runs over transport tcp only or flow xtls-rprx-vision needs security reality |
The panel turned REALITY on for a node over WebSocket or gRPC, or set the Vision flow on a node without REALITY. | Serve REALITY over TCP, or change the flow in the panel. See REALITY and Vision. |
a REALITY node (tls = 2) carries no tls_settings, the REALITY tls_settings: …, REALITY needs a server_name, REALITY needs the cover site's port, security.server_name must be a host name of …, REALITY private_key: … or REALITY short_id: … |
The panel’s REALITY settings are missing or of the wrong form. None of these repeats the key or the shortId. | Fix the node’s REALITY settings in the panel. |
transport.path must start with /, transport.path must have no query but ?ed=N; …, transport.host must not have a port; … or transport.service_name must not be empty |
The node’s WebSocket path or host, or its gRPC service name, is one no client could match. | Fix the transport settings in the panel. |
newV2board: shadowsocks obfs "…" is not supported, newV2board: shadowsocks over REALITY is not supported, shadowsocks server_key is not base64 or shadowsocks-2022: PSK too short (<n> < <len>) |
A Shadowsocks node’s obfs, REALITY or 2022 server key. | Turn obfs and REALITY off, or set a server key of the cipher’s length, such as one from openssl rand -base64 32. |
padding_scheme[<n>] is empty, or another padding_scheme rule |
An AnyTLS node’s padding scheme has an empty line, a line break in a line, or more than 2048 bytes. | Fix the scheme in the panel. |
unknown obfs "…" (expected "salamander"), obfs_password must be at least 4 bytes for salamander or obfs_password is set but obfs is not; did you mean obfs = "salamander"? |
The obfuscation a Hysteria 2 node’s panel sends. Xboard sends the obfuscation password even when obfuscation is turned off, which produces the last one. | Turn obfuscation on in the panel, or clear its password. The settings in [node.hysteria] and the certificate are checked earlier, by katana --test and at startup; see katana exits at startup and Hysteria 2 nodes. |
Send the request by hand
Section titled “Send the request by hand”To see what the panel answers, send the same request with curl. Reading the key into a variable keeps it out of your shell history:
read -rs KEY # paste the panel key, then press Entercurl -sS -i "https://panel.example.com/api/v1/server/UniProxy/config?node_id=1&node_type=v2ray&token=$KEY"Use the node_type katana sends: your node_type in lower case, or vless when a V2ray, VMess or VLESS node has enable_vless = true. A working node answers 200 with JSON that contains server_port. Xboard answers a wrong key with Invalid token, an unknown type with Invalid node type specified, and an ID that has no node of that type with Server does not exist. For the user list, replace config with user.
read -rs KEY # paste the node's API token, then press Entercurl -sS -i -H "Authorization: Bearer $KEY" "https://panel.example.com/api/node/v2/1/config"A working node answers 200 with JSON that contains protocol and port. For the user list, replace config with users.
Run it from the node’s host, so that DNS, routing and firewalls are the same as katana’s. A connection error, a certificate error, an HTTP error status or a body that is not JSON each point to a different fix, and the panel’s error message usually names the problem. Do not add -L: katana does not follow redirects, so a 301, 302, 307 or 308 answer means host is not the URL the panel answers at. Put the address from the Location header in host.
After you fix the cause
Section titled “After you fix the cause”You do not need to restart katana. The node picks up the fix at its next attempt, at most 60 seconds later, or one update_periodic interval if that is shorter. If the fix is in the node’s [[node]] table, saving the file ends the wait and starts the next attempt at once, with the new settings. Check the file with katana --test before you save.
After a node is up
Section titled “After a node is up”A node that has come up once keeps its listener. A failed poll logs a warning such as node 1: node_info: … or node 1: user_list: … and keeps the last settings it received, and so does a poll whose node settings katana refuses (UniProxy refusals); see Panel request errors. A change katana reads but cannot build, such as TLS turned on for a node without a certificate, logs ERROR node 1: cannot build the node, keeping the running one: …, and the node keeps running as it was.
A config edit had no effect
Section titled “A config edit had no effect”katana reloads its config file shortly after you save it, and applies almost every change at once. An edit to [node.api], such as speed_limit, timeout, rule_list_path or enable_vless, or to enable_mtls, gives the node a new panel client, which reads the node and its users again at once; connections drop only if that changes the node’s protocol or transport. On Xboard and V2board, a node_type or enable_vless change that changes the type katana asks for replaces the node; see the first row below. The exception is a save that does not build, which katana refuses. A save that katana applies writes a reload: line for each part it changed, and a refused one writes a line that says keeping current.
| You changed | What happened | What to do |
|---|---|---|
api.node_type or api.enable_vless on Xboard or V2board, so that katana asks the panel for another type, and the node restarted |
The panel finds a node by its ID and the type katana asks for, so the new type names another panel node. katana stops the old node, with a final traffic report, and starts one for the new type: reload: removing node …#1/v2ray, then reload: added node …#1/vless. Every connection on the node drops, and the new node starts with nothing counted. |
Expected. Make the change when the node is quiet. |
disable_sniffing, [node.route], a key in [node.hysteria] or the certificate settings, and the node’s connections dropped |
These apply at once and drop every connection on the node. | Expected. Make these edits when the node is quiet. |
api.enable_vless on Xboard or V2board, when it does not change the type katana asks for, and the node’s connections dropped |
The new panel client reads the node as the new setting says, and VMess and VLESS are different protocols, so the node drops its connections. | Expected. Make the change when the node is quiet. |
[[outbound]] or [dns], and every node’s connections dropped |
katana logs reload: outbound pool rebuilt. Every node builds its outbounds and resolver again, and drops all its connections. |
Expected. Save such edits at a quiet time. |
controller.send_ip, api.device_limit |
These keys have no effect. | Nothing to apply. |
| A renewed certificate, same paths | katana reads the certificate files again at every poll, so new connections get the new certificate within update_periodic seconds. Open connections keep the one they started with. |
Wait for the next poll. See Renew a certificate. |
Replaced geoip or geosite files, same paths |
katana checks the files at every poll, and rebuilds the node’s routes from a replaced one at its next poll, within update_periodic seconds. New connections are routed with it; open connections are not dropped. |
Wait for the next poll. Install a new file by renaming it over the old one, so that a poll never reads a half-written file. |
On a helium node, api.node_type, api.enable_vless or a [node.hysteria] key other than congestion, and the log says reload: node helium@…: … is set, but a helium node's protocol is described by the panel; …; keeping current config |
helium’s panel describes the node’s protocol, so katana refuses a file that sets these keys and applies nothing from that save. | Remove the key and save again. |
Anything, and the log says reload: node …: …; keeping current config |
A node the save adds or changes, or any node after an [[outbound]] or [dns] edit, does not build: SSPanel or an unknown panel_type, an unknown node_type, a key that a helium node’s panel describes, a route that names a missing outbound (route references unknown outbound …), a geodata problem (building route failed: …), an outbound or [dns] that does not build. katana applied nothing from that save. |
Fix the node the line names and save again. katana --test reports the same error. |
Anything, and the log says config reload failed, keeping current: … |
The file does not parse. | Fix the file and save again. |
| Anything, and no line appears at all | The file watcher did not start (config watcher disabled (no live reload): … at startup), or the config path is a symlink into another directory, whose changes katana does not see. |
Restart katana after each edit. |
| Anything in a node that has not come up yet | Nothing is lost: the node is still running and retrying. It takes the edit and starts its next attempt at once, with the new settings. | Read the node’s next line: listening on …, or retrying in <N>s with the cause that is left. |
The full table of what each key does on reload, and which changes drop connections, is in Hot reload.
Clients cannot connect
Section titled “Clients cannot connect”katana writes nothing at the default info level when a single connection fails. If the node’s port is open (see Where to look first), work through the stages a connection passes, in order:
| Stage | What can fail | Where to look |
|---|---|---|
| Reaching the port | A firewall, a cloud security group, UDP blocked for Hysteria 2, IPv6 on a host where the node serves IPv4 only | Is the port reachable? |
| TLS | Missing or wrong certificate, a server name the certificate does not cover | Certificates |
| Transport | WebSocket path or Host, gRPC service name, a TCP header type other than none |
Xboard and V2board, helium |
| Protocol | A client protocol that differs from what katana serves, an unknown user, clock skew | node_type and the panel’s protocol, VMess and the clock |
| The destination | A route to block, an audit rule, a failing outbound |
An audit rule does not block, A WireGuard outbound passes no traffic |
To see the reason for each failed connection, turn on etemenanki_supervisor=debug as described in Raise the log detail. The runtime writes one line for each connection that fails or ends with an error, naming the protocol and the client’s address:
DEBUG etemenanki_supervisor::serve: vmess connection from Some(198.51.100.7) ended: proxy core: vmess: unknown user or invalid auth idDEBUG etemenanki_supervisor::serve: vless connection from Some(198.51.100.7) ended: proxy core: invalid vless request user idDEBUG etemenanki_supervisor::serve: trojan connection from Some(198.51.100.7) ended: proxy core: trojan: invalid userDEBUG etemenanki_supervisor::serve: vmess connection from Some(198.51.100.7) ended: inbound handshake timed out after 10sDEBUG etemenanki_supervisor::serve: inbound transport failed: …inbound transport failed covers failures below the proxy protocol, such as a TLS handshake or a WebSocket upgrade that did not complete. A client that is still in its protocol handshake after 10 seconds is disconnected with inbound handshake timed out after 10s. These lines do not name the node or the user.
Is the port reachable?
Section titled “Is the port reachable?”- Firewall. Open the port for TCP on every node type but Hysteria 2, and for UDP on Hysteria 2 nodes, both in the host firewall and in any cloud security group. Hysteria 2 fails silently when UDP is blocked: the client times out and katana logs nothing. For example,
ufw allow 443/udporfirewall-cmd --add-port=443/udp --permanent. With the defaultlisten_ip, check the IPv6 rules as well. - Address family. The default
listen_ip = "0.0.0.0"binds[::]on a dual-stack host and accepts IPv4 and IPv6 clients. On a host that setsnet.ipv6.bindv6only = 1, katana logsIPv6 sockets here take IPv6 alone (net.ipv6.bindv6only), so listen_ip 0.0.0.0 serves IPv4 onlyonce and binds IPv4 only. A specific address, such as203.0.113.10or2001:db8::10, serves that address alone. - File descriptors.
accept error, backing off 100ms: Too many open files (os error 24)means katana has reached its open-file limit, so new clients wait or fail. Raise the limit, for example withLimitNOFILE=in the systemd unit.
Certificates
Section titled “Certificates”katana takes every certificate from [node.controller.cert]. It ignores the TLS settings and certificates a panel sends, so a certificate uploaded to the panel is never served. A REALITY node reads no certificate at all.
- A missing file keeps the node from coming up: it retries with
initial start failed: No such file or directory (os error 2)until the file is there. See Start-up log lines. - Clients check the certificate’s Subject Alternative Names against the server name they send. A certificate that names the host only in its Common Name, or that covers a different name, fails on the client with a certificate error, and katana sees only a failed TLS handshake.
- A self-signed certificate works only when the client pins it or skips verification.
- katana reads the certificate and key again at every poll, so a renewed certificate reaches new connections within
update_periodicseconds. Replace both files in one step; see Renew a certificate.
node_type and the panel’s protocol
Section titled “node_type and the panel’s protocol”On Xboard and V2board, node_type decides which protocol katana serves, whatever the panel says the node is. When the two disagree, either the panel refuses the request or katana serves a protocol the clients do not speak.
With Xboard or V2board, katana sends a node_type with every request, and the panel looks the node up by ID and type together:
| Node in the panel | node_type |
enable_vless |
katana sends |
|---|---|---|---|
| VMess | V2ray or VMess |
false |
v2ray or vmess |
| VLESS | V2ray |
true |
vless |
| Trojan | Trojan |
false |
trojan |
| Shadowsocks | Shadowsocks |
false |
shadowsocks |
| AnyTLS | AnyTLS |
false |
anytls |
| SOCKS | Socks |
false |
socks |
| HTTP | Http |
false |
http |
| Hysteria 2 | Hysteria2 or Hysteria |
false |
hysteria2 or hysteria |
The common mistakes:
node_type = "vless"withoutenable_vless = true. katana asks the panel for the VLESS node, receives it, and serves VMess on it. Every client fails withvmess: unknown user or invalid auth id. When the panel’s node config names its protocol, katana also warns:the panel's node is protocol "vless", but enable_vless is false; serving VMess as configured. Setenable_vless = trueand save. The node keeps its panel node, because katana already asks forvless, and switches to VLESS at once, dropping its connections.node_type = "hy2"or"socks5". katana accepts the name, but it sends it to the panel unchanged and Xboard does not know it, so every request to the panel fails withInvalid node type specified. UseHysteria2orSocks.- A type the node does not have under that ID. The panel finds no node, and the request fails with
node_info failed: GET /api/v1/server/UniProxy/config. Sending the request by hand shows Xboard’sServer does not exist.
With helium, the panel finds a node by its ID alone, and its node config describes the node’s protocol in full. A helium node sets no node_type or enable_vless: katana serves the protocol the panel describes, and refuses a file that sets one of these keys (see katana exits at startup). See helium.
VMess and the clock
Section titled “VMess and the clock”VMess authentication includes a timestamp, and katana accepts it only within 120 seconds of its own clock in either direction. Outside that window every connection fails, and at debug level the line names the gap: vmess: auth id stamped 300 s behind the server clock (or ahead of). When you cannot fix the clients’ clocks, [node.controller] disable_vmess_clock_check = true accepts any plausible timestamp, at the cost that a handshake replayed more than 240 seconds after it first arrived is served again; see Protocols. Shadowsocks nodes with a 2022-blake3-… cipher are stricter: the request header’s timestamp must be within 30 seconds, and a client outside that window fails with shadowsocks-2022: bad timestamp. Check that both the server and the client keep time:
timedatectl status # "System clock synchronized: yes"If one client fails while others on the same node work, check that device’s clock and time zone setting. VLESS, Trojan, Hysteria 2 and the older Shadowsocks ciphers do not depend on the clock this way.
Hysteria 2 clients
Section titled “Hysteria 2 clients”Beyond the UDP firewall:
- Credential. By default the client’s password is the user’s UUID. With
[node.hysteria].credential = "user_pass", it is<uuid>@v2board.user:<uuid>on Xboard and V2board. On helium, wherecredentialcannot be set, it is always the UUID. A client that sends the wrong form getsauthentication error, HTTP status code: 404, or your masquerade status. - Obfuscation. The client’s
salamanderpassword must match the node’s: the panel’sobfs-password, or[node.hysteria].obfs_passwordfor a node described locally. A mismatch looks exactly like blocked UDP, a timeout with no authentication error, because katana cannot read the packets. - Certificate. Hysteria 2 clients verify the certificate like any TLS client; see Certificates.
RUST_LOG=info,etemenanki_protocols::hysteria=debug shows the listener’s view, for example hysteria2: a handshake failed: …. Hysteria 2 nodes covers the settings.
- A new user cannot connect yet. katana learns about user changes at its next poll, up to
update_periodicseconds (default 60) after the change. - One user is never accepted. katana leaves out a user it cannot admit and logs why at
WARN, naming the user ID and never the credential:skipping user 7: uuid is not a valid UUIDon a VMess or VLESS node,uuid is empty,listed twice,shares its credential with user 3when an earlier user in the list has the same credential,shadowsocks-2022 key too short (< 16)on a Shadowsocks 2022 node, andits name holds ':'on a Hysteria 2 node withcredential = "user_pass". The other users are served. Fix the user in the panel. On helium a UUID that does not parse fails the whole users answer instead, withparse helium users response, and the node keeps the users it has. - No user added since some time ago can connect. Look for
user_list: …warnings at every poll: katana keeps serving the last user list it could read. - A removed user keeps working. Removal takes effect at the next poll, and then ends that user’s open connections as well.
- One more device of a user cannot connect. With
enable_device_limit = true, a user’s connections may come from at most as many addresses as the panel’s device limit. A connection from one more address is refused; atdebuglevel the reason readsthe user's sessions already come from as many IPs as their device limit. See Device limits and IP bans. - Every connection from one address is dropped at once. With
enable_device_limit = true, an address whose authentications kept failing is banned forban_secs. katana logged it atINFO:banned <ip> for 300s after 30 failed authentications. For an IPv6 client the ban covers its whole /64, so its other addresses are dropped too, and the line names the /64:banned 2001:db8:1:2::/64 for 300s after 30 failed authentications. The ban ends by itself. Behind relays that send no PROXY protocol v2 header, every client shares the relay’s address; turnenable_device_limitoff there. Behind a reverse proxy in front of a WebSocket node, every client shares the proxy’s address unless you setreal_ip_headerandreal_ip_from; see Device limits and IP bans.
Speeds are not what you expect
Section titled “Speeds are not what you expect”A user’s rate is the limit the panel gives the user: each user’s own on Xboard and V2board, and on helium the one limit its users answer gives every user. 0 means no limit. [node.api].speed_limit above 0 replaces it. katana enforces the rate with one token bucket per user on the node. Speed limits explains the mechanism.
| Symptom | Cause | What to do |
|---|---|---|
| Every user on the node has the same speed, whatever their plan | [node.api].speed_limit is above 0. It replaces every user’s limit, including users whose plan has none. It is not a ceiling. |
Set it to 0 and save. The node’s users get their own limits at once, on their open connections too, without dropping them. |
| The rate is 8 times lower or higher than you meant | All limits are in megabits per second, decimal. speed_limit = 100 is 12,500,000 bytes per second, which a client shows as about 12.5 MB/s. |
Convert: bytes per second times 8, divided by 1,000,000. |
| A changed limit has not taken effect yet | A limit changed in the panel applies at the next poll; a speed_limit saved in the file applies at once, Hysteria 2 nodes included. The new rate then reaches every flow of the user, open ones included, within about a second. |
Wait for the next poll. |
| A user downloading and uploading at once gets about half the rate each way | Both directions, and every connection of the user on the node, share one bucket. | Expected. Size the plan for combined traffic. |
| A Hysteria 2 client’s declared bandwidth makes no difference | The node answers auto, which is the default (ignore_client_bandwidth = true), so no fixed rate is agreed. Either way, katana’s per-user limit comes only from the panel and the config file. |
Set the limit in the panel. To agree rates with clients, see Rates and congestion control. |
| Everyone is slow, with no limits set | The bottleneck is elsewhere: the host, its link, or the outbound. | Test without katana, and see A WireGuard outbound passes no traffic for tunnels. |
Traffic does not show in the panel
Section titled “Traffic does not show in the panel”katana reports traffic at every poll, every update_periodic seconds. It sends nothing for users who moved no bytes, and sends no request at all when nobody did.
| Symptom | Cause | What to do |
|---|---|---|
| No traffic at all, and no warnings | [node.controller].disable_upload_traffic = true |
Set it to false. From the next report on, katana reports the traffic moved from then; what was counted while reporting was off is not sent. See Turning reporting off. |
| No traffic yet, right after start | The first report comes one full update_periodic interval after the node came up. |
Wait one interval. |
node 1: report <id>: POST UniProxy push |
A report to Xboard or V2board failed. | See Panel request errors. |
node 1: report <id>: POST report |
A report to helium failed. | The same. |
node 1: missed <n> flow events at WARN |
The node fell behind reading the flows it opened. Traffic counts do not depend on these events. On a helium node with enable_device_limit, the next report can lack the client addresses of flows that opened and closed in that time; the addresses of open connections are still sent. |
Nothing to fix for traffic. |
| The node has no listener | It has not come up yet and is retrying, so it has nothing to report. | See A node never comes up. |
| Xboard shows the node online but without a push | No user moved any bytes for a while, so katana sent no push. | Expected on an idle node. |
| The panel shows less than the network interface | katana counts each connection’s proxy protocol stream: TLS records, WebSocket and gRPC framing and TCP/IP headers are not counted. For Hysteria 2 it counts the QUIC datagrams, without UDP/IP headers. | Expected. |
| The panel shows more than the payload the user moved | The protocol’s own handshake and framing are counted, or Xboard multiplies by the node’s rate. | Check the node rate. See What is counted. |
304 Not Modified answers in the panel’s access log are normal. katana asks for the node config and the user list with the tag of the last answer. 304 means nothing changed, and katana keeps what it has without logging anything. Traffic reports are POST requests and never get a 304.
An audit rule does not block
Section titled “An audit rule does not block”katana tests audit rules against a flow’s domain name, in lower case: the name the client asked for, or the name sniffed from the TLS server name or HTTP Host of a TCP flow. The rules are the node’s first routes, so they run before [node.route]. Destination audit explains the matching in full. The usual reasons a rule does not fire:
- The flow names no domain. A client that connects to an IP address, with no name sniffed from its first bytes, is never tested: sniffing is off (
disable_sniffing = true), the flow is UDP, or its first bytes carry no name. An audit rule cannot block an address. Use acidrorgeoiprule that sends it toblockin routing. - Case and anchors. The name is lower-cased before the test, so a pattern with a capital letter never matches unless it starts with
(?i).^blocked\.example\.com$does not matchwww.blocked.example.com. - Rules are off. With
disable_get_rule = true, katana loads no audit rule, the local file included. - The rule has not loaded yet, or failed to. Rules load before the node starts serving and refresh at every poll. Look for
invalid local rule …,invalid block rule …,audit rule <id> skipped: …orcannot read rule_list_path …atWARN. - The flow was already open. Rules apply to new flows. Open TCP connections are not checked again.
A matched flow goes to a blackhole: a TCP connection is answered as if it had connected and then ends without data, and a UDP datagram is dropped. katana writes no log line for it and reports no hit to the panel.
A WireGuard outbound passes no traffic
Section titled “A WireGuard outbound passes no traffic”When the destinations routed to a wireguard outbound time out while everything else works, the outbound is the problem. katana writes no line of its own for a connection that times out through the tunnel. At the default level you may see these warnings instead:
| Warning | Meaning |
|---|---|
wireguard outbound <tag> is routed to by N nodes (…): each brings up its own tunnel with the same key, and the peer keeps only one of them at a time |
Several nodes route to the same WireGuard outbound, so each builds its own tunnel with one key, and the tunnels take the peer’s session from each other. Give each node its own key; see Outbounds. |
HANDSHAKE(REKEY_TIMEOUT) (target boringtun) |
The peer does not answer handshakes. After about 90 seconds of this, CONNECTION_EXPIRED(REKEY_ATTEMPT_TIME) follows at ERROR. |
wireguard: tunnel start failed: … |
The tunnel cannot start at all, for example because its endpoint does not resolve. A domain in server is resolved with the node’s [dns] resolver, and endpoint_address_family limits which of its addresses are used. |
wireguard: tunnel driver stopping, send failed: … or … receive failed: … |
The tunnel’s UDP socket failed, and the tunnel stops. |
wireguard: tunnel driver stopped, rebuilding |
The next connection found the tunnel stopped, and katana starts a new one. |
A tunnel whose handshake completes logs nothing at info, whether or not traffic passes. Work through these steps:
-
Test the upstream outside katana. Run the same tunnel in a throwaway etemenanki-app with a loopback SOCKS inbound, and fetch an IP echo service through it. Outbounds has the procedure and a ready config. It touches nothing in the running katana.
-
Retry the first request once. The first connection through a new tunnel waits for the WireGuard handshake, and with some services the very first connection with a newly issued key fails. Retry once before you decide the key is bad: a first request that times out and a second that works mean the configuration is fine.
-
Do not trust the handshake alone. A completed handshake shows that the peer knows your public key. It does not show that the service still forwards traffic for it: some services complete the handshake for a key they no longer accept and then drop every packet. Only a request that returns the upstream’s exit address proves the key works. If the handshake completes but nothing passes, get a new key or configuration from the service first.
-
Read the tunnel’s own log. Turn on the WireGuard targets in katana, or in the throwaway etemenanki-app:
Terminal window RUST_LOG=info,boringtun=debug,etemenanki_protocols::wireguard=debugSending handshake_initiationrepeated with noReceived handshake_responsemeans the peer does not answer: checkserver,port,public_key,pre_shared_keyandreserved, and that outbound UDP is allowed.Received handshake_responseandNew sessionfollowed by timeouts means the tunnel is up and the peer is not forwarding. WireGuard explains these lines in full. -
If small requests work and large ones stall, lower
mtu, for example to1280.
Panel request errors
Section titled “Panel request errors”A panel error line names the request that failed:
WARN katana::manager::node: node 1: node_info: GET /api/v1/server/UniProxy/configSend the request by hand to see what the panel answers.
Line, after node <node_id>: |
Request |
|---|---|
node_info failed: …; retrying in <N>s (while the node comes up, ERROR) or node_info: … (at a poll, WARN) |
The node’s settings |
user_list failed: …; retrying in <N>s (while the node comes up, ERROR) or user_list: … (at a poll, WARN) |
The user list |
report <id>: … |
The traffic report (on helium, with client addresses) |
The part after the colon tells you how far the request got:
| Ending | Meaning |
|---|---|
GET /api/v1/server/UniProxy/config, GET /api/v1/server/UniProxy/user, POST UniProxy push, helium’s GET config, GET users, POST report |
The request did not get a usable answer. |
GET /api/v1/server/UniProxy/user body and similar, ending in body |
The answer broke off while katana was reading it. |
parse UniProxy config response: …, parse UniProxy user response, parse helium config response: …, parse helium users response: … and similar |
The panel answered, but not with a node config or user list katana can use: often an HTML error page, a redirect, or panel_type set for another panel. On the node config, the text after the colon says why, and on Xboard and V2board it can also be a refusal of the node; see UniProxy refusals. |
What each failure means for the node:
- While a node comes up, a failed settings or user request makes it wait and try again: see A node never comes up.
- At a poll, katana keeps the last settings and users it received. Nothing is torn down, and the next poll tries again.
api.timeout is the limit for each request, in seconds; 0 or unset means 5. A panel that is often slower needs a larger value. A saved change applies at once: katana gives the node a new panel client and keeps the node’s connections.