- A+
所属分类:Sentinel
之前Sentinel在本地跑没问题,今天放到centos服务器上跑,监控画面和簇点链路画面一直为空白,具体报错如下:
2019-08-02 14:31:49.916 ERROR 5028 --- [pool-2-thread-1] c.a.c.s.dashboard.metric.MetricFetcher : fetch metric http://169.254.131.229:8720/metric?startTime=1564727498000&endTime=1564727504000&refetch=false errorat sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_181]at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_181]at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:171) [httpcore-nio-4.4.6.jar!/:4.4.6]at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:145) [httpcore-nio-4.4.6.jar!/:4.4.6]at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:348) [httpcore-nio-4.4.6.jar!/:4.4.6]at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:194) [httpasyncclient-4.1.3.jar!/:4.1.3]at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) [httpasyncclient-4.1.3.jar!/:4.1.3]at java.lang.Thread.run(Thread.java:748) [na:1.8.0_181]
报错信息很清楚,没找到主机。。但是为什么会找不到主机呢?一看这个ip我发现不是我本机的ip。。cmd->ipconfig/all发现,本机居然有几个以太网适配器 以太网。。。到控制面板里把多的禁用掉后,再跑发现还是报同样的错,只是报错信息里ip变了,但ip还是不对,原来它找的是VMware Virtual Ethernet Adapter for VMnet8虚拟机的ip。。。好吧,全禁用掉。重启Sentinel服务后,问题解决。