-
Notifications
You must be signed in to change notification settings - Fork 426
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
agent运行提示NO NETWORK IS available #142
Comments
检查并调整了server和agent的时钟,确认一致后还是不行,agent仍然提示无可用网络 |
Agent配置和证书更新了吗? |
我从server里把build生成的三个证书文件复制到agent里了,但是还是不行。是我证书和配置有问题吗?我是按照文档里的步骤配置的agent product.go和复制证书的
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年11月10日(星期三) 上午9:53
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [bytedance/Elkeid] agent运行提示NO NETWORK IS available (Issue #142)
Agent配置和证书更新了吗?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
生成证书时改elkeid.com这个域名了吗?如果修改了,也需要对应修改Agent中的Host。 |
telnet 一下 priLB中的端口和地址,看看通不通。 |
没有修改域名。telnet之后sd_host的8088端口显示connected to sd_host。 |
另外把sd服务机上生成的证书拷贝在agent端上也不行。我刚刚读了main.go文件,我在想,会不会是agent与github或者go的网站连接不好?我看import里站点似乎都没有通过proxy。。。
…------------------ 原始邮件 ------------------
发件人: "bytedance/Elkeid" ***@***.***>;
发送时间: 2021年11月10日(星期三) 上午10:37
***@***.***>;
***@***.******@***.***>;
主题: Re: [bytedance/Elkeid] agent运行提示NO NETWORK IS available (Issue #142)
telnet 一下 priLB中的端口和地址,看看通不通。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
先别配置sd 把agent_center的 IP和端口填写到 priLB里面 再试试看 |
发一下product.go文件吧 |
product.go这个应该是没问题的,你看一下: package connection import _ "embed" //go:embed client.key //go:embed client.crt //go:embed ca.crt func init() { |
我仔细看了一下,应该是跟go语言有关,您看一下相关代码: goroutine 10 [running]: |
和这个无关,import只影响编译的依赖。 |
重新clone了项目,重新build了server,然后将agent-center的conf目录中生成的证书复制到test目录下,在test目录下编译执行同样报no network。。。将新证书替换agent/transport/connection中的三个证书,agent目录下编译执行,依旧报错。。。 |
/Elkeid/agent# cd /etc/elkeid && /etc/elkeid/elkeid-agent &
[1] 15038
root@debian:~/Elkeid/agent# panic: No network is available
goroutine 23 [running]:
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00037c000, 0x0, 0x0, 0x0)
/root/go/pkg/mod/go.uber.org/zap@v1.16.0/zapcore/entry.go:234 +0x58d
go.uber.org/zap.(*SugaredLogger).log(0xc0000a83d8, 0x4, 0x0, 0x0, 0xc00032bfc0, 0x1, 0x1, 0x0, 0x0, 0x0)
/root/go/pkg/mod/go.uber.org/zap@v1.16.0/sugar.go:234 +0xf6
go.uber.org/zap.(*SugaredLogger).Panic(...)
/root/go/pkg/mod/go.uber.org/zap@v1.16.0/sugar.go:123
github.com/bytedance/Elkeid/agent/transport.Run()
/root/Elkeid/agent/transport/client.go:30 +0x488
created by main.main
/root/Elkeid/agent/main.go:75 +0xc05
^C
[1]+ 退出 2 cd /etc/elkeid && /etc/elkeid/elkeid-agent
The text was updated successfully, but these errors were encountered: