The-NeXT-Project / NeXT-Panel

Next generation proxy service management system (OSS Edition)
https://nextpanel.dev
GNU General Public License v3.0
167 stars 39 forks source link

[BUG] xrayr对接报错 #50

Closed phantomveil closed 4 months ago

phantomveil commented 4 months ago

Environment 环境 latest

Bug Info

Describe the issue you run into. can see the same issue in xrayr https://github.com/XrayR-project/XrayR/issues/642 log: XrayR 0.9.3 (A Xray backend that supports many panels) Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: time="2024-06-15T22:02:35Z" level=info msg="Start the panel.." Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: 2024/06/15 22:02:35 [Warning] core: Xray 1.8.13 started Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: time="2024-06-15T22:02:35Z" level=info msg="The panel version is expired, it is recommended to update immediately" Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: panic: runtime error: index out of range [1] with length 1 Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: goroutine 1 [running]: Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/api/sspanel.(APIClient).ParseV2rayNodeResponse(0xc00182fc30, 0xc000d94f50) Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/api/sspanel/sspanel.go:422 +0x896 Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/api/sspanel.(APIClient).GetNodeInfo(0xc00182fc30) Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/api/sspanel/sspanel.go:204 +0x936 Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/service/controller.(Controller).Start(0xc001845e60) Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/service/controller/controller.go:82 +0xe2 Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/panel.(Panel).Start(0xc001a6c3c0) Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/panel/panel.go:209 +0x5ca Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/cmd.run() Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/cmd/root.go:106 +0x1c5 Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/cmd.init.func1(0xc000fb3900?, {0x444920b?, 0x4?, 0x44490fb?}) Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/cmd/root.go:27 +0x13 Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/spf13/cobra.(Command).execute(0x78056a0, {0xc000072910, 0x2, 0x2}) Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/spf13/cobra@v1.8.0/command.go:987 +0xab1 Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/spf13/cobra.(Command).ExecuteC(0x78056a0) Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/spf13/cobra.(*Command).Execute(...) Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/spf13/cobra@v1.8.0/command.go:1039 Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/cmd.Execute(...) Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/cmd/root.go:120 Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: main.main() Jun 15 22:02:35 ip-172-26-7-193 XrayR[4536]: github.com/XrayR-project/XrayR/main.go:10 +0x1a Jun 15 22:02:35 ip-172-26-7-193 systemd[1]: XrayR.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Jun 15 22:02:35 ip-172-26-7-193 systemd[1]: XrayR.service: Failed with result 'exit-code'. 。

AutisticShark commented 4 months ago

https://github.com/SSPanel-NeXT/NeXT-Server

wans10 commented 4 months ago

@AutisticShark 大佬,给以简单写一下安装说明吗?谢谢。

AutisticShark commented 4 months ago

https://nextpanel.dev/docs/advanced/next-repo