XrayR-project / XrayR

A Xray backend framework that can easily support many panels. 一个基于Xray的后端框架,支持V2ay,Trojan,Shadowsocks协议,极易扩展,支持多面板对接
https://xrayr-project.github.io/XrayR-doc/
Mozilla Public License 2.0
2.11k stars 839 forks source link

流量上报异常,不知是否bug #492

Closed jsvpn closed 1 year ago

jsvpn commented 1 year ago

28832| 233| 52952035 | 111367773446 | 7 | 1 | 103.77GB | 1697732030 | 2023-10-20 00:13:50

XrayR 0.9.0版本

一下子给一个用户上报了 103.77GB流量,但是理论上节点带宽也没这么大

config.yml 设置 UpdatePeriodic: 180 每3分钟上报一次 103.77/180=0.5765G=576.5M字节/s

翻查XrayR日志,在这个异常流量时间点前 发现一条特别的日志 Oct 20 00:12:16 hostname XrayR[3753013]: 2023/10/20 00:12:16 proxy/vmess/inbound: User V2ray_0.0.0.0_35000||233 already exi>

233是用户id

这种不知道是啥情况,不知是否bug,请求大佬看看

Septrum101 commented 1 year ago

If XR post those traffic data failure, it will cache those data until success.

jsvpn commented 1 year ago

我本来也是这么怀疑来着,但是那个时间段翻查 XrayR 日志,似乎没有发现 超时 上报失败的等情况

Oct 20 00:00:08 hostname XrayR[3753013]: 2023/10/20 00:00:08 [https://sspanel.org] V2ray(ID=7) Added 1 new users
Oct 20 00:00:08 hostname XrayR[3753013]: 2023/10/20 00:00:08 [https://sspanel.org] V2ray(ID=7) 1 user deleted, 1 user added
Oct 20 00:03:09 hostname XrayR[3753013]: 2023/10/20 00:03:09 [https://sspanel.org] V2ray(ID=7) Added 1 new users
Oct 20 00:03:09 hostname XrayR[3753013]: 2023/10/20 00:03:09 [https://sspanel.org] V2ray(ID=7) 0 user deleted, 1 user added
Oct 20 00:06:12 hostname XrayR[3753013]: 2023/10/20 00:06:12 [https://sspanel.org] V2ray(ID=7) Added 1 new users
Oct 20 00:06:12 hostname XrayR[3753013]: 2023/10/20 00:06:12 [https://sspanel.org] V2ray(ID=7) 1 user deleted, 1 user added
Oct 20 00:09:14 hostname XrayR[3753013]: 2023/10/20 00:09:14 [https://sspanel.org] V2ray(ID=7) Added 1 new users
Oct 20 00:09:14 hostname XrayR[3753013]: 2023/10/20 00:09:14 [https://sspanel.org] V2ray(ID=7) 1 user deleted, 1 user added
Oct 20 00:12:16 hostname XrayR[3753013]: 2023/10/20 00:12:16 proxy/vmess/inbound: User V2ray_0.0.0.0_35000||233 already exi>
Oct 20 00:12:16 hostname XrayR[3753013]: 2023/10/20 00:12:16 [https://sspanel.org] V2ray(ID=7) 0 user deleted, 7 user added
Oct 20 00:15:19 hostname XrayR[3753013]: 2023/10/20 00:15:19 [https://sspanel.org] V2ray(ID=7) 3 user deleted, 0 user added
Oct 20 00:18:21 hostname XrayR[3753013]: 2023/10/20 00:18:21 [https://sspanel.org] V2ray(ID=7) 1 user deleted, 0 user added
Oct 20 00:21:22 hostname XrayR[3753013]: 2023/10/20 00:21:22 [https://sspanel.org] V2ray(ID=7) 1 user deleted, 0 user added
Oct 20 00:24:24 hostname XrayR[3753013]: 2023/10/20 00:24:24 [https://sspanel.org] V2ray(ID=7) Added 1 new users
Oct 20 00:24:24 hostname XrayR[3753013]: 2023/10/20 00:24:24 [https://sspanel.org] V2ray(ID=7) 1 user deleted, 1 user added
Oct 20 00:30:27 hostname XrayR[3753013]: 2023/10/20 00:30:27 [https://sspanel.org] V2ray(ID=7) Added 1 new users
Oct 20 00:30:27 hostname XrayR[3753013]: 2023/10/20 00:30:27 [https://sspanel.org] V2ray(ID=7) 1 user deleted, 1 user added