Giter Site home page Giter Site logo

Comments (13)

LLZachary avatar LLZachary commented on August 23, 2024

检查并调整了server和agent的时钟,确认一致后还是不行,agent仍然提示无可用网络

from elkeid.

Percivalll avatar Percivalll commented on August 23, 2024

Agent配置和证书更新了吗?

from elkeid.

LLZachary avatar LLZachary commented on August 23, 2024

from elkeid.

Percivalll avatar Percivalll commented on August 23, 2024

生成证书时改elkeid.com这个域名了吗?如果修改了,也需要对应修改Agent中的Host。

from elkeid.

Percivalll avatar Percivalll commented on August 23, 2024

telnet 一下 priLB中的端口和地址,看看通不通。

from elkeid.

LLZachary avatar LLZachary commented on August 23, 2024

没有修改域名。telnet之后sd_host的8088端口显示connected to sd_host。

from elkeid.

LLZachary avatar LLZachary commented on August 23, 2024

from elkeid.

Percivalll avatar Percivalll commented on August 23, 2024

先别配置sd 把agent_center的 IP和端口填写到 priLB里面 再试试看

from elkeid.

Percivalll avatar Percivalll commented on August 23, 2024

发一下product.go文件吧

from elkeid.

LLZachary avatar LLZachary commented on August 23, 2024

product.go这个应该是没问题的,你看一下:
连个地址和端口在agent端都可以telnet通

package connection

import _ "embed"

//go:embed client.key
var ClientKey []byte

//go:embed client.crt
var ClientCert []byte

//go:embed ca.crt
var CaCert []byte

func init() {
sd["sd"] = "10.1.112.95:8088"
priLB["ac"] = "10.1.112.26:6751"
//这里"elkeid.com"需要与生成证书时使用的域名一致,如果生成时不是默认配置需要在这里一起修改
setDialOptions(CaCert, ClientKey, ClientCert, "elkeid.com")
}

from elkeid.

LLZachary avatar LLZachary commented on August 23, 2024

发一下product.go文件吧

我仔细看了一下,应该是跟go语言有关,您看一下相关代码:

goroutine 10 [running]:
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0003600c0, 0x0, 0x0, 0x0)
/root/go/pkg/mod/go.uber.org/[email protected]/zapcore/entry.go:234 +0x58d
go.uber.org/zap.(*SugaredLogger).log(0xc0000103e8, 0x4, 0x0, 0x0, 0xc000409fc0, 0x1, 0x1, 0x0, 0x0, 0x0)
/root/go/pkg/mod/go.uber.org/[email protected]/sugar.go:234 +0xf6
go.uber.org/zap.(*SugaredLogger).Panic(...)
/root/go/pkg/mod/go.uber.org/[email protected]/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

from elkeid.

Percivalll avatar Percivalll commented on August 23, 2024

和这个无关,import只影响编译的依赖。
https://github.com/bytedance/Elkeid/blob/main/agent/test/main.go
替换证书,修改地址,编译,然后执行,看有无报错。

from elkeid.

LLZachary avatar LLZachary commented on August 23, 2024

重新clone了项目,重新build了server,然后将agent-center的conf目录中生成的证书复制到test目录下,在test目录下编译执行同样报no network。。。将新证书替换agent/transport/connection中的三个证书,agent目录下编译执行,依旧报错。。。

from elkeid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.