alireza0 / s-ui

An advanced Web Panel • Built for SagerNet/Sing-Box
https://t.me/XrayUI
GNU General Public License v3.0
2.15k stars 307 forks source link

غیرفعال شدن هسته سینگ باکس #102

Closed m3hdiclub closed 1 month ago

m3hdiclub commented 2 months ago

درود استاد هر چند روز یکبار و یا حتی یک روز در میون هسته سینگ باکس غیرفعال میشه و باید از طریق ssh سینگ باکس رو ریستارت کنم تا اوکی بشه، حتی حالت اجرای خودکار سینگ باکس رو هم فعال دارم ولی بازم خودش فعال نمیشه.. ارور های توی لاگ

Apr 14 13:30:53 incandescent-berry1.aeza.network /usr/local/s-ui/sui[24939]: WARNING - Get stats failed: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:1080: connect: connection refused"

Apr 14 13:28:02 incandescent-berry1.aeza.network runSingbox.sh[30714]: /home/runner/go/pkg/mod/github.com/sagernet/sing@v0.3.2/common/task/task.go:91 +0x107 Apr 14 13:28:02 incandescent-berry1.aeza.network runSingbox.sh[30714]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList in goroutine 5288515 Apr 14 13:28:02 incandescent-berry1.aeza.network runSingbox.sh[30714]: /home/runner/go/pkg/mod/github.com/sagernet/sing@v0.3.2/common/task/task.go:75 +0x198

alireza0 commented 2 months ago

درود بر شما این مشکل مربوط به هسته است و باید برای اون مخزن گزارش کنید. لاگهای ارسالی مربوط به سرویس s-ui هست و نمیتونه مشکل رو نشون بده. برای گرفتن لاگهای sing-box باید از دستور زیر استفاده کنید:

journalctl -u sing-box
m3hdiclub commented 2 months ago

درود بر شما این مشکل مربوط به هسته است و باید برای اون مخزن گزارش کنید. لاگهای ارسالی مربوط به سرویس s-ui هست و نمیتونه مشکل رو نشون بده. برای گرفتن لاگهای sing-box باید از دستور زیر استفاده کنید:

journalctl -u sing-box

gbox.sh[30714]: INFO[2162888] [2224493178 0ms] inbound/tuic[tuic]: [Alipour] inbound connection to 31.13.72.52>gbox.sh[30714]: INFO[2162888] [2224493178 0ms] outbound/direct[direct]: outbound connection to 31.13.72.52:443 gbox.sh[30714]: panic: runtime error: invalid memory address or nil pointer dereference gbox.sh[30714]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x818b05] gbox.sh[30714]: goroutine 5288517 [running]: gbox.sh[30714]: github.com/sagernet/sing/common/buf.(Buffer).Len(...) gbox.sh[30714]: /home/runner/go/pkg/mod/github.com/sagernet/sing@v0.3.2/common/buf/buffer.go:327 gbox.sh[30714]: github.com/sagernet/sing/common/bufio.copyPacketWaitWithPool({0x7fde901947e8, 0xc000c87590}, {>gbox.sh[30714]: /home/runner/go/pkg/mod/github.com/sagernet/sing@v0.3.2/common/bufio/copy_direct.go:72>gbox.sh[30714]: github.com/sagernet/sing/common/bufio.CopyPacket({0x7fde901947c8?, 0xc0011730c0?}, {0x7fde9019>gbox.sh[30714]: /home/runner/go/pkg/mod/github.com/sagernet/sing@v0.3.2/common/bufio/copy.go:240 +0x448gbox.sh[30714]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func2({0x140e348?, 0xc00505b09>gbox.sh[30714]: /home/runner/go/pkg/mod/github.com/sagernet/sing@v0.3.2/common/bufio/copy.go:331 +0x68 gbox.sh[30714]: github.com/sagernet/sing/common/task.(Group).RunContextList.func1() gbox.sh[30714]: /home/runner/go/pkg/mod/github.com/sagernet/sing@v0.3.2/common/task/task.go:91 +0x107 gbox.sh[30714]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList in goroutine 5288515 gbox.sh[30714]: /home/runner/go/pkg/mod/github.com/sagernet/sing@v0.3.2/common/task/task.go:75 +0x198

این ارور رو میده استاد

alireza0 commented 2 months ago

باگ هسته است و میتونید براشون گزارش کنید. البته ممکنه از نسخه بعد از اینی که داریم استفاده میکنیم حل شده باشه.