Closed gaoxujie closed 3 years ago
@gaoxujie 麻烦贴一下 ss -s
命令的输出结果.
同时把panic的结果,贴完整一些。
@gaoxujie 麻烦贴一下
ss -s
命令的输出结果。同时把恐慌的结果,贴完整一些。
ss -s 结果附在主题 panic的结果 由于安装open-falcon监控的服务器已经删除了,无法贴出,个人感觉open-falcon监控可能更适合会go语言的公司来进行使用。
@gaoxujie 你的这个case 和 https://github.com/open-falcon/falcon-plus/issues/747 是相同的。ss -s命令的输出发生了变化。
可以从falcon-plus源码重新编译,就能解决了。
2022/03/16 20:32:54 cfg.go:142: read config file: /opt/agent/config/cfg.json successfully
2022/03/16 20:32:54 http.go:88: listening :1988
2022/03/16 20:33:54 gpu.go:31: Initialize error: could not load NVML library
2022/03/16 20:33:54 var.go:102: =>
goroutine 40 [running]: github.com/open-falcon/falcon-plus/vendor/github.com/toolkits/nux.SocketStatSummary(0xc000030a00, 0xc00012e480, 0x48) /home/work/gopath/src/github.com/open-falcon/falcon-plus/vendor/github.com/toolkits/nux/ss_s.go:49 +0x766 github.com/open-falcon/falcon-plus/modules/agent/funcs.SocketStatSummaryMetrics(0x0, 0x0, 0x0) /home/work/gopath/src/github.com/open-falcon/falcon-plus/modules/agent/funcs/sockstat.go:24 +0x37 github.com/open-falcon/falcon-plus/modules/agent/cron.collect(0x3c, 0xc00010e110, 0x2, 0x2) /home/work/gopath/src/github.com/open-falcon/falcon-plus/modules/agent/cron/collector.go:63 +0x14d created by github.com/open-falcon/falcon-plus/modules/agent/cron.Collect /home/work/gopath/src/github.com/open-falcon/falcon-plus/modules/agent/cron/collector.go:44 +0xbf
重新编译会出现:
[root@VM-75-40-centos falcon-plus]# make all
if [ agent = "gateway" ]; then \
GO111MODULE=on go build -ldflags "-X main.BinaryName=gateway -X main.GitCommit=git rev-parse --short HEAD
-X main.Version=0.3.x" \
-o bin/gateway/falcon-gateway ./modules/transfer ; \
else \
GO111MODULE=on go build -ldflags "-X main.BinaryName=agent -X main.GitCommit=git rev-parse --short HEAD
-X main.Version=0.3.x" \
-o bin/agent/falcon-agent ./modules/agent ; \
fi
warning: GOPATH set to GOROOT (/opt/) has no effect
go: github.com/masato25/resty@v0.4.2-0.20161209040832-927c0e7d74a0: invalid pseudo-version: git fetch --unshallow -f origin in /opt/pkg/mod/cache/vcs/a170e0dcfcd51fa225b8818b48fff65c0d71d3760885cac88f29df7142d9a5a8: exit status 128:
fatal: git fetch-pack: expected shallow list
make: *** [agent] Error 1
操作系统debian 10.9 启动agent后一段时间报错: panic: runtime error: index out of range
goroutine 1 [running]: github.com/open-falcon/falcon-plus/vendor/github.com/toolkits/nux.SocketStatSummary(0xc00010e2a0, 0xc0002d64d3, 0xf)
有大佬下载最新版。0.3版本还遇到这个问题的吗,是怎么解决的,已经尝试安装0.1-3版本都还是一样会报错
ss 结果: root@debian:/home/data/backup# ss -s Total: 113 TCP: 10 (estab 1, closed 1, orphaned 0, timewait 0)
Transport Total IP IPv6 RAW 0 0 0
UDP 2 1 1
TCP 9 5 4
INET 11 6 5
FRAG 0 0 0
root@debian:/home/data/backup# cat /etc/debian_version 10.0 root@debian:/home/data/backup# uname -a Linux debian 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux