apolloconfig / apollo

Apollo is a reliable configuration management system suitable for microservice configuration management scenarios.
https://www.apolloconfig.com
Apache License 2.0
29.06k stars 10.2k forks source link

Could not load configurations with appId: webhost, clusterName: default, namespace: application #3015

Closed MikyChow closed 4 years ago

MikyChow commented 4 years ago

apollo访问配置文件报404错误.

  1. 配置已经发布
  2. appid正确 3.url: http://106.54.227.205:8080/configs/webhost/default/application?ip=192.168.28.231 image image
nobodyiam commented 4 years ago

报404的namespace是db

MikyChow commented 4 years ago

多谢回复,因为我以为时namespace的问题,所以多弄了几个namespace,所以图片穿错了, 而且即使是db的namespace也应该有值才对吧 image

nobodyiam commented 4 years ago

你是在用Demo环境?但是这个环境并没有webhost这个appId

http://106.54.227.205

MikyChow commented 4 years ago

你是在用Demo环境?但是这个环境并没有webhost这个appId

http://106.54.227.205

发现问题了,是以为我没有指定MetaServer导致的,但是我这样配置难道不是应该用Dev的MetaServer吗? image

另外由于我是K8s部署,即使我指定了MetaServer,返回的也是集群内ConfigServer的地址,我修改devapolloconfigdb.serverconfig的eureka.service.ur依然无效呢.

nobodyiam commented 4 years ago

可以参考4.3 如何跳过meta service的服务发现

MikyChow commented 4 years ago

可以参考4.3 如何跳过meta service的服务发现

解决了,谢谢