Apollo报错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Apollo报错相关的知识,希望对你有一定的参考价值。

参考技术A 使用官方提供的docker-compose.yml启动时报

原因为未放置sql目录下的两个文件
apolloconfigdb.sql apolloportaldb.sql

WARN com.ctrip.framework.apollo.internals.DefaultMetaServerProvider - Could not find meta server address, because it is not available in neither (1) JVM system property 'apollo.meta', (2) OS env variable 'APOLLO_META' (3) property 'apollo.meta' from server.properties nor (4) property 'apollo.meta' from app.properties

可在JVM属性(VM options)中设置,例
-Denv=dev -Dapollo.meta= http://localhost:8080

使用官方的docker-compose文件,启动后外部的client无法访问,Load Apollo Config failed - appId: fizz-gateway, cluster: default, namespace: application, url: http://172.24.0.2:8080/configs/fizz-gateway/default/application?ip=192.168.8.100 [Cause: Could not complete get operation [Cause: connect timed out]],暴露出的是个容器内部的地址

可参考 https://www.cnblogs.com/zklight/p/12974872.html

apollo配置服务器启动报错

参考技术A apollo-configservice 启动后配置中心报错,查看日志如下:

2022-01-13 10:51:11.685 ERROR 16843 --- [main] com.netflix.discovery.DiscoveryClient : DiscoveryClient_APOLLO-CONFIGSERVICE/config.facecenter.sensing.com:apollo-configservice:8080 - was unable to refresh its cache! status = Cannot execute request on any known server

发现是8080端口被占用,将占用的进程kill掉可正常启动。

以上是关于Apollo报错的主要内容,如果未能解决你的问题,请参考以下文章

Apollo报错

Apollo使用报错: Cause: [status code: 404].......

Apollo 客户端查询报错:“Network error: Failed to fetch”如何排查?

携程apollo源码在idea中启动报错TransportException: Cannot execute request on any known server

apache-apollo-1.7.1中的mybroker下的data文件里面的内容能够清理吗

Apollo启动报Config service failed to start in 120 seconds! Please check ./service/apollo-ser