SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
20.47k stars 2.44k forks source link

log日志经常有ERROR提示 #70

Closed guigeng closed 2 years ago

guigeng commented 2 years ago

Welcome

Description of the problem

log里面经常有ERROR

Version of sing-box

```console $ sing-box version sing-box 1.0-rc1 (go1.19, linux/amd64, CGO enabled) # Paste output here ```

Server and client configuration file

client ```json { "log": { "disabled": false, "level": "info", "output": "", "timestamp": true }, "dns": { "servers": [ { "tag":"ct-dns", "address":"218.2.135.1", "detour":"direct-out" }, { "tag": "dns", "address": "https://1.1.1.1/dns-query", "detour": "direct-out" }, { "tag": "local-dns", "address": "10.223.2.1", "detour": "direct-out" } ], "rules": [ { "domain": [ "locaodomain.com", "localdomain.corp" ], "server": "local-dns" }, { "geosite":"cn", "server":"ct-dns" }, { "geosite":"geolocation-!cn", "server":"dns" } ], "final": "local-dns", "strategy": "prefer_ipv4" }, "inbounds": [ { "type": "mixed", "tag": "mixed-in", "listen": "::", "listen_port": 8000, "sniff": true, "domain_strategy": "prefer_ipv4" } ], "outbounds": [ { "type": "direct", "tag": "direct-out" }, { "type": "socks", "tag": "socks-out", "server": "---", "server_port": 1080, "version": "5", "username": "---", "password": "---" }, { "type": "socks", "tag": "homeproxy", "server": "---", "server_port": 20000, "version": "5" }, { "type": "hysteria", "tag": "tp-hysteria", "server": "---", "server_port": 8080, "up_mbps": 100, "down_mbps": 100, "obfs": "---", "auth": "password", "auth_str": "---", "disable_mtu_discovery": false, "tls": { "enabled": true, "server_name": "--", "insecure": false } }, { "type": "dns", "tag": "dns-out" } ], "route": { "geoip": { "path": "/usr/local/etc/sing-box/geoip.db", "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", "download_detour": "tp-hysteria" }, "geosite": { "path": "/usr/local/etc/sing-box/geosite.db", "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", "download_detour": "tp-hysteria" }, "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "ip_cidr": "192.168.100.0/24", "outbound": "homeproxy" }, { "geosite": "cn", "geoip": "cn", "ip_cidr": "10.0.0.0/8", "outbound": "direct-out" } ], "final": "tp-hysteria" }, "experimental": {} } ``` server: ```json { "log": { "disabled": false, "level": "info", "output": "", "timestamp": true }, "inbounds": [ { "type": "hysteria", "tag": "hysteria-in", "listen": "::", "listen_port": 8080, "sniff": false, "sniff_override_destination": false, "up_mbps": 100, "down_mbps": 100, "obfs": "---", "auth": "---", "auth_str": "---", "disable_mtu_discovery": false, "tls": { "enabled": true, "server_name": "---", "certificate_path": "/root/.acme.sh/---ullchain.cer", "key_path": "/root/.acme.sh/---.key" } }, { "type": "socks", "tag": "socks-in", "listen": "::", "listen_port": 1080, "users": [ { "username": "---", "password": "---" } ] } ], "outbounds": [ { "type": "direct", "tag": "direct-out" } ], "route": {}, "experimental": {} } ```

Server and client log file

```console # paste log here # server +0800 2022-09-07 11:46:53 ERROR [2734683599] inbound/hysteria[hysteria-in]: process stream from ---:2504: upload: EOF | download: stream 32 canceled with error code 0 ``` ``` # client Sep 07 11:43:47 server sing-box[11189]: 183 ERROR [1715174101] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:58402: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:58402: Read on stream 16 canceled with error code 0 Sep 07 11:44:14 server sing-box[11189]: 210 ERROR [2448672323] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:58399: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:58399: Read on stream 12 canceled with error code 0 Sep 07 11:44:16 server sing-box[11189]: 212 ERROR [4098925082] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:58410: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:58410: Read on stream 20 canceled with error code 0 ```
nekohasekai commented 2 years ago

Try f7943bd248365e177b2acb9dff862770464bfec8

guigeng commented 2 years ago

Try f7943bd

Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [3487743574] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57529: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57529: Read on stream 736 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [1664128005] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57525: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57525: Read on stream 748 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [2994353999] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57527: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57527: Read on stream 740 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [1979512466] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57528: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57528: Read on stream 744 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [2671068432] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57524: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57524: Read on stream 752 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [1830763885] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57526: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57526: Read on stream 756 canceled with error code 0
Sep 07 15:03:17 om-proxyp01 sing-box[17686]: 5323 ERROR [2906408670] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57351: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57351: Read on stream 696 canceled with error code 0
Sep 07 15:04:15 om-proxyp01 sing-box[17686]: 5381 ERROR [2084579108] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57682: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57682: Read on stream 768 canceled with error code 0
nekohasekai commented 2 years ago

Try f7943bd

Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [3487743574] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57529: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57529: Read on stream 736 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [1664128005] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57525: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57525: Read on stream 748 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [2994353999] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57527: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57527: Read on stream 740 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [1979512466] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57528: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57528: Read on stream 744 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [2671068432] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57524: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57524: Read on stream 752 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [1830763885] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57526: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57526: Read on stream 756 canceled with error code 0
Sep 07 15:03:17 om-proxyp01 sing-box[17686]: 5323 ERROR [2906408670] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57351: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57351: Read on stream 696 canceled with error code 0
Sep 07 15:04:15 om-proxyp01 sing-box[17686]: 5381 ERROR [2084579108] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57682: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57682: Read on stream 768 canceled with error code 0

Run sing-box version

guigeng commented 2 years ago

Try f7943bd

Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [3487743574] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57529: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57529: Read on stream 736 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [1664128005] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57525: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57525: Read on stream 748 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [2994353999] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57527: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57527: Read on stream 740 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [1979512466] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57528: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57528: Read on stream 744 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [2671068432] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57524: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57524: Read on stream 752 canceled with error code 0
Sep 07 15:02:38 om-proxyp01 sing-box[17686]: 5284 ERROR [1830763885] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57526: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57526: Read on stream 756 canceled with error code 0
Sep 07 15:03:17 om-proxyp01 sing-box[17686]: 5323 ERROR [2906408670] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57351: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57351: Read on stream 696 canceled with error code 0
Sep 07 15:04:15 om-proxyp01 sing-box[17686]: 5381 ERROR [2084579108] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:57682: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:57682: Read on stream 768 canceled with error code 0

Run sing-box version

重新编译了一下

# ./sing-box version
sing-box 1.0-rc1.14eaad2 (go1.19.1, linux/amd64, CGO enabled)
# journalctl -f -u sing-box|grep ERROR
Sep 07 16:50:02 om-proxyp01 sing-box[28821]: 58 ERROR [1359512055] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:50569: upload: read tcp 10.223.2.5:8000->10.222.203.52:50569: read: connection reset by peer | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:50569: Read on stream 36 canceled with error code 0
Sep 07 16:50:02 om-proxyp01 sing-box[28821]: 59 ERROR [3552137368] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:50571: upload: read tcp 10.223.2.5:8000->10.222.203.52:50571: read: connection reset by peer | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:50571: Read on stream 40 canceled with error code 0
Sep 07 16:50:50 om-proxyp01 sing-box[28821]: 107 ERROR [3273808465] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:50661: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:50661: Read on stream 68 canceled with error code 0
Sep 07 16:51:58 om-proxyp01 sing-box[28821]: 174 ERROR [1990961587] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:50555: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:50555: Read on stream 20 canceled with error code 0
Sep 07 16:51:58 om-proxyp01 sing-box[28821]: 174 ERROR [2282374322] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:50558: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:50558: Read on stream 28 canceled with error code 0
Sep 07 16:51:58 om-proxyp01 sing-box[28821]: 174 ERROR [2615049797] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:50557: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:50557: Read on stream 24 canceled with error code 0
nekohasekai commented 2 years ago

Logs are not cleaned up after systemd service restarts.

guigeng commented 2 years ago

最新的log client

Sep 07 16:57:01 om-proxyp01 sing-box[29276]: 55 INFO [3645026873] inbound/mixed[mixed-in]: inbound connection from [::ffff:10.222.203.52]:51340
Sep 07 16:57:01 om-proxyp01 sing-box[29276]: 55 INFO [3645026873] inbound/mixed[mixed-in]: inbound connection to safebrowsing.googleapis.com:443
Sep 07 16:57:01 om-proxyp01 sing-box[29276]: 56 INFO [3645026873] dns: lookup succeed for safebrowsing.googleapis.com: 142.251.46.202 2607:f8b0:4005:812::200a
Sep 07 16:57:01 om-proxyp01 sing-box[29276]: 56 INFO [3645026873] outbound/hysteria[tp-hysteria]: outbound connection to 142.251.46.202:443
Sep 07 16:57:02 om-proxyp01 sing-box[29276]: 56 ERROR [3645026873] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:51340: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:51340: Read on stream 24 canceled with error code 0

server

+0800 2022-09-07 16:59:41 ERROR [550273690] inbound/hysteria[hysteria-in]: process stream from ---:2534: upload: EOF | download: stream 16 canceled with error code 0
nekohasekai commented 2 years ago

Try 4b61d6e875d9e9186acf277fb43510659c51454f

guigeng commented 2 years ago

Try 4b61d6e

昨天这个版本好像没有ERROR了

但是。。。1.0今天更新

sing-box 1.0.f376683 (go1.19.1, linux/amd64, CGO enabled)

似乎又出现了

Sep 08 10:33:35 om-proxyp01 sing-box[24511]: 171 ERROR [1307834789] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:53751: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:53751: Read on stream 80 canceled with error code 0
Sep 08 10:33:35 om-proxyp01 sing-box[24511]: 171 ERROR [365711584] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:53752: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:53752: Read on stream 92 canceled with error code 0
Sep 08 10:33:35 om-proxyp01 sing-box[24511]: 171 ERROR [3269756927] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:53753: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:53753: Read on stream 88 canceled with error code 0
Sep 08 10:33:35 om-proxyp01 sing-box[24511]: 171 ERROR [1183314386] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:53749: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:53749: Read on stream 84 canceled with error code 0
Sep 08 10:33:35 om-proxyp01 sing-box[24511]: 171 ERROR [1117932048] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:53748: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:53748: Read on stream 72 canceled with error code 0
Sep 08 10:33:35 om-proxyp01 sing-box[24511]: 171 ERROR [3525817118] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:53755: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:53755: Read on stream 96 canceled with error code 0
Sep 08 10:33:36 om-proxyp01 sing-box[24511]: 172 ERROR [948704732] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:53758: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:53758: Read on stream 108 canceled with error code 0
Sep 08 10:33:59 om-proxyp01 sing-box[24511]: 195 ERROR [385255839] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:53177: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:53177: Read on stream 16 canceled with error code 0
Sep 08 10:34:01 om-proxyp01 sing-box[24511]: 197 ERROR [943417797] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:53191: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:53191: Read on stream 28 canceled with error code 0
Sep 08 10:34:05 om-proxyp01 sing-box[24511]: 201 ERROR [3545635128] inbound/mixed[mixed-in]: process connection from [::ffff:10.222.203.52]:53229: upload: EOF | download: readfrom tcp 10.223.2.5:8000->10.222.203.52:53229: Read on stream 48 canceled with error code 0
guigeng commented 2 years ago

补充一下build参数

go build -v -trimpath -tags 'with_clash_api,with_quic' -ldflags "-X 'github.com/sagernet/sing-box/constant.Commit=$(git rev-parse --short HEAD)' -w -s -buildid=" ./cmd/sing-box