问题:升级docker服务,重启docker服务,nacos可以正常启动,相关配置也都还在。但是启动代码时提示server is DOWN now, please try again later!
查看access_log.2021-09-02.log 日志如下:发现app=unknow
0.11.25.205 - - [02/Sep/2021:14:46:30 +0800] "PUT /nacos/v1/ns/instance/beat?app=unknown&namespaceId=41ba0c0d-f13f-48a4-9ebf-7390dac6335c&port=8181&clusterName=DEFAULT&ip=10.11.25.205&serviceName=DEFAULT_GROUP%40%40hb-homepage&encoding=UTF-8 HTTP/1.1" 503 43 37 Nacos-Java-Client:v1.2.1 - 10.1.193.42 - - [02/Sep/2021:14:46:30 +0800] "GET /nacos/v1/cs/configs?dataId=alarm-unified.yml&group=DEFAULT_GROUP HTTP/1.1" 404 22 17 Java/1.8.0_111 - 10.1.193.30 - - [02/Sep/2021:14:46:31 +0800] "PUT /nacos/v1/ns/instance/beat?app=unknown&namespaceId=3a0e1249-fd7c-4fcb-b07f-9c209ce91fce&port=8112&clusterName=DEFAULT&ip=10.1.193.30&serviceName=DEFAULT_GROUP%40%40SFTP&encoding=UTF-8 HTTP/1.1" 503 43 3 Nacos-Java-Client:v1.2.1 - 10.1.193.30 - - [02/Sep/2021:14:46:31 +0800] "PUT /nacos/v1/ns/instance/beat?app=unknown&namespaceId=3a0e1249-fd7c-4fcb-b07f-9c209ce91fce&port=8112&clusterName=DEFAULT&ip=10.1.193.30&serviceName=DEFAULT_GROUP%40%40SFTP&encoding=UTF-8 HTTP/1.1" 503 43 11 Nacos-Java-Client:v1.2.1 - ?
原因:nacos下dada文件则保存了用户自定义的相关配置信息。其中protocol文件夹存缓存电脑Ip等信息。因为升级容器服务,元数据发生变化,所以程序不能正常启动 解决: 将复制过去的protocol文件夹删除掉,重新启动nacos ,OK! ?
|