You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
I have a springboot application that uses druid components and nacos components, nacos has used authentication. Duird-related configurations are configured in the properties and nacos. Druid is configured with multiple data sources. Resources directory is like this:
When the application is running, modify the nacos configuration, such as modifying the max-active configuration of the database in the druid configuration, and then restart the application almost simultaneously. The application has two nodes. One node is normal and the other node keeps reporting errors. The errors are as follows:
ErrCode:403, ErrMsg:http error, code=403,dataId=cp-index-ob.properties,group=cp,tenant=release at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.queryConfig(ClientWorker.java:1035) at com.alibaba.nacos.client.config.impl.ClientWorker.getServerConfig(ClientWorker.java:407) at com.alibaba.nacos.client.config.NacosConfigService.getConfigInner(NacosConfigService.java:166) at com.alibaba.nacos.client.config.NacosConfigService.getConfig(NacosConfigService.java:94) at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.loadNacosData(NacosPropertySourceBuilder.java:85) at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.build(NacosPropertySourceBuilder.java:73) at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosPropertySource(NacosPropertySourceLocator.java:199) at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosDataIfPresent(NacosPropertySourceLocator.java:186) at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadApplicationConfiguration(NacosPropertySourceLocator.java:149) at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.locate(NacosPropertySourceLocator.java:103) at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:52) at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:47) at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:101) at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:626) at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:370) at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) at org.springframework.cloud.context.refresh.ContextRefresher.addConfigFilesToEnvironment(ContextRefresher.java:113) at org.springframework.cloud.context.refresh.ContextRefresher.refreshEnvironment(ContextRefresher.java:93) at org.springframework.cloud.context.refresh.ContextRefresher.refresh(ContextRefresher.java:85) at org.springframework.cloud.endpoint.event.RefreshEventListener.handle(RefreshEventListener.java:72) at org.springframework.cloud.endpoint.event.RefreshEventListener.onApplicationEvent(RefreshEventListener.java:61) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361) at com.alibaba.cloud.nacos.refresh.NacosContextRefresher$1.innerReceive(NacosContextRefresher.java:133) at com.alibaba.nacos.api.config.listener.AbstractSharedListener.receiveConfigInfo(AbstractSharedListener.java:40) at com.alibaba.nacos.client.config.impl.CacheData$1.run(CacheData.java:312) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750)
Expected behavior
A clear and concise description of what you expected to happen.
The application is normal
Actually behavior
A clear and concise description of what you actually to happen.
The application reports a lot of error logs, as mentioned above.
How to Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See errors
Desktop (please complete the following information):
403 is not authed problem, means your configuration leak user and password or with wrong username and password.
According to the issue #13055 you submitted. I think this problem you has sovled.
I modify the nacos config item, then restart app, the app result in this error. Then I restart the app again, this errors dismissed, without any change, without changing any username and password info.
And The app of this issue is different with the app of issue #13055 , It seems it is not the same reason.
Please check with your configuration and env params to make sure there is no more same name configuration about nacos username and password conflict.
From your description, some time start app is ok and some time start is error. Sound like async-concurrent problem. Some time read A properties and wrong username password and sometime read B properties with right username password.
If you are using upper version nacos client like 2.4.3, you can set -DlogAllProperties=true in your app and see nacos client logs:
${user.home}/logs/nacos/config.log to see whether input right username and password.
Describe the bug
A clear and concise description of what the bug is.
I have a springboot application that uses druid components and nacos components, nacos has used authentication. Duird-related configurations are configured in the properties and nacos. Druid is configured with multiple data sources. Resources directory is like this:
When the application is running, modify the nacos configuration, such as modifying the max-active configuration of the database in the druid configuration, and then restart the application almost simultaneously. The application has two nodes. One node is normal and the other node keeps reporting errors. The errors are as follows:
Expected behavior
A clear and concise description of what you expected to happen.
The application is normal
Actually behavior
A clear and concise description of what you actually to happen.
The application reports a lot of error logs, as mentioned above.
How to Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: