Known limitations
Source files: 55 · checked against Etemenanki 46c12e4 · katana v6.1.0
Etemenanki/app/src/instance.rsEtemenanki/app/src/main.rsEtemenanki/app/src/lower.rsEtemenanki/supervisor/src/supervisor.rsEtemenanki/supervisor/src/system/blocking.rsEtemenanki/supervisor/src/policy.rsEtemenanki/supervisor/src/topology/spec_plan/plan.rsEtemenanki/supervisor/src/topology/outbound/udp_fanout.rsEtemenanki/concepts/src/core.rsEtemenanki/protocols/src/vless/codec.rsEtemenanki/protocols/src/vmess/codec.rsEtemenanki/protocols/src/trojan/codec.rsEtemenanki/protocols/src/mux/demux.rsEtemenanki/protocols/src/socks/server.rsEtemenanki/protocols/src/socks/handshake.rsEtemenanki/protocols/src/socks/protocol.rsEtemenanki/protocols/src/socks/udp_link.rsEtemenanki/protocols/src/vless/core.rsEtemenanki/protocols/src/trojan/core.rsEtemenanki/protocols/src/vmess/core.rsEtemenanki/protocols/src/vmess/accounts.rsEtemenanki/protocols/src/transports/grpc/liveness.rsEtemenanki/protocols/src/wireguard/device.rsEtemenanki/protocols/src/wireguard/connector.rsEtemenanki/protocols/src/sss/codec.rsEtemenanki/protocols/src/anytls/client/datagram.rsEtemenanki/app/tests/integration/e2e_xray_mux.rsEtemenanki/app/tests/integration/e2e_hysteria_inbound.rsEtemenanki/app/tests/integration/e2e_reload.rsEtemenanki/supervisor/tests/hot_swap.rsEtemenanki/protocols/tests/unit/vless/codec.rsEtemenanki/protocols/tests/unit/transports/accept.rsEtemenanki/protocols/tests/unit/wireguard/device.rsEtemenanki/protocols/tests/unit/wireguard/connector.rsEtemenanki/protocols/tests/unit/mux/demux.rsEtemenanki/protocols/tests/pipeline/socks.rsEtemenanki/protocols/tests/unit/socks/server.rskatana/src/runtime.rskatana/src/manager/node.rskatana/src/manager/mod.rskatana/src/api/mod.rskatana/src/api/newv2board.rskatana/src/api/helium.rskatana/src/blocking.rskatana/src/config.rskatana/src/lower/mod.rskatana/src/lower/inbound.rskatana/src/lower/outbound.rskatana/src/rule.rskatana/tests/unit/e2e.rskatana/tests/unit/runtime.rskatana/tests/unit/rule.rskatana/tests/unit/lower/spec.rskatana/tests/unit/api/newv2board.rskatana/tests/unit/manager/node.rs
This page collects the functional limitations of the releases the rest of this guide describes: Etemenanki at 46c12e4 (etemenanki-concepts 2.1.2, -environment 3.2.1, -reality 0.1.1, -protocols 6.2.1, -supervisor 1.1.0, and etemenanki-app, which reports 2.8.0) and katana 6.1.0, which builds on etemenanki-protocols 7.2.1 and etemenanki-supervisor 2.1.0 (its lockfile resolves etemenanki-concepts 2.2.0, etemenanki-environment 3.2.2 and etemenanki-reality 0.1.1). Entries marked fixed describe the earlier releases they name, and stay for operators who still run those releases. Each open entry is behaviour that an operator notices or a contributor trips over, and each one is confirmed in the code and, where a test exists, in the tests.
Read it before you report a bug that may already be known, and before you change the component an entry names: the cause section points at the type or function responsible. The page lists functional behaviour only. Designed behaviour, such as what a reload does to live connections or which changes need a restart, is described on the page of the component that owns it.
At a glance
Section titled “At a glance”| Limitation | Component | Status |
|---|---|---|
[log].level is not reloaded |
etemenanki-app → init_tracing |
Open |
| VLESS and VMess outbounds send a UDP association to its first destination | etemenanki-protocols → VlessDatagram, VMessDatagram |
Open (a Vision VLESS outbound is not affected since 6.2.0) |
| Every reload replaced the whole generation | etemenanki-app → reload |
Fixed in app 2.1.1 |
| Mux carriers repeat downlink frames or scramble VMess uploads | etemenanki-protocols → Demux |
Fixed in 2.0.1 |
| A SOCKS UDP association hears whichever address sends first | etemenanki-protocols → SocksInbound |
Fixed in 2.0.2 |
| A busy gRPC carrier is judged dead | etemenanki-protocols → gRPC liveness |
Fixed in 4.1.1 |
| WireGuard tunnels wear down on a long-running device | etemenanki-protocols → WireGuard driver |
Fixed in 4.1.2 |
| TLS clients on Windows and macOS trust no CA when OpenSSL is built in | etemenanki-protocols → trust_system |
Fixed in 6.2.1 |
Any [[outbound]] or [dns] edit closes every connection on every node |
katana → StaticUpdate::Globals |
Open |
node_type = "hy2" is refused by Xboard |
katana → newv2board::Client::new |
Open |
| No online-user or node-status reporting to newV2board | katana → PanelClient |
Open |
| A node whose bootstrap fails stays down | katana → NodeManager::run |
Fixed in 3.0.1 |
Some [node.api] edits are not applied |
katana → PanelClient, identity |
Fixed in 3.0.1 |
A [dns]-only edit is not applied |
katana → apply_reload |
Fixed in 4.0.0 |
| Renewed certificates are not picked up | katana → the listener’s certificate | Fixed in 4.0.0 |
| Audit rules see only the requested address | katana → audit | Fixed in 4.0.0 |
| A large user list stalls every connection at each poll | katana, etemenanki-supervisor → user work on a runtime worker |
Fixed in 4.1.6 |
| A panel port outside 1 to 65535 is served as another port | katana → newv2board::parse_node_config |
Fixed in 6.1.0 |
| A refused UniProxy node config logs no reason | katana → newv2board::Client::node_info |
Fixed in 6.1.0 |
Every entry has the same four parts. Symptom is what you see. Cause names the component and the mechanism, followed by the code it comes from. Workaround is what to do with the release you run. Status says whether a later release changes the behaviour, and which test, if any, pins it.
Etemenanki
Section titled “Etemenanki”[log].level is not reloaded
Section titled “[log].level is not reloaded”Symptom. Changing [log].level and saving reloads the config without error (the edit changes nothing the supervisor runs, so the reload is logged as config reloaded: reused [...] and every connection is kept), and leaves the log verbosity where it was.
Cause. main in app/src/main.rs calls init_tracing once, before anything else. It reads [log].level (default info) unless RUST_LOG is set, builds an EnvFilter and installs the subscriber. No reload handle is kept, and the reload path does not touch tracing.
fn init_tracing(config_path: &Path)Workaround. Restart etemenanki-app to change the level, or set RUST_LOG in its environment, which takes precedence over the file.
Status. Open. katana does reload its level: apply_reload calls the LogReload setter that katana’s init_tracing returns.
VLESS and VMess outbounds send a UDP association to its first destination
Section titled “VLESS and VMess outbounds send a UDP association to its first destination”Symptom. A UDP association that talks to several peers through one vless outbound without a flow, or one vmess outbound, reaches only the first peer. Every later packet routed to that outbound goes to the first peer, whatever address it was meant for, and every reply is reported as coming from the first peer. This affects etemenanki-app, katana and the mobile library alike.
Cause. The plain VLESS and the VMess UDP requests name one target in the request header, and the client codecs carry no address per packet. For them seal_to ignores its to argument and open_from attributes every reply to the stored target. The supervisor’s UDP fan-out (FanOutLink in supervisor/src/topology/outbound/udp_fanout.rs) keeps one sub-link per outbound version, keyed by its OutboundId and capped at MAX_SUBS = 64, not one per destination, so the second peer shares the first peer’s sub-link.
pub type OpenedFrom = (Opened, Option<Destination>);
pub trait ProxyCoreEncodeDatagram: ProxyCoreEncodeHandshake { fn seal_to( &mut self, plain: &[u8], to: &Destination, out: &mut Staging<'_>, ) -> Result<Option<()>, Self::Error>;
fn open_from(&mut self, wire: &mut [u8]) -> Result<OpenedFrom, Self::Error>;}pub struct VlessDatagram { header: BytesMut, target: Destination, replied: bool, framing: Framing,}
enum Framing { /// `len(2, BE) | payload`, all to and from the header's target. Length, /// XUDP; `opened` once the `New` frame went out. Xudp { opened: bool },}VlessDatagram::new and with_flow(.., VlessFlow::None) build the Length framing, whose seal_to writes only the payload’s length before it, whatever to says, and whose open_from returns the stored target for every packet. VMessDatagram in protocols/src/vmess/codec.rs has the same shape: its seal_to takes _: &Destination, and its open_from returns Some(self.target.clone()) for every data frame.
Workaround. Route UDP that must reach several peers through an outbound that addresses each packet: trojan (TrojanDatagram::seal_to writes to into every packet), socks, wireguard, hysteria2, anytls (each UDP-over-TCP packet names its peer), sss (SssDatagram::seal_to writes to into every record), or a vless outbound with flow = "xtls-rprx-vision" over REALITY, whose UDP rides XUDP. Alternatively, split the peers across outbounds with route rules.
Status. Open for plain VLESS and VMess, which do not speak XUDP. datagram_codec_frames_to_the_fixed_target in protocols/tests/unit/vless/codec.rs pins the behaviour: a packet sealed toward another address is framed for the fixed target. Since etemenanki-protocols 6.2.0 and etemenanki-supervisor 1.0.1, a Vision VLESS outbound builds its datagram codec with VlessDatagram::with_flow, which carries the association as XUDP over a Mux command, as Xray’s client does: each packet is a mux.cool frame of session 0 naming its own peer, and each reply names the peer it came from (a_vision_datagram_codec_speaks_xudp; VLESS). katana 6.0.0 builds on protocols 7.1.1, but its VLESS outbounds carry no flow (lower_outbounds sets VlessFlow::None), so it is not changed. The fan-out is described in Outbounds, UDP fan-out and balancers.
Every reload replaced the whole generation
Section titled “Every reload replaced the whole generation”Symptom. With etemenanki-app 2.1.0 or earlier, saving the config file closed every open connection on every inbound, including inbounds whose settings did not change and saves that only touched a comment, and for a moment no inbound listened at all.
Cause. Those releases rebuilt the whole configuration as a new generation on every reload, cancelled the old one, which dropped every per-connection task, and bound the new generation only after the old listeners had given back their ports.
Workaround. On an older release, batch edits into one save and make them when a reconnect is acceptable.
Status. Fixed in etemenanki-app 2.1.1, which runs on etemenanki-supervisor. A reload lowers the config into a spec and applies it to the running supervisor: an unchanged inbound keeps its socket and its connections, a changed one gets a new handler for new connections, and what happens to connections the change does touch is decided by a policy (a removed user’s sessions are closed, flows on a replaced outbound stay on the old version, except a WireGuard outbound’s, which are closed). A TUN change or a Hysteria 2 obfuscation change would end live connections, so the app refuses it on reload and a restart applies it. an_open_connection_keeps_transferring_across_a_reload and a_reload_that_removes_a_user_closes_only_their_connections in app/tests/integration/e2e_reload.rs, a_reload_keeps_the_inbound_serving_on_its_udp_port in app/tests/integration/e2e_hysteria_inbound.rs, and the tests in supervisor/tests/hot_swap.rs pin it. etemenanki-app: run, reload and shutdown and Planning and applying a change describe the reload.
Mux carriers repeat downlink frames or scramble VMess uploads
Section titled “Mux carriers repeat downlink frames or scramble VMess uploads”Symptom. With an Xray client that enables mux, on etemenanki-protocols 2.0.0:
- Over VLESS or Trojan, when the client sends anything after receiving data on a mux connection, the server sends the most recent downlink frames a second time. A multiplexed TCP stream receives duplicated bytes and is corrupted; a UDP sub-flow over XUDP receives a duplicated packet.
- Over VMess, a large upload arrives scrambled: when a mux frame is split across two VMess chunks and a further chunk arrives in the same read, bytes of the completed frame are lost.
katana 3.0.0 nodes were affected too, because they served these cores from etemenanki-protocols 2.0.0.
Cause. Two defects in Demux, the mux.cool server in protocols/src/mux/demux.rs, in 2.0.0. The uplink call feed did not clear the frames the previous downlink call had left in out, so the carrier staged them again. And VMessCore fed the demultiplexer one opened chunk at a time with feed_whole, which trimmed the held buffer at the start of each call, so a second chunk in the same read removed bytes that a held forward from the first chunk still pointed at.
Workaround. Turn mux off on Xray clients that connect to a VLESS, Trojan or VMess inbound of an affected build, or upgrade.
Status. Fixed in etemenanki-protocols 2.0.1 and kept by every later release. Both uplink calls, feed and Demux::feed_chunks, clear out at the start of each call. feed_chunks replaces feed_whole: VMessCore passes it every chunk of one read in a single call, and it trims the held buffer once per read. a_downlink_frame_is_not_sent_again_by_the_next_uplink and vmess_keeps_every_frame_one_read_completes in protocols/tests/unit/mux/demux.rs pin the fix, and the Xray interop tests xudp_attributes_replies_to_the_right_peer and vmess_mux_payload_spans_both_framings in app/tests/integration/e2e_xray_mux.rs pass with it. The carrier design is described in mux.cool and XUDP.
A SOCKS UDP association hears whichever address sends first
Section titled “A SOCKS UDP association hears whichever address sends first”Symptom. With etemenanki-protocols 2.0.1 or earlier, UDP through a socks inbound goes silent when another host, or another socket on the client’s own host, sends a datagram to the association’s relay port before the client does. From then on the relay forwards that sender’s datagrams, sends every reply to it, and drops the client’s own datagrams until the association ends. katana served no SOCKS inbound before 4.9.0, and its SOCKS nodes relay TCP only, so it is not affected.
Cause. In 2.0.1 and earlier, SocksInbound::associate in protocols/src/socks/server.rs took the association’s client from the first datagram the relay received, of any kind, and never compared it with the control connection’s peer.
Workaround. On an older build, firewall UDP to the relay address so that only client addresses reach it, or set udp = false if the inbound’s clients do not need UDP.
Status. Fixed in etemenanki-protocols 2.0.2 and kept by every later release. associate builds an ExpectedSender from the control connection’s peer, the source the request names and the relay IP before it binds the relay socket. Every datagram must come from the control connection’s IP, the first datagram forwarded pins the port, and a Unix-socket request must name its exact source. A request the relay could never hear is refused with SOCKS5 reply 0x02. The udp_association_* and udp_link_* tests in protocols/tests/pipeline/socks.rs and the ExpectedSender tests in protocols/tests/unit/socks/server.rs pin it. SOCKS: the association’s client describes the rule in full.
A busy gRPC carrier is judged dead
Section titled “A busy gRPC carrier is judged dead”Symptom. With etemenanki-protocols 4.1.0 or earlier, a gRPC inbound connection on a slow or congested downlink was closed, with every stream on it, while its client was still sending and acknowledging data. katana nodes serving gRPC were affected until their lockfile moved to 4.1.1 (katana 4.1.7).
Cause. The carrier keepalive judged a peer dead once a PING went H2_KEEPALIVE_TIMEOUT (20 s) without its PONG. The PING queues behind every byte already on its way down, so on a slow downlink its answer came later than that although the peer was healthy.
Workaround. On an affected release, use another transport for clients on slow links, or upgrade.
Status. Fixed in etemenanki-protocols 4.1.1 and kept by every later release. Anything the peer sends now counts as a sign of life: the carrier’s I/O is wrapped in Heard, which stamps a shared ReadClock on every read that brings bytes, and Liveness in protocols/src/transports/grpc/liveness.rs judges the peer dead once nothing at all has been heard from it for H2_KEEPALIVE_TIMEOUT since the PING went out. a_peer_still_sending_is_kept_while_its_pong_waits_behind_a_slow_downlink and a_peer_that_goes_silent_is_dropped_once_a_ping_goes_unheard in protocols/tests/unit/transports/accept.rs pin it.
WireGuard tunnels wear down on a long-running device
Section titled “WireGuard tunnels wear down on a long-running device”Symptom. With etemenanki-protocols 4.1.1 or earlier, a WireGuard outbound that ran for a long time degraded in several ways:
- it accumulated tunnel TCP connections that nobody read or wrote any more, with their buffers and ports, and its driver used more CPU with each one;
- after its peer had been unreachable for a while, the tunnel stayed without a session for up to a minute after the peer came back, and an ICMP answer or a local drop on the peer socket stopped the driver, failing every flow on the outbound;
- one slow reader kept the driver running a full pass over every socket about every 2 ms;
- a UDP association whose destination name failed to resolve once dropped every later datagram to that name for as long as the association lived.
Cause. smoltcp bounds nothing by itself: no retry limit, no FIN_WAIT_2 timer, no timeout, so a tunnel socket was reaped only when it reached Closed. boringtun clears its sessions after 90 s of unanswered handshakes and starts a new one only for a packet to encapsulate, and the driver ended on any socket error outside five kinds. The driver re-polled a full downlink channel on a 2 ms timer and ran one pass per received datagram. The UDP association kept a failed lookup like a found one.
Workaround. On an affected release, restart the process when the outbound degrades, or edit the outbound so that a new version with a new device replaces it.
Status. Fixed in etemenanki-protocols 4.1.2 and kept by every later release; katana picks it up with 4.1.2 in its lockfile (every tagged release from 4.1.9). In protocols/src/wireguard/device.rs, every tunnel TCP connection gets the Lifetimes keep-alive (60 s) and timeout (180 s), a reader that leaves a sending remote resets it, and a connection whose application dropped both halves gets 60 s to close before it is aborted. While any connection is on the tunnel, an expired session starts a handshake every REKEY_RETRY (5 s) (Revival), and only NotConnected, BrokenPipe and InvalidInput stop the driver (is_fatal_socket_error). A full downlink channel is waited on through RoomWaits, and up to RECV_BATCH (64) datagrams join one pass. In protocols/src/wireguard/connector.rs, a failed lookup is kept for FAILED_LOOKUP_TTL (10 s) only. The tests in protocols/tests/unit/wireguard/device.rs and a_failed_lookup_is_retried_once_its_ttl_is_up in protocols/tests/unit/wireguard/connector.rs pin it. WireGuard describes the driver.
TLS clients on Windows and macOS trust no CA when OpenSSL is built in
Section titled “TLS clients on Windows and macOS trust no CA when OpenSSL is built in”Symptom. With etemenanki-protocols 6.2.0 or earlier, a Windows or macOS build with the vendored-openssl feature failed every TLS connection that verifies against the system roots: an outbound over TLS (the tls stream, or WebSocket or gRPC with TLS) without ca_file, and the tls and https DNS backends without ca_file. The handshake failed certificate verification even for a server whose certificate is valid. Hysteria 2 outbounds, which use rustls, were not affected.
Cause. OpenSSL built from source looks for CAs under its build-time OPENSSLDIR. On Windows that is a placeholder that is never a real path, and on macOS it is /usr/local/ssl, which the system does not have, so set_default_verify_paths() found no CA. Before 6.2.1, trust_system added the platform’s own roots on Android and iOS only.
Workaround. On an affected build, give each TLS outbound and DNS backend a ca_file with the CAs to trust.
Status. Fixed in etemenanki-protocols 6.2.1. On Windows and macOS, trust_system also adds the platform’s store, the Windows certificate store or the macOS keychains, read through rustls-native-certs (protocols/src/transports/tls/platform_roots.rs → native). every_native_root_converts checks the conversion on the host. katana runs on Linux, where nothing changed. Transports: TCP and TLS describes the trust store.
katana
Section titled “katana”Several katana entries are about hot reload. A saved config goes through apply_reload in src/runtime.rs, which checks every node the reload adds or changes before it touches any running node, then stops, spawns or updates nodes; each node applies its own changes through its supervisor. Runtime and config reload and The node manager describe both sides.
Any [[outbound]] or [dns] edit closes every connection on every node
Section titled “Any [[outbound]] or [dns] edit closes every connection on every node”Symptom. Adding, removing or changing any [[outbound]], even one no route uses, or changing [dns], closes every connection on every node. katana logs reload: outbound pool rebuilt. The nodes keep their listeners and keep accepting.
Cause. When [[outbound]] or [dns] changed, apply_reload sends the new process-wide settings to every node as StaticUpdate::Globals. NodeManager::apply_static in src/manager/node.rs stores them, marks the node for a rebuild and lowers and applies the node’s spec at once; with a rebuild pending, the node closes every connection after the apply (Supervisor::close(Selector::All)). A [dns] change also rebuilds every outbound but a blackhole in the supervisor, because every other outbound holds a resolver.
pub enum StaticUpdate { Config(Box<NodeConfig>), Globals(Arc<Globals>),}Workaround. Group outbound and DNS edits and make them when a reconnect is acceptable. Run katana --test -c <file> before saving: it checks each node against the new settings, and a reload whose check fails applies nothing.
Status. Open, by design: katana drops a node’s connections whenever what they were routed by may have changed. route_change_drops_connections in tests/unit/e2e.rs pins the drop for a route edit; no test drives the Globals path.
node_type = "hy2" is refused by Xboard
Section titled “node_type = "hy2" is refused by Xboard”Symptom. katana --test accepts node_type = "hy2", but at runtime every UniProxy request the node makes fails, and the node never comes up: its bootstrap retries, logging node <id>: node_info failed: …; retrying in <n>s, or user_list failed: … when [node.hysteria].port is set.
Cause. NodeType::parse in src/api/mod.rs accepts hysteria2, hysteria and hy2. newv2board::Client::new sends the configured node_type, lower-cased, as the node_type query parameter of every UniProxy request (only a V2ray-family node with enable_vless is sent as vless). Xboard validates that parameter against its own type list after mapping the aliases v2ray → vmess and hysteria2 → hysteria, and rejects hy2. --test never contacts the panel, so it cannot notice.
Workaround. Write node_type = "hysteria2" or "hysteria".
Status. Open. node_type_param_vless in tests/unit/api/newv2board.rs pins how the parameter is derived for the other node types.
No online-user or node-status reporting to newV2board
Section titled “No online-user or node-status reporting to newV2board”Symptom. A newV2board panel shows no online IPs per user, and no panel gets node status from katana. katana does not read the [node.api].device_limit key: the device limit it enforces is the one the panel sends with each user, or, on helium, once for all of them.
Cause. PanelClient in src/api/mod.rs has four panel operations: node_info, user_list, report and node_rule. report delivers a NodeReport: each user’s traffic and, for a panel that keeps them, the client addresses users connected from (NodeReport::ips). Only helium keeps them (PanelClient::keeps_client_ips), and katana collects them only on a helium node under [node.controller] enable_device_limit; the newV2board client sends the traffic alone. It calls only the UniProxy config, user and push endpoints; alive, alivelist and status are never called. No client sends node status.
Workaround. To hold users to their device limit, set [node.controller] enable_device_limit = true. katana then enforces the device limit itself: the device_limit newV2board sends with each user, or the one helium’s users answer sets for every user (lower_users in src/lower/mod.rs), and bans an IP whose authentications keep failing (an IPv6 client’s whole /64 counts as one IP). It counts each connection’s client address; on a WebSocket node with real_ip_header and real_ip_from, that is the client the header names on a connection from an address in real_ip_from.
Status. Open for newV2board: not implemented. katana 4.4.0 added the device limit under enable_device_limit, 4.5.0 the helium panel type, whose reports carry client addresses, and 4.7.0 real_ip_header and real_ip_from, so a WebSocket node behind a reverse proxy counts its clients rather than the proxy. a_users_clients_come_from_no_more_ips_than_their_device_limit and a_helium_node_without_enable_device_limit_reports_no_addresses in tests/unit/e2e.rs pin the device limit and the helium reports. Panel clients describes the reports.
A node whose bootstrap fails stays down
Section titled “A node whose bootstrap fails stays down”Symptom. With katana 3.0.0, one node never listens after a failure at startup (the panel unreachable for a few seconds, DNS not ready, a port still held by another process), while katana keeps serving its other nodes.
Cause. katana 3.0.0 made one bootstrap attempt per node and ended the node’s task on failure, and nothing restarted it.
Workaround. With katana 3.0.0, fix the cause, then restart katana.
Status. Fixed in katana 3.0.1 and kept in every later release. NodeManager::bootstrap retries a failed attempt until the node is up, waiting from 1 s, doubling after each failure up to 60 s and never longer than controller.update_periodic, and logs node <id>: <reason>; retrying in <n>s. A config edit saved during the wait cuts it short, and cancellation still stops the retries. a_node_comes_up_once_the_panel_answers, a_node_whose_port_is_taken_comes_up_once_it_is_free and a_node_that_never_bootstraps_still_stops in tests/unit/e2e.rs pin the retry.
Some [node.api] edits are not applied
Section titled “Some [node.api] edits are not applied”Symptom. With katana 3.0.0, editing api.node_type, api.enable_vless, api.vless_flow, api.speed_limit, api.rule_list_path or api.disable_custom_config logged reload: reconfigured node …, and the node kept behaving as before.
Cause. katana 3.0.0 built each node’s PanelClient once, and the client copies these fields at construction; a reload stored the new values without rebuilding the client.
Workaround. With katana 3.0.0, restart katana.
Status. Fixed in katana 3.0.1 and kept in every later release. On newV2board, an edit that changes the panel node type in the node’s identity respawns the node. Any other [node.api] edit, and an edit to the node’s enable_mtls, reaches the running node, and NodeManager::apply_static builds a new PanelClient from the edited config before it stores it, then runs one panel poll with the new client. a_newv2board_type_edit_respawns_the_node and a_client_edit_takes_effect_without_dropping_connections in tests/unit/runtime.rs, and a_reload_of_enable_mtls_alone_rebuilds_the_client in tests/unit/manager/node.rs, pin this.
A [dns]-only edit is not applied
Section titled “A [dns]-only edit is not applied”Symptom. With katana 3.x, an edit that changes only [dns] logged no reload: line, and the outbounds kept resolving through the old resolver.
Cause. katana 3.x rebuilt the shared resolver only when [[outbound]] changed.
Workaround. With katana 3.x, restart katana, or save the [dns] change together with an [[outbound]] edit.
Status. Fixed in katana 4.0.0: apply_reload treats a change to [[outbound]] or [dns] alike and sends both to every node as StaticUpdate::Globals (see the entry above).
Renewed certificates are not picked up
Section titled “Renewed certificates are not picked up”Symptom. With katana 3.x, after a certificate renewal that kept the same file paths, a node kept serving the old certificate until katana restarted.
Cause. katana 3.x read cert_file and key_file only when it built a listener.
Workaround. With katana 3.x, restart katana after each renewal, for example from your ACME client’s deploy hook.
Status. Fixed in katana 4.0.0. The node lowers its spec at every panel poll, and lowering reads the certificate and key (read_cert_key in src/lower/inbound.rs), so a renewed certificate reaches the running listener at the next poll as a handler swap, without closing connections.
Audit rules see only the requested address
Section titled “Audit rules see only the requested address”Symptom. With katana 3.x, a domain audit rule did not match a connection that the client opened to an IP address, even when its TLS server name or HTTP Host named that domain.
Cause. katana 3.x matched the audit rules against the requested address only, while routing also used the sniffed name.
Workaround. With katana 3.x, block the domain with a routing rule to the block outbound.
Status. Fixed in katana 4.0.0. The panel’s audit rules become the first routes of a node, each sending the domains its patterns match to a blackhole outbound of its own (audit_routes in src/rule.rs), and domain matchers try the sniffed name as well as the requested one. audit_rules_route_first_to_one_blackhole_per_rule_id in tests/unit/lower/spec.rs pins the routes, and a_client_edit_takes_effect_without_dropping_connections in tests/unit/runtime.rs a rule that blocks new flows to the domain it names. How the rules match is described in Destination audit.
A large user list stalls every connection at each poll
Section titled “A large user list stalls every connection at each poll”Symptom. With katana 4.1.5 or earlier, a node with a very large user list froze the whole process at every panel poll, 304 Not Modified answers included: new TLS handshakes, live carriers and keepalive pings on every node waited until the poll’s user work finished, and clients timed out meanwhile.
Cause. The work that grows with the user count ran on a tokio runtime worker, and a worker busy with it can leave the I/O driver unpolled, which stalls every connection in the process, not just the node’s. In katana, every poll lowered the whole user list there, and the check for shared credentials compared each user with every one before it. In etemenanki-supervisor 0.4.1 and earlier, an apply’s per-user work ran there too.
Workaround. On an affected release, raise controller.update_periodic so that polls are rarer.
Status. Fixed in katana 4.1.6, which also moved to etemenanki-protocols 4.1.0 and etemenanki-supervisor 0.4.2. katana lowers, compares and drops specs on the blocking pool (NodeManager::lower_off_runtime, through off_runtime and drop_off_runtime in src/blocking.rs), and finds shared credentials with a hash map. The supervisor does an apply’s per-user work on the blocking pool (supervisor/src/system/blocking.rs) and commits with pointer swaps, and the VMess core prepares a user set off the hot path and installs it with one swap (AccountValidator::prepare_users and install in protocols/src/vmess/accounts.rs). lowering_a_large_list_is_not_quadratic in tests/unit/lower/spec.rs, lowering_leaves_the_runtime_worker_free in tests/unit/manager/node.rs, and the supervisor’s changing_a_large_user_set_leaves_the_runtime_worker_free in supervisor/tests/hot_swap.rs pin it.
A panel port outside 1 to 65535 is served as another port
Section titled “A panel port outside 1 to 65535 is served as another port”Symptom. With katana 6.0.0, a newV2board node whose panel sends a server_port above 65535 or below 0 listens on another port: 70000 is served on 4464, and -1 on 65535. One that comes out as 0, such as 65536, never comes up and logs node <id>: panel returned port 0; retrying in <n>s.
Cause. The UniProxy parser in src/api/newv2board.rs read server_port as an i64, refused only 0, and kept the low 16 bits of anything else (as u16).
Workaround. With katana 6.0.0, give the node a port from 1 to 65535 in the panel.
Status. Fixed in katana 6.1.0. parse_node_config refuses a server_port that is not a port, server_port <n> is not a port (1 to 65535), so a node logs node <id>: node_info failed: parse UniProxy config response: server_port 70000 is not a port (1 to 65535); retrying in <n>s while it comes up, and node <id>: node_info: parse UniProxy config response: … at a poll, keeping the node it serves. A helium node’s port is a non-zero u16 in the contract, so an answer with another number does not parse. a_port_outside_one_to_65535_is_refused in tests/unit/api/newv2board.rs pins it.
A refused UniProxy node config logs no reason
Section titled “A refused UniProxy node config logs no reason”Symptom. With katana 6.0.0, a newV2board node whose panel answer katana refuses as it reads it, for a server_port of 0 or a Shadowsocks obfs other than plain or none, for example, logs node <id>: node_info failed: parse UniProxy config response; retrying in <n>s while it comes up, or node <id>: node_info: parse UniProxy config response at a poll, and nothing says what is wrong.
Cause. The newV2board client put the reason beneath the context parse UniProxy config response, and the node manager logs a panel error’s outermost message alone, because the causes beneath it may carry the request URL, and its query the panel key.
Workaround. With katana 6.0.0, compare the panel’s node with what katana serves (Xboard and V2board (UniProxy)).
Status. Fixed in katana 6.1.0. Client::node_info in src/api/newv2board.rs writes the reason into the message itself, parse UniProxy config response: <reason>, and every refusal of what a UniProxy answer asks for is made there, by name, the ones 6.0.0 made in lowering included: node 1: node_info failed: parse UniProxy config response: node requests kernel-unsupported feature: tcp header type "http"; retrying in 1s. A value of the wrong type in the body is named by its place alone, a value of the wrong type at line <l>, column <c>, and never quoted. shadowsocks_ciphers_and_keys and a_malformed_body_is_refused_without_quoting_it in tests/unit/api/newv2board.rs pin the messages.