FranzKafkaYu / x-ui

Lightweight Xray panel with multi-protocol and multi-user on the same port,supports English language and Telegram bot. Easy to use and easy to manage.
GNU General Public License v3.0
8.03k stars 1.64k forks source link

panic: runtime error: index out of range [0] with length 0 #512

Closed lixingbu-tal closed 1 year ago

lixingbu-tal commented 1 year ago

Welcome

Description of the problem,screencshot would be good

image

Version of x-ui

enwaiax/x-ui:alpha-zh 最新镜像

x-ui log or xray log

[+] Running 1/1 ✔ Container xui-xui-1 Created 0.3s Attaching to xui-xui-1 xui-xui-1 | 2023/09/28 10:53:00 x-ui 0.3.4.4:20230717 xui-xui-1 | 2023/09/28 10:53:01 INFO - web server run http on [::]:54321 xui-xui-1 | 2023/09/28 10:53:01 WARNING - start xray warnging,create x-ui own chain failed xui-xui-1 | IptablesCreateOwnChain create failed,error Info exit status 127 xui-xui-1 | 2023/09/28 10:53:01 INFO - Wait 2 seconds for telegram bot ready xui-xui-1 | 2023/09/28 10:53:10 [sessions] ERROR! securecookie: the value is not valid xui-xui-1 | 2023/09/28 10:53:21 INFO - admin login success,Ip Address:** xui-xui-1 | 2023/09/28 10:53:21 [sessions] ERROR! securecookie: the value is not valid xui-xui-1 | 2023/09/28 10:53:21 INFO - user 1 login success xui-xui-1 | 2023/09/28 10:53:29 WARNING - 停止xray服务失败: xray is not running xui-xui-1 | 2023/09/28 10:53:39 INFO - RecordXrayVersion: v1.8.1 xui-xui-1 | 2023/09/28 10:54:04 WARNING - stop server err: multierr: close tcp [::]:54321: use of closed network connection | xui-xui-1 | 2023/09/28 10:54:04 INFO - web server run http on [::]:54321 xui-xui-1 | 2023/09/28 10:54:04 WARNING - start xray warnging,create x-ui own chain failed xui-xui-1 | IptablesCreateOwnChain create failed,error Info exit status 127 xui-xui-1 | 2023/09/28 10:54:04 INFO - Wait 2 seconds for telegram bot ready xui-xui-1 | 2023/09/28 10:59:37 WARNING - stop server err: multierr: close tcp [::]:54321: use of closed network connection | xui-xui-1 | 2023/09/28 10:59:37 INFO - web server run http on [::]:54321 xui-xui-1 | 2023/09/28 10:59:37 WARNING - start xray warnging,create x-ui own chain failed xui-xui-1 | IptablesCreateOwnChain create failed,error Info exit status 127 xui-xui-1 | 2023/09/28 10:59:37 INFO - Wait 2 seconds for telegram bot ready xui-xui-1 | 2023/09/28 10:59:48 INFO - user 1 logout xui-xui-1 | 2023/09/28 10:59:52 INFO - xiangchu95 login success,Ip Address:** xui-xui-1 | 2023/09/28 10:59:52 INFO - user 1 login success xui-xui-1 | panic: runtime error: index out of range [0] with length 0 xui-xui-1 | xui-xui-1 | goroutine 1770 [running]: xui-xui-1 | x-ui/web/job.(StatsNotifyJob).GetCpuUsage(0xf4b150?) xui-xui-1 | x-ui/web/job/stats_notify_job.go:563 +0x593 xui-xui-1 | x-ui/web/job.(StatsNotifyJob).NewCpuStatusMonitorNotify(0xc000455f86) xui-xui-1 | x-ui/web/job/stats_notify_job.go:130 +0x2ad xui-xui-1 | x-ui/web.(Server).startTask.func7() xui-xui-1 | x-ui/web/web.go:326 +0x25 xui-xui-1 | github.com/robfig/cron/v3.FuncJob.Run(0x0?) xui-xui-1 | github.com/robfig/cron/v3@v3.0.1/cron.go:136 +0x1a xui-xui-1 | github.com/robfig/cron/v3.(Cron).startJob.func1() xui-xui-1 | github.com/robfig/cron/v3@v3.0.1/cron.go:312 +0x6a xui-xui-1 | created by github.com/robfig/cron/v3.(*Cron).startJob xui-xui-1 | github.com/robfig/cron/v3@v3.0.1/cron.go:310 +0xad xui-xui-1 | xui-xui-1 exited with code 0

FranzKafkaYu commented 1 year ago

抱歉,docker相关支持不在本项目考虑范围之内。