Comments (3)
Is the connection status of the client ESTABLISHED?
from nacos.
@mytang0 The data that SDK gets maybe is cached data. so need the way to know the data.
from nacos.
When the Nacos service hangs or there is a problem with the network connection, some corresponding logs will be recorded in "${user.home}/logs/nacos/".
config.log
# Recording client failed to get config from server
01 2018-12-26 19:48:29.222 WARN [main :c.a.n.c.c.NacosConfigService] [fixed-localhost_8848] [] [] [get-config] get from server error, dataId=test, group=nacos, tenant=, msg=ErrCode:500,ErrMsg:no available server
# Recording client used local cached data
01 2018-12-26 19:48:29.223 WARN [main :c.a.n.c.c.NacosConfigService] [fixed-localhost_8848] [] [] [get-config] get snapshot ok, dataId=test, group=nacos, tenant=, config=
# Recording client failed to listen config from server
01 2018-12-26 19:48:29.221 ERROR [main :c.a.n.c.c.i.ClientWorker] [fixed-localhost_8848] [] [NACOS-XXXX] [sub-server] get server config exception, dataId=test, group=nacos, tenant=, msg=java.net.ConnectException: no available server
01 2018-12-26 19:48:29.239 ERROR [com.alibaba.nacos.client.Worker.longPullingfixed-localhost_8848:c.a.n.c.c.i.ServerHttpAgent] [] [] [NACOS ConnectException] currentServerAddr:localhost:8848
01 2018-12-26 19:49:29.442 ERROR [com.alibaba.nacos.client.Worker.longPullingfixed-localhost_8848:c.a.n.c.c.i.ClientWorker] [fixed-localhost_8848] [] [NACOS-XXXX] [check-update] get changed dataId exception, msg=java.net.ConnectException: no available server
naming.log
# Recording client failed to update service info from server
01 2018-12-26 19:50:49.976 WARN [com.alibaba.nacos.client.naming.updater:c.a.n.c.naming] [] [] [] failed to request http://localhost:8848/nacos/v1/ns/api/srvIPXT?dom=test&clientIP=30.5.125.77&udpPort=65117&encoding=UTF-8& from 127.0.0.1
01 2018-12-26 19:50:49.977 ERROR [com.alibaba.nacos.client.naming.updater:c.a.n.c.naming] [] [] [NA] failed to request
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
If you want to output logs to stdout, you can configure the log configuration file (logback.xml) as follows:
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<Pattern>%date %level %msg%n%n</Pattern>
<charset>UTF-8</charset>
</encoder>
</appender>
<logger name="com.alibaba.nacos.client.config.NacosConfigService">
<appender-ref ref="STDOUT"/>
<level value="WARN"/>
</logger>
<logger name="com.alibaba.nacos.client.config.impl.ClientWorker">
<appender-ref ref="STDOUT"/>
<level value="WARN"/>
</logger>
from nacos.
Related Issues (20)
- 单例模式启动, 服务启动报jarft错误“No leader for raft group naming_persistent_service” HOT 5
- 单例模式启动, 服务启动报jarft错误“No leader for raft group naming_persistent_service” HOT 1
- Nacos-client missing accessToken sometime.
- 使用nacos-server:v2.4.0.1升级到nacos-server:v2.4.1版本启动报错 HOT 5
- Nacos 2.4.1升级报错 HOT 1
- 两个中心共用同一个mysql库,为什么在其中一个中心nacos控制台上进行nacos配置中心的配置,在另一个中心的nacos控制台里没刷出来这个更新? HOT 8
- nacos2.4.1启动错误(nacos startup error) HOT 1
- flutter app build error HOT 1
- Add nacos server login password complexity HOT 2
- [Bug] Watch the wrong application.properties file when starting up the nacos server
- 如果nacos集群所有节点宕机,影响是? HOT 2
- spring boot profile配置问题 HOT 5
- nacos2.4.1较大概率不进行raft选主 HOT 4
- nacos 2.3.2 配置tls无法生效
- 2.3.2版本如何给console设置https HOT 2
- nacos管理端界面输入框输入内容只要包括 [] 中的一个,查询会报HTTP Status 400 – Bad Request错误 HOT 2
- README.md
- Hi
- 配置中心添加appname级别权限控制 HOT 3
- nacos集成ldap怎么配置只允许某一个组登录 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nacos.