Error library

One line in the log is usually enough. Entries are grouped by the message: first which layer it comes from, then the order to fix it in.

Which line to read

  • Skip info startup chatter and look for error and warn.
  • Check timestamps: the last error is usually the cause, earlier ones are fallout.
  • Check the component: [TCP] is connection level, [DNS] resolution, [Provider] subscription fetching.

By message

Log line (excerpt)WhereCause and fix
bind: address already in useStartupPort taken. Find it with ss -lntp or netstat -ano, then change ports or stop the old instance
yaml: unmarshal errorsConfig loadTabs instead of spaces, missing space after a colon, wrong type. The line number points at it
initial proxy provider errorSubscriptionFetch failed: expired 401, DNS failure, or an HTML error page returned
start TUN listening errorTUNMissing privilege or adapter conflict. Linux needs cap_net_admin; Windows needs service mode
all proxies are not aliveGroupEvery node failed its health check. Test latency, then check local networking
context deadline exceededConnectionRequest timed out. Unreachable node, congested line, or a rule pointing at a dead node
dns resolve failedDNSnameserver unreachable or blocked. Try 223.5.5.5 or 1.1.1.1
unsupported proxy typeConfigKernel is too old for that protocol. Update the kernel rather than editing the config
open config.yaml: no such fileStartupWrong working directory. Pass -d pointing at the config folder
Parse config errorConfig loadRule syntax, usually a missing comma or a group name that does not exist

Chasing a port conflict

  1. Note the ports in play: mixed-port, port, socks-port.
  2. Find the holder: netstat -ano | findstr 7890 on Windows, ss -lntp | grep 7890 elsewhere.
  3. Rule out an old clash service, a second client, a Docker mapping, a dev server.
  4. If you change the port, change the system proxy too. One side alone times out.

What to include when asking

  • Kernel version (mihomo -v) and client version.
  • Ten lines around the error, not the one line alone.
  • The relevant config block with server, password and uuid stripped.
  • OS version and network context: corporate network, another proxy running.

Questions

Should I care about all those warnings?
Not if things connect. When an error appears, look back at the preceding warnings to see whether they are related.
Same error after changing nodes?
Then the problem is local: ports, DNS, rules or client state. Reinstalling rarely helps; read the log.
Can I report an error here?
Email the address in the footer. Include the four items above; a report without a version and a log cannot be diagnosed.