主机监控信息上报server错误: Post "http://192.168.1.2:9999/wgcloud/agentGo/minTask": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[wgcloud-agent]2023/03/11 09:35:51 daemonUtil.go:74: Get "http://192.168.1.2:9999/wgcloud/license/getDaemon": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/03/11 09:35:51 daemonUtil.go:53: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/03/11 09:35:51 WgcloudAgent.go:250: 防篡改校验失败: 1 [wgcloud-agent]2023/03/11 09:36:01 licenseUtil.go:34: Get "http://192.168.1.2:9999/wgcloud/license/get": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/03/11 09:36:01 licenseUtil.go:20: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/03/11 09:36:01 WgcloudAgent.go:389: Agent started successfully. v3.4.5 . ©2017-2023 www.wgstart.com . All rights reserved. [wgcloud-agent]2023/03/11 09:36:01 WgcloudAgent.go:390: serverUrl: http://192.168.1.2:9999/wgcloud [wgcloud-agent]2023/03/11 09:36:01 WgcloudAgent.go:391: bindIp: 192.168.1.9 [wgcloud-agent]2023/03/11 09:36:01 WgcloudAgent.go:392: 如果出现 [ GetHostTemperatures err:] 错误信息,请忽略即可,它没有影响,这只是某些平台不支持获取CPU温度 [wgcloud-agent]2023/03/11 09:36:15 WgcloudAgent.go:109: 主机监控信息上报server错误: Post "http://192.168.1.2:9999/wgcloud/agentGo/minTask": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/03/11 09:36:15 WgcloudAgent.go:43: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/03/11 09:36:25 WgcloudAgent.go:147: 主机磁盘信息上报server错误: Post "http://192.168.1.2:9999/wgcloud/agentDiskGo/minTask": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/03/11 09:36:25 WgcloudAgent.go:121: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/03/11 09:36:25 WgcloudAgent.go:121: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/03/11 09:38:15 WgcloudAgent.go:109: 主机监控信息上报server错误: Post "http://192.168.1.2:9999/wgcloud/agentGo/minTask": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/03/11 09:38:15 WgcloudAgent.go:43: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/03/11 09:40:15 WgcloudAgent.go:109: 主机监控信息上报server错误: Post "http://192.168.1.2:9999/wgcloud/agentGo/minTask": dial tcp 192.168.1.2:9999: i/o timeout (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/03/11 09:40:15 WgcloudAgent.go:43: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/03/11 09:41:13 appUtil.go:59: 请求进程集合信息错误 Post "http://192.168.1.2:9999/wgcloud/appInfo/agentList": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/03/11 09:41:13 appUtil.go:45: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/03/11 09:41:13 WgcloudAgent.go:303: 请求server监控进程返回结果: [wgcloud-agent]2023/03/11 09:41:23 dockerUtil.go:77: 请求docker集合信息错误 Post "http://192.168.1.2:9999/wgcloud/dockerInfo/agentList": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/03/11 09:41:23 dockerUtil.go:63: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/03/11 09:41:23 WgcloudAgent.go:305: 请求server监控docker返回结果: [wgcloud-agent]2023/03/11 09:41:33 portUtil.go:63: 请求端口集合信息错误 Post "http://192.168.1.2:9999/wgcloud/portInfo/agentList": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/03/11 09:41:33 portUtil.go:49: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/03/11 09:41:33 WgcloudAgent.go:307: 请求server监控端口返回结果: [wgcloud-agent]2023/03/11 09:41:43 fileWarnUtil.go:88: 请求日志监控文件信息错误 Post "http://192.168.1.2:9999/wgcloud/fileWarnInfo/agentList": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/03/11 09:41:43 fileWarnUtil.go:74: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/03/11 09:41:43 WgcloudAgent.go:309: 请求server监控日志返回结果: [wgcloud-agent]2023/03/11 09:41:53 fileSafeUtil.go:64: 请求文件防篡改信息错误 Post "http://192.168.1.2:9999/wgcloud/fileSafe/agentList": dial tcp 192.168.1.2:9999: i/o timeout (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/03/11 09:41:53 fileSafeUtil.go:50: runtime error: invalid memory address or nil pointer dereference ......
[wgcloud-agent]2023/12/08 21:30:15 WgcloudAgent.go:84: 主机监控信息上报server错误: Post "http://192.168.1.2:9999/agentGo/minTask": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/12/08 21:30:15 WgcloudAgent.go:48: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/12/08 21:30:35 WgcloudAgent.go:135: 主机监控Ext信息上报server错误: Post "http://192.168.1.2:9999/agentGo/minTaskHostExt": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/12/08 21:30:35 WgcloudAgent.go:99: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/12/08 21:30:35 hostUtil.go:182: GetHostUsers err: not implemented yet [wgcloud-agent]2023/12/08 21:30:55 WgcloudAgent.go:221: 主机磁盘信息上报server错误: Post "http://192.168.1.2:9999/agentDiskGo/minTask": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/12/08 21:30:55 WgcloudAgent.go:185: runtime error: invalid memory address or nil pointer dereference [wgcloud-agent]2023/12/08 21:31:15 macAddressUtil.go:39: 主机mac信息上报server错误: Post "http://192.168.1.2:9999/agentHostMacGo/minTask": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [wgcloud-agent]2023/12/08 21:31:15 macAddressUtil.go:20: runtime error: invalid memory address or nil pointer dereference ......
agent日志输出以上类似的错误一般两种可能:
(1) agent主机ping不通server主机 ,这个是网络原因,我们可以在agent主机输入如下指令测试能否ping通server主机
ping [server主机IP]
(2) server主机的9999端口没开放,被防火墙或安全软件拦截了,开启端口就好了,我们可以通过下面指令来测试端口是否能连通
telnet [server主机IP] 9999
一般就是如上两种情况,还有一种可能是server就没启动成功