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
1.85k stars 775 forks source link

Fall to start #652

Closed counsd closed 1 week ago

counsd commented 1 week ago

When I start run XrayR,the script reported an error and provided "XrayR. service: Failed with result 'exit code'." Like: Jul 02 15:30:16 instance-20231007-1446 systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 21. Jul 02 15:30:16 instance-20231007-1446 systemd[1]: Stopped XrayR Service. Jul 02 15:30:16 instance-20231007-1446 systemd[1]: Started XrayR Service. Jul 02 15:30:16 instance-20231007-1446 XrayR[9277]: XrayR 0.9.3 (A Xray backend that supports many panels) Jul 02 15:30:16 instance-20231007-1446 XrayR[9277]: time="2024-07-02T15:30:16+08:00" level=info msg="Start the panel.." Jul 02 15:30:16 instance-20231007-1446 XrayR[9277]: 2024/07/02 15:30:16.792619 WARN RESTY Get "http://127.0.0.1:667/mod_mu/nodes/41/info?key=123&muKey=123": dial tcp 127.0.0.1:667: connect: connection refused, Attempt 1 Jul 02 15:30:16 instance-20231007-1446 XrayR[9277]: 2024/07/02 15:30:16 [Warning] core: Xray 1.8.13 started Jul 02 15:30:16 instance-20231007-1446 XrayR[9277]: 2024/07/02 15:30:16.893453 WARN RESTY Get "http://127.0.0.1:667/mod_mu/nodes/41/info?key=123&muKey=123": dial tcp 127.0.0.1:667: connect: connection refused, Attempt 2 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: 2024/07/02 15:30:17.077206 WARN RESTY Get "http://127.0.0.1:667/mod_mu/nodes/41/info?key=123&muKey=123": dial tcp 127.0.0.1:667: connect: connection refused, Attempt 3 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: 2024/07/02 15:30:17.307650 WARN RESTY Get "http://127.0.0.1:667/mod_mu/nodes/41/info?key=123&muKey=123": dial tcp 127.0.0.1:667: connect: connection refused, Attempt 4 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: 2024/07/02 15:30:17.307681 ERROR RESTY Get "http://127.0.0.1:667/mod_mu/nodes/41/info?key=123&muKey=123": dial tcp 127.0.0.1:667: connect: connection refused Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: time="2024-07-02T15:30:17+08:00" level=info msg="Get \"http://127.0.0.1:667/mod_mu/nodes/41/info?key=123&muKey=123\": dial tcp 127.0.0.1:667: connect: connection refused" Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: time="2024-07-02T15:30:17+08:00" level=panic msg="Panel Start failed: request http://127.0.0.1:667/mod_mu/nodes/41/info failed: Get \"http://127.0.0.1:667/mod_mu/nodes/41/info?key=123&muKey=123\": dial tcp 127.0.0.1:667: connect: connection refused" Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: panic: (logrus.Entry) 0x4000f3e1c0 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: goroutine 1 [running]: Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus.(Entry).log(0x4000f3e700, 0x0, {0x4001ab60d0, 0xc4}) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus@v1.9.3/entry.go:260 +0x494 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus.(Entry).Log(0x4000f3e700, 0x0, {0x4001b2f9d8?, 0x1?, 0x1?}) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus@v1.9.3/entry.go:304 +0x60 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus.(Entry).Logf(0x4000f3e700, 0x0, {0x3d97bc1?, 0x3?}, {0x4001b2fad0?, 0x5?, 0x1?}) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus@v1.9.3/entry.go:349 +0x88 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus.(Logger).Logf(0x709a980, 0x0, {0x3d97bc1, 0x16}, {0x4001b2fad0, 0x1, 0x1}) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus@v1.9.3/logger.go:154 +0x74 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus.(Logger).Panicf(...) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus@v1.9.3/logger.go:195 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus.Panicf(...) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/sirupsen/logrus@v1.9.3/exported.go:219 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/XrayR-project/XrayR/panel.(Panel).Start(0x40019d7140) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/XrayR-project/XrayR/panel/panel.go:211 +0x638 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/XrayR-project/XrayR/cmd.run() Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/XrayR-project/XrayR/cmd/root.go:106 +0x1c8 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/XrayR-project/XrayR/cmd.init.func1(0x4001855900?, {0x3d62c88?, 0x4?, 0x3d62b78?}) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/XrayR-project/XrayR/cmd/root.go:27 +0x1c Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/spf13/cobra.(Command).execute(0x70b5f00, {0x400010a8e0, 0x2, 0x2}) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/spf13/cobra@v1.8.0/command.go:987 +0x828 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/spf13/cobra.(Command).ExecuteC(0x70b5f00) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/spf13/cobra@v1.8.0/command.go:1115 +0x344 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/spf13/cobra.(Command).Execute(...) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/spf13/cobra@v1.8.0/command.go:1039 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/XrayR-project/XrayR/cmd.Execute(...) Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/XrayR-project/XrayR/cmd/root.go:120 Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: main.main() Jul 02 15:30:17 instance-20231007-1446 XrayR[9277]: github.com/XrayR-project/XrayR/main.go:10 +0x24 Jul 02 15:30:17 instance-20231007-1446 systemd[1]: XrayR.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Jul 02 15:30:17 instance-20231007-1446 systemd[1]: XrayR.service: Failed with result 'exit-code'.