Skip to content

Error messages

This page lists the errors you meet while writing a configuration for etemenanki-app or katana: what each message says, what caused it and what to change. It is grouped by the part of the file that fails, so you can search the page for the text your terminal shows.

Every message on this page is the text the two programs print, captured by running --test on small broken files. Where a message can only appear at start or during a reload, the page says so. In the messages, <tag> stands for an inbound, outbound or balancer tag, <value> for the value you wrote, <path> for a file path, <error> for the text of an underlying error, <id> for a katana node’s api.node_id, <name> for the node name katana’s reload lines use (<panel>@<host>#<id>[/<type>], see katana reload failures) and <N> for a number of seconds. … marks text left out. Everything else is printed exactly as shown.

Both programs build the whole configuration before they open a socket, and they stop at the first error. Fix it, run --test again, and repeat until the file passes. The order of the checks is on Command line.

The message itself is the same wherever it appears. Only the prefix in front of it changes.

Situation etemenanki-app prefix katana prefix
--test configuration invalid: configuration error: , and node <id>: in front of anything a node checks
Start failed to start: failed to load config: (read or parse); node <id>: (a node that does not pass its checks, which is then skipped)
Node bring-up (katana only) node <id>: initial start failed: <error>; retrying in <N>s, and the same form for the other retry reasons, such as node <id>: node_info failed: parse UniProxy config response: <error>; retrying in <N>s for a panel answer katana refuses (see Retries while a node comes up)
Poll of a running node (katana only) node <id>: node_info: parse UniProxy config response: <error> for a panel answer katana refuses, node <id>: cannot build the node, keeping the running one: <error> for one it reads but cannot build
Reload reload: <error>; keeping the running config, reload: cannot read <path>: <error>, reload refused, keeping the running config: … config reload failed, keeping current: , reload: node <name>: <error>; keeping current config

katana also puts config parse error: in front of every TOML error and config not utf-8: in front of an encoding error, wherever they appear, so at start you read failed to load config: config parse error: ….

A TOML error starts with the position of the problem:

$ etemenanki-app --test -c config.toml
2026-09-25T03:57:12.004118Z ERROR etemenanki_app: configuration invalid: TOML parse error at line 8, column 1

Go to that line and column. TOML syntax and unknown keys lists the usual causes.

Most other messages name the inbound, outbound, balancer, user or node they are about. Routing errors quote the value or tag, but not the rule, so search the file for the value they quote. A message that starts with building <what> failed: comes from the last stage, where the configuration is built as a start would build it.

The whole file is parsed before anything is built. Every table rejects keys it does not know, so a typo stops the proxy instead of being ignored.

Message Meaning Fix
TOML parse error at line <n>, column <m> The file is not valid TOML at that position, or the key there is misspelled, sits in a table that has no such key, is required and missing (tag or protocol in [[inbound]] and [[outbound]], outbound in [[route.rule]], tag or outbounds in [[balancer]]), appears twice, or has a value of the wrong type, such as port = "1080", port = 70000 or sniffing = "true". Go to the line and column. Check the spelling of the key, which table it sits under, and the type of its value.
invalid utf-8 sequence of <n> bytes from index <i> The file is not UTF-8, for example it was saved as UTF-16 or with a legacy code page. Save the file as UTF-8.
No such file or directory (os error 2), Is a directory (os error 21) The path given to -c does not exist or is a directory. Pass the right path. A relative path is resolved against the working directory.
config defines no outbounds The file has no [[outbound]], no subscribe file and no route that names direct or blackhole. An empty file fails this way. Add at least one outbound. The first one is the default route.

The [inbound.settings] and [outbound.settings] tables are checked after the file has been parsed, when the protocol is known. Their errors therefore carry the tag instead of a line number.

Message Meaning Fix
inbound <tag>: invalid settings: unknown field `<key>`, expected one of … The settings table has a key this protocol does not accept. The list shows the accepted keys. Correct or remove the key. The protocol pages list every key.
inbound <tag>: invalid settings: missing field `<key>` A required setting is missing, for example password for a Trojan user or user for a SOCKS account. Add the key.
inbound <tag>: invalid settings: invalid type: … A setting has the wrong type. Use the type the protocol page gives.
outbound <tag>: invalid settings: … The same three errors for an outbound. As above.

These come from [dns]. katana prints the same messages for its own [dns] table, after node <id>: .

Message Meaning Fix
dns: unknown backend "<value>" (expected "system", "udp", "tls" or "https") backend is not one of the four names. "doh" and "dot" are not accepted. Use "https" for DNS over HTTPS and "tls" for DNS over TLS.
dns: the udp backend needs a server address (also tls, https) Every backend except system needs server. Add server = "<ip>:<port>".
dns: invalid server address: invalid socket address syntax server is not an IP address with a port. A host name or a bare IP is refused. Write it as "192.0.2.53:53" or "[2001:db8::53]:853".
dns: the tls backend needs a server name to verify against backend = "tls" without server_name. Add the name on the resolver’s certificate.
dns: the https backend needs the resolver's url backend = "https" without url. Add url, for example "https://dns.example.com/dns-query".
dns: "…" is not an https:// url The url does not start with https://. Use the https:// form.
dns: "…" has no usable host The url has no host, or has a user name (user@) before it. Remove the user part and keep the host.
dns: cannot read ca_file "<path>": <error> ca_file cannot be read, for example No such file or directory (os error 2). Fix the path or the permissions.
building dns failed: no certificate in CA PEM bundle ca_file has no PEM certificate in it. Point it at a PEM file with at least one BEGIN CERTIFICATE block.

These come from [inbound.stream] and [outbound.stream] and their tls, ws, grpc and reality subtables. The prefix is inbound <tag>: or outbound <tag>: ; the rules checked last, which tie a transport to a protocol, print outbound <tag>@v0: on an outbound.

Message after the prefix Meaning Fix
security = "tls" is not valid with network = "tcp"; use network = "tls" for TLS over plain TCP (security = "tls" layers TLS under network = "ws" or "grpc") The Xray spelling of TLS over TCP. Here TLS over TCP is its own network. Replace both keys with network = "tls".
unknown stream security "<value>" (expected "tls" or "none") security is not "tls", "none" or "reality". The value is case-sensitive, and "xtls" is not supported. Write "tls" or "none", in lower case, or "reality" on VLESS.
security = "reality" needs network = "tcp" REALITY under tls, ws or grpc. REALITY runs directly on TCP. Write network = "tcp", or leave network out.
reality is for vless only security = "reality" on a protocol other than VLESS, on either side. Use TLS, or serve VLESS.
reality needs reality.private_key (also server_names, short_ids, dest (host:port) on an inbound, public_key on an outbound), reality.<key>: … A REALITY setting is missing or does not decode. See REALITY.
vless vision (xtls-rprx-vision) rides only over reality A VLESS inbound or outbound has flow = "xtls-rprx-vision" without security = "reality". Use REALITY, or remove flow.
anytls runs over tls only; its shape must be tls An AnyTLS inbound or outbound without network = "tls", or an AnyTLS inbound on a Unix socket. Write network = "tls", and listen on an IP address.
socks serves udp associate over plain tcp only; turn udp off to wrap it in a transport A SOCKS inbound inside TLS, WebSocket or gRPC with udp on, the default. Set udp = false.
unknown stream network "<value>" network is not tcp, tls, ws or grpc. "h2", "http", "quic" and "kcp" are not supported. Choose one of the four networks.
grpc stream needs grpc.service_name network = "grpc" without [….stream.grpc] service_name. Add the service name. It must match on both ends.
protocol <name> does not support stream network "<value>" The protocol takes no transport: the Hysteria 2 and TUN inbounds, and the freedom, blackhole, wireguard and hysteria2 outbounds. Remove the [….stream] table.
protocol <name> does not support stream security "<value>" The same, for security. Remove the [….stream] table.
tls stream needs tls.cert_file An inbound uses TLS (network = "tls", or security = "tls" under ws or grpc) without a certificate. Add cert_file under [inbound.stream.tls].
tls stream needs tls.key_file The same for the private key. Add key_file.
tls stream needs tls.server_name or server (also ws+tls and grpc+tls) An outbound using TLS has neither server_name nor server to verify the certificate against. Set server, or server_name under [outbound.stream.tls].
ws stream needs ws.host or server A WebSocket outbound has no host for the Host header. Set server, tls.server_name or ws.host.
grpc stream needs grpc.authority or server A gRPC outbound has no authority. Set server, tls.server_name or grpc.authority.
tls.allow_insecure and tls.ca_file cannot both be set The two keys contradict each other. Keep ca_file to trust a private CA, or allow_insecure to skip verification, not both.
cannot read tls.cert_file "<path>": <error> (or tls.key_file) The file cannot be read, for example No such file or directory (os error 2) or Permission denied (os error 13). Fix the path, or give the service user read access. Relative paths are resolved against the working directory.

Files that can be read but do not hold what they should fail when the configuration is built:

Message Meaning Fix
building inbound <tag> failed: no certificate in PEM bundle cert_file holds no PEM certificate. Point it at the certificate chain, leaf first.
building outbound <tag>@v<n> failed: no certificate in CA PEM bundle An outbound’s ca_file holds no PEM certificate. Point it at the CA certificate.
building inbound <tag> failed: error:1E08010C:DECODER routines:…:No supported data to decode. Input type: PEM key_file holds no PEM private key. The exact OpenSSL text varies with the OpenSSL version. Point it at the unencrypted PEM private key.
building inbound <tag> failed: error:0A0000BE:SSL routines:SSL_CTX_check_private_key:no private key assigned:… The private key does not belong to the certificate. Use the key that was generated with this certificate.

The prefix is inbound <tag>: .

Message after the prefix Meaning Fix
port is required An inbound listening on an IP address has no port. Add port.
a unix socket listen has no port; remove port listen starts with /, which makes it a Unix socket path, and port is also set. Remove port.
abstract unix sockets are not supported; use a filesystem path listen starts with @. Use a filesystem path such as /run/etemenanki/http.sock.
hysteria2 listens on UDP and cannot use a unix socket A Hysteria 2 inbound has a path in listen. Give an IP address and a port.
unix sockets are not served on windows listen is a path on Windows, which has no Unix sockets. Listen on a loopback address and a port.
socks over a unix socket has no local IP for UDP associate; set udp_bind or turn udp off A SOCKS inbound on a Unix socket still has UDP on, which is the default. Set udp = false, or set udp_bind to an IP address of this host in the family of the addresses clients send datagrams from, such as 127.0.0.1 for local IPv4 clients. Each client’s UDP ASSOCIATE must then name the exact address and port its datagrams come from. See Listening on a Unix socket.
protocol <name> over a unix socket does not support stream network "<value>" A Unix-socket inbound has a [inbound.stream] table. A Unix socket carries no transport. Remove the [inbound.stream] table.
<address> is bound by another inbound Two inbounds have the same listen and port. A hysteria2 inbound binds UDP, so it may share a port number with a TCP inbound. Change one of them.
tun owns a network interface and has no listener; remove listen/port A TUN inbound has listen or port. Remove both.
tun mtu must be at least 1280 The TUN mtu is below the IPv6 minimum. Use 1280 or more.
bad tun address "<value>": <error> An entry in address is not an IP address, with or without a prefix length. Write it as "198.18.0.1/15" or "198.18.0.1".
bad tun route "<value>": host part of address was not zero A route has host bits set, for example "198.18.0.1/15". Write the network address: "198.18.0.0/15".

--test does not bind anything, so these appear only at start, after failed to start: , or on a reload, where the whole reload is refused:

Message Meaning Fix
inbound <tag>: binding <bind> failed: Address already in use (os error 98) Another program holds the port. Free the port or change it.
inbound <tag>: binding <bind> failed: Permission denied (os error 13) A port below 1024 without the right privilege. Grant CAP_NET_BIND_SERVICE, or use a higher port.
inbound <tag>: binding <bind> failed: Cannot assign requested address (os error 99) listen is not an address of this host. Use an address the host has, or 0.0.0.0.
inbound <tag>: binding unix:<path> failed: <path> exists and is not a socket The Unix socket path is taken by a regular file or a directory. Remove the file or choose another path.
inbound <tag>: binding tun <name> failed: Operation not permitted (os error 1) Creating a TUN device needs CAP_NET_ADMIN. tun auto takes the place of tun <name> when name is not set. Run with CAP_NET_ADMIN. See TUN.

<bind> is <host>:<port> for TCP, udp <host>:<port> for Hysteria 2, unix:<path> for a Unix socket and tun <name> for TUN.

A SOCKS inbound that passes --test can still refuse a UDP ASSOCIATE when a client asks for one. The inbound then answers with SOCKS5 reply 0x02 (connection not allowed by ruleset), closes the control connection and logs the reason at debug level. In these lines <source> is Some(<ip>), the client’s address, over TCP and None over a Unix socket.

Log line Meaning Fix
socks connection from <source> ended: socks: UDP associate from an address family the relay is not bound in The relay could never hear the client, so the inbound refuses the association instead of letting it go quiet. An IPv4 udp_bind, or an IPv4-mapped IPv6 one such as ::ffff:192.0.2.10, hears only IPv4 clients, :: hears both, and any other IPv6 udp_bind hears only IPv6 clients. For example, udp_bind = "127.0.0.1" and a client that connects over ::1. Over a Unix socket the family is that of the address the client’s request names. Set udp_bind in the family your clients connect over, or run one inbound per family.
socks connection from None ended: socks: UDP associate over a unix socket must name its source address and port A client on a Unix socket sent a UDP ASSOCIATE that names a zero address, a zero port or a domain name. Over TCP the inbound holds the association to the control connection’s address, but a Unix socket has no such address, so the request is all it has to go on. RFC 1928 lets a client send zeros when it does not know its address, and many clients do, including etemenanki-app’s own SOCKS outbound. Have the client name the exact address and port it will send datagrams from, or set udp = false. See UDP ASSOCIATE.
Message Meaning Fix
inbound <tag>: unknown protocol "<value>" Not an inbound protocol. The inbound protocols are socks, http, trojan, vless, vmess, shadowsocks, anytls, sss, hysteria2 (also hysteria, hy2) and tun. Correct the name. Names are lower case.
outbound <tag>: unknown protocol "<value>" Not an outbound protocol. The outbound protocols are freedom (also direct), blackhole (also block), socks, http, trojan, vless, vmess, shadowsocks, anytls, sss, hysteria2 (also hysteria, hy2) and wireguard. Correct the name.
inbound <tag>: wireguard cannot be used as an inbound (no server implementation) WireGuard is outbound-only. Use WireGuard as an [[outbound]] only.
outbound <tag>: missing server A proxy outbound has no server. Add the upstream host name or IP address.
outbound <tag>: invalid host "<host>": brackets hold only an IPv6 literal server, or a WireGuard endpoint, has brackets around something that is not an IPv6 address, or a stray bracket. Write an IPv6 address with or without brackets, and a name or IPv4 address without.
outbound <tag>: missing port A proxy outbound has no port. Add the upstream port.
inbound <tag>: unknown socks auth "<value>" auth is not "none" or "password". Use one of the two.
inbound <tag>: users[<n>]: invalid uuid "…": <error> A VLESS, VMess or sss user id is not a UUID. Use the 36-character form, for example 11111111-2222-3333-4444-555555555555.
inbound <tag>: unknown vless flow "<value>" (also outbound) A VLESS flow other than xtls-rprx-vision. Use xtls-rprx-vision, or leave flow out.
outbound <tag>@v0: anytls password must not be empty An AnyTLS outbound with password = "". Set the password the server gave you.
outbound <tag>: invalid uuid "…": <error> The same for an outbound id. As above.
outbound <tag>: unknown vmess security "<value>" A VMess outbound security is not auto, aes-128-gcm or chacha20-poly1305 (any case). The value is shown in lower case. Use one of the three, or leave it out for aes-128-gcm.
inbound <tag>: unknown shadowsocks method "<value>" (also outbound) Not a supported method: aes-128-gcm, aes-256-gcm, chacha20-poly1305 (also chacha20-ietf-poly1305), xchacha20-poly1305 (also xchacha20-ietf-poly1305), in any case, or a 2022- method. Stream ciphers such as rc4-md5 are not supported. Use a supported AEAD method.
inbound <tag>: unknown shadowsocks-2022 method "<value>" (also outbound) A method that starts with 2022- but is not 2022-blake3-aes-128-gcm, 2022-blake3-aes-256-gcm or 2022-blake3-chacha20-poly1305. Correct the name. These three are case-sensitive.
inbound <tag>: decode PSK: <error> (also outbound) A Shadowsocks 2022 password is not standard base64. Use a base64 key, for example from openssl rand -base64 32.
inbound <tag>: shadowsocks-2022: PSK too short (<n> < <len>) (also outbound) The decoded key has fewer bytes than the method needs: 16 for 2022-blake3-aes-128-gcm, 32 for the other two. Generate a key of the right length: openssl rand -base64 16 or openssl rand -base64 32.
outbound <tag>: invalid address_family "<value>" Not auto, ipv4_only, ipv6_only, prefer_ipv4 or prefer_ipv6. The spellings ipv4, v4, 4 and their IPv6 counterparts are also accepted, in any case and with - in place of _. Use one of those values.

Trojan, VLESS, VMess, Shadowsocks, AnyTLS and sss users are named by their email, and Hysteria 2 users by user. The prefix is inbound <tag>: .

Message after the prefix Meaning Fix
users[<n>] has no email; a user of this inbound is named by its email A user of a Trojan, VLESS, VMess, Shadowsocks, AnyTLS or sss inbound has no email. Give every user an email.
users[<a>] and users[<b>] are both named "<name>" Two users have the same email. Give each user a unique name.
users <a> and <b> present the same credential Two users have the same UUID or password, so the inbound could not tell them apart. Give each user their own credential.
users <a> and <b> present the same username Two Hysteria 2 users have the same user once case is ignored. Give them distinct names.
user <name>: a hysteria2 account needs a name without ':' and a password A Hysteria 2 user contains :, which separates name and password on the wire. Choose a name without a colon.
Message Meaning Fix
duplicate outbound tag <tag> Two [[outbound]] sections share a tag. Rename one.
duplicate inbound tag <tag> Two [[inbound]] sections share a tag. Rename one.
duplicate balancer tag <tag> A balancer uses a tag that an outbound, or another balancer, already has. Give the balancer its own tag.
balancer <tag> references unknown outbound <member> A name in outbounds is not an outbound tag. A balancer cannot contain another balancer. Correct the member tag.
balancer <tag>: outbound <member> has no upstream a TCP health probe can reach The health probe is a TCP connect to the member’s upstream. freedom, blackhole and wireguard members have none, and a hysteria2 member listens on UDP only. Balance only proxy outbounds with a TCP upstream.
balancer <tag>: unknown balancer strategy "<value>" (expected "failover" or "round_robin") strategy has another value. Use "failover" (the default) or "round_robin".
balancer <tag> has no members outbounds = []. List at least one member.

Balancers explains the probe and the strategies.

Routing errors do not name the rule. Search the file for the value they quote. An inbound_tag that names no inbound is not an error: that rule never matches.

Message Meaning Fix
route references unknown outbound <tag> A rule’s outbound, or [route].default, names no outbound or balancer. direct and blackhole are created when a route names them and no outbound has the tag, so they never fail this way. Correct the tag.
invalid cidr "<value>": host part of address was not zero A cidr or source_cidr entry has host bits set, such as "192.0.2.1/24". Write the network address: "192.0.2.0/24", or "192.0.2.1/32" for one address.
invalid cidr "<value>": invalid length for network: … The prefix length is too long, such as /33 for IPv4. Use /0 to /32 for IPv4 and /0 to /128 for IPv6.
invalid cidr "<value>": couldn't parse address in network: invalid IP address syntax The entry is not an address at all, for example a host name. Use an IP network. Match names with the domain matchers.
invalid rule network "<value>" (expected "tcp" or "udp") network is a list or another word, such as "tcp,udp". Use "tcp" or "udp", or leave network out to match both.
invalid port spec: "<value>" A port entry is not a number or a low-high range. Comma lists such as "80,443" and names such as "https" are refused. Write one entry per port or range: port = ["80", "443", "8000-9000"]. A number written without quotes, port = [443], is a TOML error instead.
invalid port spec: "<value>" has a lower bound above its upper bound A range such as "443-80". Put the lower bound first.
invalid domain regex "<value>": regex parse error: A domain_regex entry does not compile. Fix the pattern, or use domain_suffix or domain_full.
building route failed: a geosite matcher is used but no geosite file is configured A rule uses geosite and [route].geosite is not set. Set [route].geosite to the path of geosite.dat.
building route failed: a geoip matcher is used but no geoip file is configured The same for geoip. Set [route].geoip.
building route failed: No such file or directory (os error 2) A geodata file does not exist at that path. Fix the path. The file is only read when a rule uses it.
building route failed: geosite code not found: <code> The list name is not in geosite.dat. The prefix geosite: from Xray is not stripped, so "geosite:cn" fails this way. Write the bare name, for example "cn". The comparison ignores case.
building route failed: geoip code not found: <code> The same for geoip.dat, including a geoip: prefix. Write the bare code, for example "cn" or "!cn".
building route failed: geosite decode: failed to decode Protobuf message: <error> The geosite file is not a geosite .dat: truncated, an HTML error page from a failed download, or the geoip file. Download the file again and check that the two paths are not swapped.
building route failed: geoip decode: failed to decode Protobuf message: <error> The same for the geoip file. As above.
building route failed: geoip cidr: bad ipv4 length (or ipv6) The geoip file decodes, but a network in the list a rule uses is malformed. Replace the geoip file.

The prefix is outbound <tag>: , or outbound <tag>@v0: where the table shows it.

Message after the prefix Meaning Fix
invalid wireguard private_key The key is not the base64 or hex form of 32 bytes. Paste the key from wg genkey, or from the PrivateKey line of a wg-quick file.
invalid wireguard peer_public_key The same for the peer’s public key. Use the PublicKey from the peer’s [Peer] section.
invalid wireguard preshared_key The same for the preshared key. Use the PresharedKey value, or remove the key.
wireguard endpoint must be host:port endpoint has no :, or a bracketed IPv6 address has no :port. Write "198.51.100.1:51820", or "[2001:db8::1]:51820" for an IPv6 address.
invalid wireguard endpoint port The part after the last : is not a port number. Correct the port.
invalid settings: missing field `address` address is required. Add the tunnel address, for example address = ["10.0.0.2"].
invalid settings: invalid IP address syntax An address entry has a prefix length, such as "10.0.0.2/32". This key takes plain addresses. Remove the /32 or /128.
invalid settings: invalid length <n>, expected an array of length 3 reserved does not have three numbers. Write three bytes, for example reserved = [0, 0, 0], or remove the key.
invalid endpoint_address_family "<value>" Not one of the address_family values. Use auto, ipv4_only, ipv6_only, prefer_ipv4 or prefer_ipv6.
wireguard address_family ipv6_only needs an IPv6 address (or ipv4_only … IPv4), after outbound <tag>@v0: address_family allows one family, and address has no address of that family. Add an address of that family, or change address_family.

WireGuard maps each key to its wg-quick field.

Message Meaning Fix
inbound <tag>: hysteria2 needs both cert_file and key_file One or both are missing from [inbound.settings]. Hysteria 2 always uses TLS. Set both.
inbound <tag>: cannot read cert_file "<path>": <error> (or key_file) The file cannot be read. Fix the path or the permissions.
building inbound <tag> failed: hysteria2: the certificate file contains no certificates cert_file holds no PEM certificate. Point it at the certificate chain.
building inbound <tag> failed: hysteria2: the key file contains no private key key_file holds no PEM private key. Point it at the private key.
building inbound <tag> failed: hysteria2: could not read the certificate: <error> The PEM in cert_file is damaged. Replace the file.
building inbound <tag> failed: hysteria2: could not read the private key: <error> The PEM in key_file is damaged. Replace the file.
building inbound <tag> failed: hysteria2: certificate and key do not match: <error> The key does not belong to the certificate. Use the matching key.
inbound <tag>: a shared password and a user set cannot both be set; a credential would have two answers Both authentication modes are configured. Keep password for one shared password, or users for one entry per user.
inbound <tag>: hysteria2 needs a shared password or a user set Neither is set. Set one.
inbound <tag>: the shared password must not be empty password = "". Set a password.
inbound <tag>: hysteria2: 233 is the authentication success status and cannot be used for the masquerade masquerade.status = 233. Use another status, such as the default 404.
inbound <tag>: hysteria2: <n> is not an HTTP status code masquerade.status is outside 100 to 999. Use a real status code.
inbound <tag>: obfs_password is set but obfs is not; did you mean obfs = "salamander"? obfs_password without obfs. Add obfs = "salamander", or remove obfs_password.
inbound <tag>: salamander obfs key must be at least 4 bytes obfs = "salamander" with a short or missing obfs_password. Use a longer password.
inbound <tag>: unknown obfs "<value>" (expected "salamander") obfs has another value. It is case-sensitive. Write "salamander".
inbound <tag>: udp_idle_timeout must be between 2 and 600 seconds The value is out of range. Use 2 to 600, or leave it out for 60.
inbound <tag>: udp_idle_timeout is set but udp is not enabled udp_idle_timeout without udp = true. Set udp = true, or remove the timeout.
inbound <tag>: max_connections and max_circuits must be at least 1 One of the limits is 0. Use a positive number, or leave it out for the default.
inbound <tag>: bandwidth.up: a bandwidth is a number and a unit, such as "100 mbps" (or bandwidth.down) A rate written as a bare number. Add a unit, such as "100 mbps".
inbound <tag>: bandwidth.up: unknown bandwidth unit "<value>"; use bps, kbps, mbps, gbps or tbps A rate with an unknown unit. Use one of the units listed.
inbound <tag>: unknown congestion "<value>" (expected "cubic", "bbr" or "reno") congestion is misspelled or not in lower case. Use one of the three.
inbound <tag>: quic.keep_alive_period is a client setting; a server does not ping keep_alive_period in [inbound.settings.quic]. Remove it.
inbound <tag>: quic.init_conn_receive_window is above quic.max_conn_receive_window (or stream) The initial window is larger than the maximum. Lower the init_ value, or drop it.
inbound <tag>: stream_receive_window must be at least 16384 bytes (or conn_receive_window) A receive window below 16384 bytes. Use 16384 or more.
inbound <tag>: max_idle_timeout must be a whole number of seconds between 4 and 120 quic.max_idle_timeout is out of range. Use 4 to 120.
inbound <tag>: max_incoming_streams must be at least 1 quic.max_incoming_streams = 0. Use a positive number, or leave it out for 65536.

The user messages are under Users.

Hysteria 2 documents every key.

The subscribe file’s own errors start with subscribe: , except the two about finding the file. The [api] section’s start with [api] .

Message Meaning Fix
[subscribe] needs a path naming the subscribe file [subscribe] has no path. Add the path of the provider’s file.
subscribe file <path>: <error> The subscribe file cannot be read, for example No such file or directory (os error 2). Save the file at that path, or fix the path.
subscribe: TOML parse error at line <n>, column <m> The subscribe file does not parse. A node whose protocol or stream network this version does not know fails here, with unknown variant. Ask the provider for a valid file, or fix the line.
subscribe: node "<name>": its protocol is not supported by this version (also its stream, its vmess security, its shadowsocks method) A node of a kind this etemenanki-app cannot turn into an outbound. See Format revisions. Ask the provider for a file of the revision your client reads.
subscribe: [subscribe.routes] names "<key>", which is not a route group in <file> A pick names a group the file does not have, often after the provider renamed it. Rename or remove the pick.
subscribe: [subscribe.routes] "<key>" = "<tag>": no node, outbound or balancer has that name A pick names nothing: a node that was renamed or removed, or a typo. Pick a name that exists.
[api] secret is empty secret = "". Set a long random secret, or remove the key.
[api] listen <address>: an API reachable from other hosts needs a secret; listen on a loopback address or a unix socket, or set one The API listens beyond loopback without a secret. Listen on 127.0.0.1 or a Unix socket, or set secret.
failed to start: API on <listen>: <error> At start, the API address could not be bound. The process exits. Free the address or choose another.
API on <listen>: <error>; it stays off until [api] changes On a reload, the new API address could not be bound. The proxy keeps running. Free the address, or change [api].

Subscribe files lists every error of the file format, and REST API the answers the API gives.

When a file changes, etemenanki-app checks and builds the new configuration before it touches the running one. These lines come from the etemenanki_app::instance log target, except the watcher lines, which come from etemenanki_app.

Log line What happened What to do
reload: cannot read <path>: <error> A file could not be read. The running configuration stays. Fix the file’s path or permissions.
reload: <error>; keeping the running config The new files do not parse or do not build, or a new listener cannot bind. <error> is any message on this page. The running configuration stays. Fix the cause and save the file again.
reload refused, keeping the running config: inbound <tag>: <reason>, which would end its live connections; restart to apply it The change touches a TUN inbound, or a Hysteria 2 inbound’s obfs or obfs_password. The running configuration stays. Restart the process to apply it.
config hot-reload disabled: <error> At start, the config file’s directory could not be watched. Check that the directory exists and is readable, then restart.
cannot watch <dir> for changes: <error> A directory the configuration names, such as the subscribe file’s, could not be watched. Check that the directory exists and is readable.

etemenanki-app hot reload explains the reload sequence.

katana uses the same kernel as etemenanki-app, so its DNS, routing and Hysteria 2 messages often match the ones above word for word. This part lists katana’s own messages and the places where they differ. Under --test and at start, everything a node checks is prefixed with node <id>: .

Message Meaning Fix
config parse error: TOML parse error at line <n>, column <m> The file is not valid TOML, or has an unknown key or a wrong type at that position. An XrayR key name such as ApiHost fails this way: katana uses its own snake-case names. So do [node.api] vless_flow and disable_custom_config, which katana 6 removed (Two keys are gone). The causes are the same as in TOML syntax and unknown keys. Fix the key at the reported line. Migrating from XrayR has the key mapping.
config not utf-8: invalid utf-8 sequence of <n> bytes from index <i> The file is not UTF-8. Save it as UTF-8.
No such file or directory (os error 2) The config file does not exist at that path. Fix the path.
config defines no [[node]] entries The file has no [[node]]. An empty file fails this way. Add a node.
node <id>: dns: … [dns] is invalid. See DNS resolver: the messages are identical.

At start, a read or parse error is logged as failed to load config: <error> and stops katana with exit status 1. A node error is logged as node <id>: <error>, and katana skips that node and starts the others. When no node is left, it logs no nodes could be started and exits with status 1.

Message Meaning Fix
node <id>: unknown panel_type "<value>" panel_type is missing or not NewV2board, V2board or Helium (any case). The value is shown in lower case, so a missing key shows "". Use one of the three. An Xboard panel uses NewV2board. See Xboard and V2board.
node <id>: panel_type "<value>" is not supported: katana serves the NewV2board and Helium panels panel_type is SSpanel, in any case. katana 6 no longer serves SSPanel, and names it instead of reporting an unknown value. The value is shown as written. Serve the node from an Xboard, V2board or helium panel, with that panel’s node ID, key and users, and change the [[node]] table to match. See Upgrading to katana 6.
node <id>: unknown node_type "<value>" On a NewV2board or V2board node, api.node_type is missing or not V2ray, Vmess, Vless, Trojan, Shadowsocks, Hysteria2, Hysteria, Hy2, AnyTLS, Socks, Socks5, Http or Sss (any case). Use the type the panel has for this node.
node <id>: <key> 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 sets a key that its panel describes. <key> is the first one set, in this order: [node.api] node_type, [node.api] enable_vless, [node.hysteria] port, [node.hysteria] credential, [node.hysteria] udp, [node.hysteria] udp_idle_timeout, [node.hysteria] obfs, [node.hysteria] obfs_password, [node.hysteria.masquerade], [node.hysteria] up_mbps, [node.hysteria] down_mbps, [node.hysteria] ignore_client_bandwidth. node_type and credential count as set when they are not empty, enable_vless and udp when they are true, port when it is not 0, and every other key whenever it is written. Remove the key. Of [node.hysteria], a helium node may set only congestion. See helium.
node <id>: newV2board: no UniProxy panel describes an sss node; sss is Helium's own protocol, served with panel_type = "Helium" api.node_type = "sss" on a NewV2board or V2board node. Serve sss nodes from helium.

On a reload, the same errors refuse the whole reload: katana logs reload: node <name>: unknown panel_type "<value>"; keeping current config (or one of the other messages above) and applies nothing (see katana reload failures).

Errors from the panel request itself, such as a wrong key or node ID, are covered in Troubleshooting.

A node comes up in one attempt: katana reads the node from the panel, then its users, then builds the node and binds its listener. When an attempt fails, katana logs why and tries again, so a panel that is restarting, a DNS server that is not answering yet or a port that is still held does not leave the node down:

Log line What failed
node <id>: node_info failed: <error>; retrying in <N>s The node request to the panel, or, on Xboard and V2board, a node katana refuses as it reads the answer: see Node settings katana cannot serve.
node <id>: panel returned no node info; retrying in <N>s The panel answered the node request with 304 Not Modified instead of the node.
node <id>: user_list failed: <error>; retrying in <N>s The user list request to the panel.
node <id>: panel returned no user list; retrying in <N>s The panel answered the user request with 304 Not Modified instead of the list.
node <id>: initial start failed: <error>; retrying in <N>s The node did not build or bind, for example because of a certificate or a node setting in the next two sections, or inbound <tag>: binding <address> failed: … for its port.

The first wait is 1 second. It doubles after each failure, up to 60 seconds, and never exceeds the node’s update_periodic. An edit to the node’s [[node]] table that a reload applies makes katana retry at once, without waiting for the rest of the delay. Each attempt asks the panel afresh. Once the node is up, it no longer retries this way; later changes are applied by the regular poll.

The panel decides whether a node other than a Hysteria 2 node uses TLS, so these errors appear when the node starts, as node <id>: initial start failed: <error>; retrying in <N>s.

Message Meaning Fix
node requests kernel-unsupported feature: cert.reject_unknown_sni reject_unknown_sni = true. katana does not implement it, and refuses it on every node, with or without TLS. Remove the key.
node requests kernel-unsupported feature: ACME cert mode "<mode>" mode is "dns", "http" or "tls". katana has no ACME client. The node is refused with or without TLS. Use mode = "file" with certificates you renew yourself.
TLS node requires cert.mode = "file" The panel turned TLS on, or the node is a Trojan node, and mode is not "file". The default is "none". Set mode = "file".
TLS node requires cert.cert_file and cert.key_file mode = "file" with an empty path. Set both paths.
No such file or directory (os error 2), Permission denied (os error 13) A certificate or key file is missing or unreadable. Check both paths and the file owner.
no certificate in PEM bundle, or an OpenSSL message starting with error: The files are not a PEM certificate and a matching PEM private key. See Stream settings and TLS. Replace the files.

A Hysteria 2 node on NewV2board or V2board reads its certificate when it is checked, so its messages appear under --test and at start, as node <id>: <error>:

Message Meaning Fix
hysteria2 node requires cert.mode = "file" A Hysteria 2 node without mode = "file", including the default "none" and the ACME modes. Set mode = "file" with cert_file and key_file.
node requests kernel-unsupported feature: cert.reject_unknown_sni reject_unknown_sni = true. Remove the key.
TLS node requires cert.cert_file and cert.key_file A path is empty. Set both.
building inbound <tag> failed: hysteria2: … As for the etemenanki-app Hysteria 2 inbound: no certificate, no private key, or a key that does not match. Replace the files.

A Hysteria 2 node on helium, whose panel describes the node, first reads its certificate and key when it starts, so a missing or unreadable file shows up after initial start failed: .

Some settings come from the panel and cannot be checked by --test. On Xboard and V2board, katana refuses the ones it does not implement as it reads the panel’s answer, instead of serving something else. While the node comes up it logs node <id>: node_info failed: parse UniProxy config response: <error>; retrying in <N>s, and on a node that is already up, node <id>: node_info: parse UniProxy config response: <error> at the poll, and the node keeps its last settings. katana keeps retrying until the setting changes, so correct it on the panel. helium’s node config cannot describe any of these: a helium answer that tries fails with parse helium config response: …, naming the rule it breaks.

Message Meaning 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 on the panel.
expected value at line 1 column 1, or another JSON error The answer is not JSON, such as an HTML page from a wrong host. Check host, and send the request by hand; see Troubleshooting.
a value of the wrong type at line <L>, column <C> A field of the answer has the wrong type, such as server_port sent as a string. The value itself is not shown. Correct the field on the panel.
the panel's node is protocol "<name>", but this node is configured as <type>, the panel's node is protocol "<name>", which katana does not serve The panel’s protocol for the node is of another family than node_type, or one katana does not serve. Set node_type to match the panel’s node.
security reality runs over transport tcp only The panel turns REALITY on for a node whose network is WebSocket or gRPC. REALITY runs on TCP. Set the node’s network to TCP on the panel.
node requests kernel-unsupported feature: REALITY on a VMess node The panel turns REALITY on for a VMess node. Serve the node as VLESS (enable_vless = true), or turn REALITY off.
flow xtls-rprx-vision needs security reality The panel sets the Vision flow on a VLESS node without REALITY. Turn REALITY on, or clear the flow.
a REALITY node (tls = 2) carries no tls_settings, the REALITY tls_settings: <error>, REALITY needs a server_name, REALITY needs the cover site's port, REALITY private_key: <error>, REALITY short_id: <error> The panel’s REALITY settings are missing, of the wrong shape, or a value katana cannot use. No message repeats the key or the shortId. Correct the REALITY settings on the panel.
security.server_name must be a host name of ASCII letters, digits, -, _ and ., at most 253 bytes, with no wildcard and not ending in a dot The REALITY server name is a wildcard, ends in a dot, or has other characters in it. Use the cover site’s host name.
node requests kernel-unsupported feature: VLESS flow "<flow>" The panel sets a VLESS flow other than xtls-rprx-vision. Use xtls-rprx-vision over REALITY, or clear the flow.
node requests kernel-unsupported feature: an XTLS flow off VLESS A flow is set on a node that does not serve VLESS. Clear the flow, or serve VLESS.
node requests kernel-unsupported feature: socks without TLS (also http without TLS) A SOCKS or HTTP node without TLS. katana serves these two only inside TLS. Turn TLS on for the node on the panel.
node requests kernel-unsupported feature: socks over REALITY (also http over REALITY) The panel turns REALITY on for a SOCKS or HTTP node. Use TLS instead.
node requests kernel-unsupported feature: httpupgrade transport, … splithttp transport, … transport "<name>" The panel’s network is HTTPUpgrade, SplitHTTP or XHTTP, or another name katana does not know. katana serves TCP, WebSocket and gRPC. Change the node’s network on the panel.
node requests kernel-unsupported feature: tcp header type "<type>" A TCP node, REALITY included, whose panel sets a header obfuscation, such as http. katana serves bare TCP only: no header, a header without a type, or the type none in any case. Set the node’s header type to none on the panel, and have its users update their subscriptions.
tcp header is not an object The panel’s TCP header for the node is not a JSON object. Correct the header on the panel, or set its type to none.
tcp header type is not a string The panel’s TCP header names its type with something other than a string. Correct the header on the panel, or set its type to none.
node requests kernel-unsupported feature: shadowsocks cipher "<method>" The panel’s Shadowsocks method is not one katana serves: aes-128-gcm, aes-256-gcm, chacha20-ietf-poly1305 (also chacha20-poly1305) and xchacha20-ietf-poly1305 (also xchacha20-poly1305), in any case, and 2022-blake3-aes-128-gcm and 2022-blake3-aes-256-gcm. 2022-blake3-chacha20-poly1305 is refused this way too. Choose a supported method on the panel.
shadowsocks server_key is not base64, shadowsocks-2022: PSK too short (<n> < <len>) A Shadowsocks 2022 node’s server_key is not base64, or shorter than the cipher’s key: 16 bytes for 2022-blake3-aes-128-gcm, 32 for 2022-blake3-aes-256-gcm. Set a key of the right length, for example from openssl rand -base64 32.
newV2board: shadowsocks obfs "<value>" is not supported, newV2board: shadowsocks over REALITY is not supported A Shadowsocks node with an obfs other than empty, plain or none, or with REALITY. Turn them off on the panel.
transport.path must start with /, transport.path must have no query but ?ed=N; a node matches the path of an upgrade without one The node’s WebSocket path does not start with /, or has a query other than ?ed=N. Correct the path on the panel.
transport.host must not have a port; a node matches it against the Host of an upgrade without one The node’s WebSocket host has a port. Write the host alone.
transport.service_name must not be empty A gRPC node without a service name. Set one on the panel.
padding_scheme[<n>] is empty, and the other padding_scheme rules An AnyTLS node’s padding scheme has an empty line, a line break in a line, or more than 2048 bytes. Correct the scheme on the panel.

katana’s [[outbound]] has a flat layout, with keys such as uuid and method directly in the table. Its messages differ from etemenanki-app’s. Each is prefixed with node <id>: .

Message Meaning Fix
duplicate/reserved outbound tag <tag> Two outbounds share a tag, or a tag is one of the built-in direct, block, freedom or blackhole, or starts with audit#. Rename the outbound. The built-in tags are always available to rules.
unknown outbound protocol "<value>" Not direct (also freedom), socks (also socks5), http, vmess, vless, shadowsocks (also ss) or wireguard (also wg), in any case. Trojan and Hysteria 2 have no outbound in katana. Use a supported protocol.
outbound needs a non-empty server and non-zero port (got "<server>":<port>) A proxy outbound without server or port. A protocol = "blackhole" entry fails the same way: use the built-in block tag instead. Add server and port.
outbound server "<host>": brackets hold only an IPv6 literal server has brackets around something that is not an IPv6 address. Write an IPv6 address with or without brackets, and a name or IPv4 address without.
outbound <tag> needs a uuid A VMess or VLESS outbound without uuid. Add it.
outbound <tag>: uuid is not a valid UUID The uuid does not parse. Correct the UUID.
unsupported vmess security "<value>" security is not auto, aes-128-gcm (also aes128gcm) or chacha20-poly1305 (also chacha20poly1305), in any case. none and zero are not supported. Use one of those, or leave it out.
shadowsocks outbound <tag> needs a password A Shadowsocks outbound without password. Add it.
unsupported shadowsocks cipher "<value>" method is missing or not a supported method. katana accepts the same methods as etemenanki-app, and reports an unknown 2022- method this way too. Set method to a supported name.
decode PSK: <error>, shadowsocks-2022: PSK too short (<n> < <len>) A Shadowsocks 2022 key is not base64, or too short. As in Inbound and outbound protocols.
outbound <tag> invalid address_family "<value>" As for etemenanki-app, without the colon after the tag. Use a listed value.
outbound <tag> invalid endpoint_address_family "<value>" The same for endpoint_address_family on a WireGuard outbound. Use a listed value.
wireguard outbound <tag> needs a private_key (also public_key) A required WireGuard key is missing. The peer’s key is called public_key here. Add it.
wireguard outbound <tag> <field>: invalid WireGuard key: expected base64 or hex encoding of 32 bytes private_key, public_key or pre_shared_key does not decode to 32 bytes. Paste the key from wg genkey or wg pubkey.
wireguard outbound <tag> needs at least one local_address No local_address. Add the tunnel address. Here a prefix length such as /32 is allowed.
wireguard outbound <tag> invalid local_address "<value>": <error> An entry is not an IP address. Correct it.
outbound <tag>@v0: wireguard address_family ipv6_only needs an IPv6 address (or ipv4_only … IPv4) No local_address of the family address_family requires. Add one, or change address_family.
wireguard outbound <tag> reserved must be exactly 3 bytes reserved does not have three entries. Write three numbers from 0 to 255.

katana outbounds documents each key.

For a node whose node_type is Hysteria2, Hysteria or Hy2, --test and a start check [node.hysteria] and the certificate through the same builder a start uses, without binding the port. A helium node has no node_type, and of [node.hysteria] it may set only congestion, which --test and a start check on every node. The messages carry the prefix node <id>: , and at start katana skips a node that fails.

Message Meaning Fix
unknown hysteria credential kind "<value>" (expected "uuid" or "user_pass") credential has another value. Use "uuid" (the default) or "user_pass".
obfs_password is set but obfs is not; did you mean obfs = "salamander"? obfs_password without obfs. Add obfs = "salamander".
obfs_password must be at least 4 bytes for salamander The obfuscation password is shorter than 4 bytes. Use a longer one.
unknown obfs "<value>" (expected "salamander") obfs has another value. Write "salamander".
udp_idle_timeout must be between 2 and 600 seconds Out of range. Use 2 to 600.
udp_idle_timeout is set but udp is not enabled Set without udp = true. Enable udp, or remove the timeout.
masquerade.status must not be 233, the Hysteria 2 authentication success status [node.hysteria.masquerade] status = 233. Choose another status.
masquerade.status is <n>, but must be 100 to 999 The status is outside 100 to 999. Use a real status code.
unknown hysteria congestion "<value>" (expected "cubic", "bbr" or "reno") congestion has another value. It is case-sensitive. Use one of the three.

When Xboard or V2board describes the node, obfs and obfs_password come from the panel, and the same obfuscation messages then appear as katana reads the panel’s answer, after node_info failed: parse UniProxy config response: (node_info: parse UniProxy config response: at a poll of a running node), and point at the panel’s settings. katana Hysteria 2 explains which settings come from where.

A node’s [node.route] compiles with the same code as etemenanki-app’s [route], so it prints the messages in Routing rules and geodata, after node <id>: . The differences:

  • a rule accepts only outbound, domain_suffix, cidr, port, geosite and geoip. Any other matcher, such as domain_keyword, is a parse error, config parse error: TOML parse error at line <n>, column <m>;
  • route references unknown outbound <tag> means the tag is neither an [[outbound]] tag nor one of the built-in direct, block, freedom and blackhole. Without default, unmatched traffic goes to direct;
  • at start katana skips the node. On a reload, see katana reload failures.

rule_list_path is not an error source. If the file cannot be read, the node starts without it and logs the warning cannot read rule_list_path <path>: <error>; a line that is not a valid regular expression is skipped with invalid local rule "<line>": <error>. See Audit rules.

These lines come from the katana::runtime log target.

Log line What happened What to do
config reload failed, keeping current: <error> The new file could not be read or does not parse. Nothing was applied. Fix the file and save it again.
reload: node <panel>@<host>#<id>[/<type>]: <error>; keeping current config A node the reload adds or changes, or any node after an [[outbound]] or [dns] edit, did not pass its checks: for example unknown panel_type "<value>", panel_type "SSpanel" is not supported: …, unknown node_type "<value>", [node.api] node_type is set, but a helium node's protocol is described by the panel; …, route references unknown outbound <tag>, building route failed: …, or an outbound or [dns] that does not build. Nothing was applied: every running node keeps its configuration. A node that did not pass at start is checked again on each reload, so while it stays broken every reload is refused. <panel> is the panel_type in lower case, and /<type> is the node type katana asks an Xboard or V2board panel for. Fix the node and save again. Run katana --test before saving.
invalid log level "<value>": <error> The new [log].level does not parse. The old filter stays in force, although reload: log level → <value> is logged as well. Correct the level.
config watcher disabled (no live reload): <error> At start, the config directory could not be watched. katana runs, but ignores edits until a restart. Check the directory.

katana hot reload describes what each change does to a running node.