Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] 随机时间reload #387

Open
3 tasks done
YUNXIIHan opened this issue Nov 18, 2023 · 7 comments
Open
3 tasks done

[Bug Report] 随机时间reload #387

YUNXIIHan opened this issue Nov 18, 2023 · 7 comments

Comments

@YUNXIIHan
Copy link

YUNXIIHan commented Nov 18, 2023

Checks

  • I have searched the existing issues
  • I have read the documentation
  • Is it your first time sumbitting an issue

Current Behavior

time="2023-11-19T02:12:30+08:00" level=info msg="Loading eBPF programs and maps into the kernel..."
time="2023-11-19T02:12:30+08:00" level=info msg="The loading process takes about 120MB free memory, which will be released after loading. Insufficient memory will cause loading failure."
time="2023-11-19T02:12:46+08:00" level=info msg="Loaded eBPF programs and maps"
time="2023-11-19T02:12:46+08:00" level=info msg="Routing match set len: 1/64"
time="2023-11-19T02:12:46+08:00" level=warning msg="[Reload] Received reload signal; prepare to reload"
time="2023-11-19T02:12:58+08:00" level=info msg="Loading eBPF programs and maps into the kernel..."
time="2023-11-19T02:12:58+08:00" level=info msg="The loading process takes about 120MB free memory, which will be released after loading. Insufficient memory will cause loading failure."
time="2023-11-19T02:13:13+08:00" level=info msg="Loaded eBPF programs and maps"
time="2023-11-19T02:13:13+08:00" level=info msg="Routing match set len: 1/64"
time="2023-11-19T02:13:13+08:00" level=warning msg="[Reload] Received reload signal; prepare to reload"
time="2023-11-19T02:13:21+08:00" level=info msg="Loading eBPF programs and maps into the kernel..."
time="2023-11-19T02:13:21+08:00" level=info msg="The loading process takes about 120MB free memory, which will be released after loading. Insufficient memory will cause loading failure."
time="2023-11-19T02:13:37+08:00" level=info msg="Loaded eBPF programs and maps"
time="2023-11-19T02:13:37+08:00" level=info msg="Routing match set len: 1/64"
time="2023-11-19T02:13:37+08:00" level=warning msg="[Reload] Received reload signal; prepare to reload"
time="2023-11-19T02:16:08+08:00" level=info msg="Loading eBPF programs and maps into the kernel..."
time="2023-11-19T02:16:08+08:00" level=info msg="The loading process takes about 120MB free memory, which will be released after loading. Insufficient memory will cause loading failure."
time="2023-11-19T02:16:24+08:00" level=info msg="Loaded eBPF programs and maps"
time="2023-11-19T02:16:24+08:00" level=info msg="Routing match set len: 1/64"
time="2023-11-19T02:16:24+08:00" level=warning msg="[Reload] Received reload signal; prepare to reload"
time="2023-11-19T02:17:24+08:00" level=info msg="Loading eBPF programs and maps into the kernel..."
time="2023-11-19T02:17:24+08:00" level=info msg="The loading process takes about 120MB free memory, which will be released after loading. Insufficient memory will cause loading failure."
time="2023-11-19T02:17:40+08:00" level=info msg="Loaded eBPF programs and maps"
time="2023-11-19T02:17:40+08:00" level=info msg="Routing match set len: 1/64"
time="2023-11-19T02:17:40+08:00" level=warning msg="[Reload] Received reload signal; prepare to reload"
time="2023-11-19T02:23:31+08:00" level=info msg="Loading eBPF programs and maps into the kernel..."
time="2023-11-19T02:23:31+08:00" level=info msg="The loading process takes about 120MB free memory, which will be released after loading. Insufficient memory will cause loading failure."
time="2023-11-19T02:23:47+08:00" level=info msg="Loaded eBPF programs and maps"
time="2023-11-19T02:23:47+08:00" level=info msg="Routing match set len: 1/64"
time="2023-11-19T02:23:47+08:00" level=warning msg="[Reload] Received reload signal; prepare to reload"

Expected Behavior

No response

Steps to Reproduce

正常使用中,不知为何就会出现这种情况。他会自动重载几次。偶尔2-3次,偶尔5-6次甚至更多。

Environment

  • Daed version:0.4.0RC1
  • OS (e.g cat /etc/os-release): OpenWrt 23.05.2 r23630-842932a63d / LuCI openwrt-23.05 branch git-23.306.39416-c86c256
  • Kernel (e.g. uname -a):rockchip/armv8
  • Others:Friendly NANOPi R4S

Anything else?

config只修改了日志等级和绑定接口,其余默认。dns和router默认。

@dae-prow
Copy link
Contributor

dae-prow bot commented Nov 18, 2023

Thanks for opening this issue!

@mzz2017
Copy link
Contributor

mzz2017 commented Nov 18, 2023

@YUNXIIHan 有人给dae发送SIGUSR1信号就会使得dae reload

@YUNXIIHan
Copy link
Author

@YUNXIIHan 有人给dae发送SIGUSR1信号就会使得dae reload
time="2023-11-19T02:50:05+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32
time="2023-11-19T02:50:05+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32
time="2023-11-19T02:50:05+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32
time="2023-11-19T02:50:05+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32
time="2023-11-19T02:50:19+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32
time="2023-11-19T02:50:19+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32
time="2023-11-19T02:50:22+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32
time="2023-11-19T02:50:22+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32
time="2023-11-19T02:50:22+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32
time="2023-11-19T02:50:22+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32
time="2023-11-19T02:51:38+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32
time="2023-11-19T02:51:38+08:00" level=warning msg="dangerous converting: may exceeds graphQL int32 range"

请问这个是正常的吗?

@YUNXIIHan
Copy link
Author

我是在正常的使用中,重载期间就断网,请问如何解决这个问题。谢谢。

@YUNXIIHan 有人给dae发送SIGUSR1信号就会使得dae reload

@QiuSimons
Copy link

QiuSimons commented Nov 23, 2023

route最上面加一条
l4proto(udp) && dport(443) -> block
或可解决。

btw,这貌似是arm独享的bug(x86似乎不加也不会reload,但也有可能是突发内存不足导致的
能告知你是几g版本的r4s么

@YUNXIIHan
Copy link
Author

YUNXIIHan commented Nov 25, 2023

route最上面加一条 l4proto(udp) && dport(443) -> block 或可解决。

btw,这貌似是arm独享的bug(x86似乎不加也不会reload,但也有可能是突发内存不足导致的 能告知你是几g版本的r4s么

4G内存。而且经常会重复错误提示握手失败。设备是R4S。查看设备监控发现,在重载时候,CPU会飙升到50%以上而且会循环3-4次后自动重启变好。

@QiuSimons
Copy link

route最上面加一条
l4proto(udp) && dport(443) -> block

route最上面加一条
l4proto(udp) && dport(443) -> block
你试试看先

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants