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
infostartup chatter and look forerrorandwarn. - 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) | Where | Cause and fix |
|---|---|---|
bind: address already in use | Startup | Port taken. Find it with ss -lntp or netstat -ano, then change ports or stop the old instance |
yaml: unmarshal errors | Config load | Tabs instead of spaces, missing space after a colon, wrong type. The line number points at it |
initial proxy provider error | Subscription | Fetch failed: expired 401, DNS failure, or an HTML error page returned |
start TUN listening error | TUN | Missing privilege or adapter conflict. Linux needs cap_net_admin; Windows needs service mode |
all proxies are not alive | Group | Every node failed its health check. Test latency, then check local networking |
context deadline exceeded | Connection | Request timed out. Unreachable node, congested line, or a rule pointing at a dead node |
dns resolve failed | DNS | nameserver unreachable or blocked. Try 223.5.5.5 or 1.1.1.1 |
unsupported proxy type | Config | Kernel is too old for that protocol. Update the kernel rather than editing the config |
open config.yaml: no such file | Startup | Wrong working directory. Pass -d pointing at the config folder |
Parse config error | Config load | Rule syntax, usually a missing comma or a group name that does not exist |
Chasing a port conflict
- Note the ports in play:
mixed-port,port,socks-port. - Find the holder:
netstat -ano | findstr 7890on Windows,ss -lntp | grep 7890elsewhere. - Rule out an old clash service, a second client, a Docker mapping, a dev server.
- 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,passwordanduuidstripped. - OS version and network context: corporate network, another proxy running.
Questions
- Should I care about all those warnings?
- Not if things connect. When an
errorappears, 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.