Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法获取公共namespace配置 #1776

Closed
baoshuai02 opened this issue Dec 13, 2018 · 9 comments
Closed

无法获取公共namespace配置 #1776

baoshuai02 opened this issue Dec 13, 2018 · 9 comments

Comments

@baoshuai02
Copy link

在docker中部署,public namespace配置无法获取,创建这个namespace的appid可以获取,其它appid都无法获取

@nobodyiam
Copy link
Member

看一下config db中app namespace里面是否有正确的记录?

@baoshuai02
Copy link
Author

具体原因没有找到, 只是重启了下docker容器就可以获取了, 怀疑是有什么缓存, 谢谢解答

@kingdom908
Copy link

看一下config db中app namespace里面是否有正确的记录?

同样的问题,我在物理机部署也是获取不到公有的namespace配置,只能获取到私有的,另外config db中app namespace也有正确的记录

@nobodyiam
Copy link
Member

访问一下 http://{config-service-url}:{port}/configs/xxxxxx/default/{公共namespace} 看看返回什么?

另外,如果是1.2.0版本,portal上会检测是否app namespace有问题的。

@FuleChu
Copy link

FuleChu commented Jan 18, 2019

访问一下 http://{config-service-url}:{port}/configs/xxxxxx/default/{公共namespace} 看看返回什么?

另外,如果是1.2.0版本,portal上会检测是否app namespace有问题的。

我也遇到这个问题,版本1.1.1,就是公共配置读取不到,看报错信息好像是把公共的namespace当作当前连接的appid下的一个私有的namespace:
Sync config failed, will retry. Repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository, reason: Load Apollo Config failed - appId: welfare-atomic-card, cluster: default, namespace: welfare2.image-config, url: http://x'x'x'x:xxxxxxx/configs/welfare-atomic-card/default/welfare2.image-config?ip=10.1.xxx.xx [Cause: [status code: 404] Could not find config for namespace - appId: welfare-atomic-card, cluster: default, namespace: welfare2.image-config, please check whether the configs are released in Apollo!]

@nobodyiam
Copy link
Member

可以升级到1.2.0版本,portal上会检测是否app namespace有问题的。

@nobodyiam
Copy link
Member

case先关闭了,如还有问题,可以提供更多信息,或进群交流。

@cypggs
Copy link

cypggs commented Jan 15, 2020

可以升级到1.2.0版本,portal上会检测是否app namespace有问题的。

返回404,很奇怪,删除后也不能新建立,提示已经存在;
后来在管理页面那边删除,再重新建立就可以获取了。

@ronaldo-bo
Copy link

有时删掉重建也没用,可以试试重启apollo configservice,我们这样解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants