daeuniverse / daed

daed, a modern dashboard with dae.

Home Page:https://daeuniverse.github.io/daed/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

LockRim opened this issue · comments

Checks

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

Current Behavior

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

Expected Behavior

重启后正常使用

Steps to Reproduce

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

Environment

  • Daed version: v0.7.0rc1.1
  • OS (e.g cat /etc/os-release): ArchLinux
  • Kernel (e.g. uname -a): 6.9.5-arch1-1

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'.

Thanks for opening this issue!

我使用最新版(0.7.0rc1.1-1)也遇到这个问题,请问为什么关闭 issue 呢,是有解决方法了吗?

我使用最新版(0.7.0rc1.1-1)也遇到这个问题,请问为什么关闭 issue 呢,是有解决方法了吗?

https://github.com/daeuniverse/daed/blob/main/docs/getting-started.md#how-to-run
1
看起来像是某种限制,我最后选择换软件了

我使用最新版(0.7.0rc1.1-1)也遇到这个问题,请问为什么关闭 issue 呢,是有解决方法了吗?

实际上在关闭代理后重启也会出现该错误,有必要我就接着open了

commented

@LockRim https://github.com/daeuniverse/dae/blob/4717fa2cdcc5f8925c1759cbabf5cb0e2eaf7ed7/control/control_plane_core.go#L548

这里的 With 的 err 没有被处理,所以日志没有返回正确的报错内容,还需要修改后看看根因是什么

#470 (review)

我的问题在于同时启动了dae和daed,关闭dae即可