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

nacos集群有用户名密码配置文件该如何配置? #8

Open
ssy-githup opened this issue Nov 15, 2021 · 0 comments
Open

nacos集群有用户名密码配置文件该如何配置? #8

ssy-githup opened this issue Nov 15, 2021 · 0 comments

Comments

@ssy-githup
Copy link

使用源码中的spring-cloud-nacos-eureka-proxy-example工程同步服务到nacos时:
没有找到对用户密码进行设置的地方,请问nacos用户名密码该如何配置呢
image
由于无法进行配置工程启动日志如下:
`
2021-11-15 16:00:03.421 ERROR 2901 --- [cosSynchronizer] net.nacos.eureka.sync.NacosSynchronizer : synchronize service error

java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/service/list after all servers([nacos-jxs-aftermarket.tx-prod-xh.bitautotech.com:80]) tried: failed to req API:nacos-jxs-aftermarket.tx-prod-xh.bitautotech.com:80/nacos/v1/ns/service/list. code:403 msg:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Nov 15 16:00:03 CST 2021
There was an unexpected error (type=Forbidden, status=403).
unknown user!

at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:465) ~[nacos-client-1.1.3.jar!/:na]
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:431) ~[nacos-client-1.1.3.jar!/:na]
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:377) ~[nacos-client-1.1.3.jar!/:na]
at com.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:359) ~[nacos-client-1.1.3.jar!/:na]
at com.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:335) ~[nacos-client-1.1.3.jar!/:na]
at com.alibaba.nacos.client.naming.NacosNamingService.getServicesOfServer(NacosNamingService.java:442) ~[nacos-client-1.1.3.jar!/:na]
at net.nacos.eureka.sync.NacosSynchronizer.syncService(NacosSynchronizer.java:50) ~[spring-cloud-nacos-eureka-proxy-1.0.1.jar!/:na]
at net.nacos.eureka.sync.NacosSynchronizer.lambda$init$1(NacosSynchronizer.java:42) ~[spring-cloud-nacos-eureka-proxy-1.0.1.jar!/:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_191]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[na:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_191]
`

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

1 participant