[Bug Report] Hysteria2 节点的解析会发生在加载ebpf程序之后
Closed this issue · 2 comments
LostAttractor commented
Checks
- I have searched the existing issues
- I have read the documentation
- Is it your first time sumbitting an issue
Current Behavior
root@router ~ [1]# journalctl -fu dae
Sep 16 19:23:53 router systemd[1]: Starting dae Service...
Sep 16 19:23:53 router dae[2500]: level=info msg="Include config files: [/run/secrets-rendered/config.dae]"
Sep 16 19:23:53 router dae[2500]: level=info msg="Waiting for network..."
Sep 16 19:23:59 router dae[2500]: level=info msg="Network online."
Sep 16 19:23:59 router dae[2500]: level=info msg="Fetching subscriptions..."
Sep 16 19:24:08 router dae[2500]: level=info msg="Loading eBPF programs and maps into the kernel..."
Sep 16 19:24:08 router dae[2500]: level=info msg="The loading process takes about 120MB free memory, which will be released after loading. Insufficient memory will cause loading failure."
Sep 16 19:24:09 router dae[2500]: level=info msg="Loaded eBPF programs and maps"
Sep 16 19:24:09 router dae[2500]: level=info msg="Bind to LAN: lan"
Sep 16 19:24:09 router dae[2500]: level=info msg="Bind to WAN: enp1s0f1np1"
Sep 16 19:24:49 router dae[2500]: level=info msg="failed to parse node: create hysteria2://gov@gov.cn:23334: lookup gov.cn: device or resource busy"
由于ebpf程序已经加载,但group还没有ready,这时解析节点域名的数据包将不可能发出
会卡很久直到超时失败后打印日志,此时如果有其他可用节点则可以继续启动
此外,如果在此问题发生时通过 systemctl stop dae
停止dae,dae不会删除已经加载的bpf程序
Expected Behavior
在加载bpf程序前解析节点
Steps to Reproduce
绑定 wan_interface
使用通过域名连接的hysteria2节点
启动 dae
Environment
- Dae version (use
dae --version
):
dae version unstable-2024-09-08.9f04adf
go runtime go1.22.7 linux/amd64
Copyright (c) 2022-2024 @daeuniverse
License GNU AGPLv3 <https://github.com/daeuniverse/dae/blob/main/LICENSE>
- OS (e.g
cat /etc/os-release
):
ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.11.20240913.eb87863"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.11 (Vicuna)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.11 (Vicuna)"
VERSION_CODENAME=vicuna
VERSION_ID="24.11"
- Kernel (e.g.
uname -a
):
6.10.7-xanmod1
- Others:
Anything else?
No response
dae-prow commented
Thanks for opening this issue!
LostAttractor commented
原因未知,但似乎已无法在最新 main 分支复现