daeuniverse / daed

daed, a modern dashboard with dae.
https://daeuniverse.github.io/daed/
MIT License
428 stars 50 forks source link

[Bug Report] 设置开机自启后无法使用 #452

Open LockRim opened 2 weeks ago

LockRim commented 2 weeks ago

Checks

Current Behavior

设置开机自启重启后无法使用 右上角开关点击后进程报错关闭

Expected Behavior

重启后正常使用

Steps to Reproduce

sudo systemctl enable --now daed.service 设置开机自启动,后重启 无法连接代理,此时点击右上角开关,进程报错关闭 需要重启进程才能继续使用

Environment

Anything else?

在点击开关前,浏览网页

6月 18 23:33:17 myarch daed[1030]: time="2024-06-18T23:33:17+08:00" level=warning msg="dangerous converting: m
ay exceeds graphQL int32 range" name=SoMarkFromDae type=uint32

以下是点击开关后的报错

❯ sudo systemctl status daed.service
× daed.service - daed is a integration solution of dae, API and UI.
     Loaded: loaded (/usr/lib/systemd/system/daed.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Tue 2024-06-18 23:33:18 CST; 1min 14s ago
   Duration: 56.188s
 Invocation: dfc91295ac304fdbb5c898b15f55de9d
       Docs: https://github.com/daeuniverse/daed
    Process: 1030 ExecStart=/usr/bin/daed run -c /etc/daed/ (code=exited, status=1/FAILURE)
   Main PID: 1030 (code=exited, status=1/FAILURE)

6月 18 23:33:18 myarch daed[1030]: time="Jun 18 23:33:18" level=info msg="Waiting for network..."
6月 18 23:33:18 myarch daed[1030]: time="Jun 18 23:33:18" level=info msg="Network online."
6月 18 23:33:18 myarch daed[1030]: time="Jun 18 23:33:18" level=info msg="Loaded eBPF programs and maps"
6月 18 23:33:18 myarch daed[1030]: time="Jun 18 23:33:18" level=info msg="Bind to LAN: enp0s20f0u2u4c2"
6月 18 23:33:18 myarch daed[1030]: time="Jun 18 23:33:18" level=info msg="Bind to WAN: enp0s20f0u2u4c2"
6月 18 23:33:18 myarch daed[1030]: time="Jun 18 23:33:18" level=error msg="[Reload] Failed to reload; try to roll back configuration" err="bindDaens: cannot attach ebpf object to filter ingress: failed to run func in dae netns: no such device"
6月 18 23:33:18 myarch daed[1030]: time="Jun 18 23:33:18" level=info msg="Loaded eBPF programs and maps"
6月 18 23:33:18 myarch daed[1030]: time="Jun 18 23:33:18" level=fatal msg="[Reload] Failed to roll back configuration" err="bindDaens: cannot attach ebpf object to filter ingress: failed to run func in dae netns: no such device"
6月 18 23:33:18 myarch systemd[1]: daed.service: Main process exited, code=exited, status=1/FAILURE
6月 18 23:33:18 myarch systemd[1]: daed.service: Failed with result 'exit-code'.
dae-prow[bot] commented 2 weeks ago

Thanks for opening this issue!