美文网首页
Apollo报错

Apollo报错

作者: mirroru | 来源:发表于2020-11-26 17:20 被阅读0次

使用官方提供的docker-compose.yml启动时报

   | 2020-11-27T08:42:30.080749Z 4 
[Note] Unknown database 'ApolloConfigDB'
apollo-quick-start    | Waiting for config service startup........................
apollo-quick-start    | Config service failed to start in 120 seconds! Please check ./service/apollo-service.log for more information.

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

连接apollo报错

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]],暴露出的是个容器内部的地址

Docker中配置一个可被外部访问的注册中心

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

相关文章

网友评论

      本文标题:Apollo报错

      本文链接:https://www.haomeiwen.com/subject/ruoxwktx.html