Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:19
    kevinw66 opened #6950
  • 14:01
    yuhaowin commented #6907
  • 13:53
    yuhaowin synchronize #6907
  • 08:35
    itwoods commented #6899
  • 08:01
    itwoods commented #6899
  • 07:10
    itwoods commented #6899
  • 03:35
    cielswift commented #6949
  • 03:31
    cielswift commented #6949
  • 03:28
    cielswift opened #6949
  • Sep 19 18:15
    omkhairnar commented #6112
  • Sep 19 17:40
    aluneed opened #6948
  • Sep 19 16:11
    294033186 commented #5553
  • Sep 19 12:02
    zxcvbnm3057 commented #6947
  • Sep 19 11:41
    zxcvbnm3057 commented #6947
  • Sep 19 11:39
    zxcvbnm3057 opened #6947
  • Sep 18 22:58
    bound482 commented #6946
  • Sep 18 22:46
    bound482 commented #6946
  • Sep 18 22:32
    bound482 opened #6946
  • Sep 18 12:01

    yanlinly on develop

    Add Nacos-on-cloud information … (compare)

  • Sep 18 12:01
    yanlinly closed #6909
Phoenix-Liang
@Phoenix-Liang
解决了,单机模式改成集群模式。。。
警告An illegal reflective access operation has occurred 把JDK改回1.8版本就好了
Phoenix-Liang
@Phoenix-Liang
如果不想更换回JDK1.8,在startup.cmd的68行(startup.sh的95行)添加一个两个启动参数就行了
image.png
--illegal-access=deny --add-opens java.base/java.lang=ALL-UNNAMED
Amanaway
@Vic-Lau
各位,我想基于nacos添加灰度发布的黑白名单功能,有好的二次开发案例吗?
Gang
@shengang1978
nacos的配置中心,当前支持的spring boot版本是多少?我弄了一天,最新的spring boot 2.5死活不工作。后面发现eclipse创建的spring boot工程提示alibaba项目在2.3之后版本不能创建,才想到是不是不兼容
radishT
@radishT
谁能帮我解答下 nacos 为什么监听到了配置的更新,但是不会主动去调用refreshContext.refresh()?
需要我自己去调用/actuator/refresh??????????
我注意到clientWorker会监听到发布的配置更新,但是接下来哪个关键的类会做ContextRefresher.refresh()?
Apollo转nacos没想到nacos这么难搞
weissxu
@weissxu
// com.alibaba.cloud.nacos.refresh.NacosContextRefresher
private void registerNacosListener(final String groupKey, final String dataKey) {
String key = NacosPropertySourceRepository.getMapKey(dataKey, groupKey);
Listener listener = (Listener)this.listenerMap.computeIfAbsent(key, (lst) -> {
return new AbstractSharedListener() {
// 发送spring context的RefreshEvent事件。
public void innerReceive(String dataId, String group, String configInfo) {
NacosContextRefresher.refreshCountIncrement();
NacosContextRefresher.this.nacosRefreshHistory.addRefreshRecord(dataId, group, configInfo);
NacosContextRefresher.this.applicationContext.publishEvent(new RefreshEvent(this, (Object)null, "Refresh Nacos config"));
if (NacosContextRefresher.log.isDebugEnabled()) {
NacosContextRefresher.log.debug(String.format("Refresh Nacos config group=%s,dataId=%s,configInfo=%s", group, dataId, configInfo));
}
}
};
});
@radishT
请教下,istio集成nacos需要怎么操作呀
哪位同学有这方面的经验?
la la
@la999_gitlab
请问下nacos的data目录做持久化后, 重启有出现脏数据,这个大家有遇到过吗?
seyvoue
@seyvoue
nacos 升级到 1.4.2,dubbo 这边需要怎么调整
Eric
@liuweiccy
用了nacos2.0.2
为啥setInstanceId无效
还是默认生成的InstanceId
我的serverside是nacos2.0.1
tx9303
@tx9303
为什么nacos2.0.1+nginx,第一个项目启动了,同样的配置第二个项目400,这是为什么
firelph
@firelph
dubbo注册nacos 服务如何设置group
MrsLxlGitHib
@MrsLxlGitHib
nacos1.4.2占用的7848端口是干啥用的?
Bob zhang
@zhangbouu
集群ceph模式下有个节点down掉后,会有短暂的几个服务不可用,这种现象正常吗?
Bob zhang
@zhangbouu
有人能解答吗?
Calvin
@Calvin-830
有什么办法可以控制start.out 的大小
赵云波
@boboyunz
Nacos.Microsoft.Extensions.Configuration.NacosV2ConfigurationProvider[0]
Load config error
System.ArgumentNullException: Value cannot be null. (Parameter 's')
Docker 运行 2.02
出现了如上问题
是否有小伙伴遇到过
jackiea
@jackiea
请问,目前Nacos的控制台样例 console.nacos.io/nacos登录账户在哪?如何登录试用
laoxiaokang
@laoxiaokang
为什么禁用了management.endpoints.web.exposure.include=* 此配置 但我开放的自定义exporter里还会出现nacos的指标
as7212325
@as7212325
nacos能否把负载给gateway
Hidahua
@hidahua
按照官方k8s配置方式配置,使用latest镜像,已添加环境变量,却总是提示:No DataSource set 难道不是用环境变量来获取的吗?
potato
@sweetpotatoman
@hidahua 再对一下 configmap 和你配置的 env 对不对的上,或者看看数据库地址有没有错~
Hidahua
@hidahua

@hidahua 再对一下 configmap 和你配置的 env 对不对的上,或者看看数据库地址有没有错~

谢谢你,犯了一个不可饶恕的错误,就是数据库密码传入错了;后面好了;

Sebastian Qu
@hashmaparraylist
问一句现在spring-cloud-starter-alibaba-nacos-config还是不支持spring boot 2.5.x吗
rainbow2019s
@rainbow2019s
Spring cloud Gateway 在application.yml中的配置的lb://服务名 无法加载
1327681842
@1327681842
nacos有支持postgresql数据库或者背的数据库的计划吗?
gaoli19921225
@gaoli19921225
nacos 有提供相应的服务上下线的通知接口吗,想做一个nacos服务下线时的通知。
zjnucaiwt
@zjnucaiwt
Hosts in list: nacos-0.nacos-headless.default.svc.cluster.local, nacos-1.nacos-headless.default.svc.cluster.local, nacos-2.nacos-headless.default.svc.cluster.local
nacos k8集群部署,k8s服务重启经常报读nacos配置失败,nacos服务也有报错信息,请问这个是什么问题。Hosts in list: nacos-0.nacos-headless.default.svc.cluster.local, nacos-1.nacos-headless.default.svc.cluster.local, nacos-2.nacos-headless.default.svc.cluster.local
shy000000
@shy000000
1.2.1版本的客户端连接2.0.1版本的服务端,在客户端是不是会有如下错误日志,有什么解决办法?
2021-08-23 14:46:40.397 prod ERROR [whhim-qcs,,,] 7 --- [43.223.236_8848] c.a.n.c.config.http.ServerHttpAgent : [NACOS SocketTimeoutException httpPost] currentServerAddr: http://10.43.223.236:8848, err : Read timed out
2021-08-23 14:46:40.400 prod ERROR [whhim-qcs,,,] 7 --- [43.223.236_8848] c.a.n.c.config.http.ServerHttpAgent : no available server, currentServerAddr : http://10.43.223.236:8848
2021-08-23 14:46:40.401 prod ERROR [whhim-qcs,,,] 7 --- [43.223.236_8848] c.a.n.client.config.impl.ClientWorker : [fixed-10.43.223.236_8848] [check-update] get changed dataId exception
java.net.ConnectException: no available server, currentServerAddr : http://10.43.223.236:8848
at com.alibaba.nacos.client.config.http.ServerHttpAgent.httpPost(ServerHttpAgent.java:178)
at com.alibaba.nacos.client.config.http.MetricsHttpAgent.httpPost(MetricsHttpAgent.java:64)
at com.alibaba.nacos.client.config.impl.ClientWorker.checkUpdateConfigStr(ClientWorker.java:386)
at com.alibaba.nacos.client.config.impl.ClientWorker.checkUpdateDataIds(ClientWorker.java:354)
at com.alibaba.nacos.client.config.impl.ClientWorker$LongPollingRunnable.run(ClientWorker.java:521)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2021-08-23 14:46:40.401 prod ERROR [whhim-qcs,,,] 7 --- [43.223.236_8848] c.a.n.client.config.impl.ClientWorker : longPolling error :
java.net.ConnectException: no available server, currentServerAddr : http://10.43.223.236:8848
at com.alibaba.nacos.client.config.http.ServerHttpAgent.httpPost(ServerHttpAgent.java:178)
at com.alibaba.nacos.client.config.http.MetricsHttpAgent.httpPost(MetricsHttpAgent.java:64)
at com.alibaba.nacos.client.config.impl.ClientWorker.checkUpdateConfigStr(ClientWorker.java:386)
at com.alibaba.nacos.client.config.impl.ClientWorker.checkUpdateDataIds(ClientWorker.java:354)
at com.alibaba.nacos.client.config.impl.ClientWorker$LongPollingRunnable.run(ClientWorker.java:521)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2021-08-23 14:46:58.954 prod ERROR [whhim-qcs,,,] 7 --- [ing.beat.sender] com.alibaba.nacos.client.naming : [NA] failed to request
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:170)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at
2021-08-23 14:46:59.864 prod ERROR [whhim-qcs,,,] 7 --- [ing.beat.sender] com.alibaba.nacos.client.naming : request: /nacos/v1/ns/instance/beat failed, servers: [10.43.223.236], code: 400, msg: <html><body><h1>Whitelabel Error Page</h1><p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p><div id='created'>Mon Aug 23 14:46:59 CST 2021</div><div>There was an unexpected error (type=Bad Request, status=400).</div><div>receive invalid redirect request from peer 10.42.5.21</div></body></html>
2021-08-23 14:46:59.893 prod ERROR [whhim-qcs,,,] 7 --- [ing.beat.sender] com.alibaba.nacos.client.naming : [CLIENT-BEAT] failed to send beat: {"cluster":"DEFAULT","ip":"10.42.6.87","metadata":{"context_path":"/whhim-qcs","preserved.register.source":"SPRING_CLOUD"},"period":5000,"port":80,"scheduled":false,"serviceName":"DEFAULT_GROUP@@whhim-qcs","stopped":false,"weight":1.0}, code: 400, msg: failed to req API:/api//nacos/v1/ns/instance/beat after all servers([10.43.223.236]) tried: <html><body><h1>Whitelabel Error Page</h1><p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p><div id='created'>Mon Aug 23 14:46:59 CST 2021</div><div>There was an unexpected error (type=Bad Request, status=400).</div><div>receive invalid redirect request from peer 10.42.5.21</div></body></html>
ruirui9
@ruirui9
nacos可以从1.0直接升级到2.0么

2021-09-03 14:29:19,916 ERROR Startup errors :

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'subscribeManager': Unsatisfied dependency expressed through field 'localService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'namingSubscriberServiceLocalImpl' defined in URL [jar:file:/usr/local/nacos/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-naming-2.0.3.jar!/com/alibaba/nacos/naming/push/NamingSubscriberServiceLocalImpl.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'namingSubscriberServiceV2Impl' defined in URL [jar:file:/usr/local/nacos/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-naming-2.0.3.jar!/com/alibaba/nacos/naming/push/v2/NamingSubscriberServiceV2Impl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clientManager' defined in URL [jar:file:/usr/local/nacos/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-naming-2.0.3.jar!/com/alibaba/nacos/naming/core/v2/client/manager/ClientManagerDelegate.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionBasedClientManager' defined in URL [jar:file:/usr/local/nacos/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-naming-2.0.3.jar!/com/alibaba/nacos/naming/core/v2/client/manager/impl/ConnectionBasedClientManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alibaba.nacos.naming.core.v2.client.manager.impl.ConnectionBasedClientManager]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: DEFAULT_HEART_BEAT_INTERVAL
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:598)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:376)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1402)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:591)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:514)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:321)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:319)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)
at org.springframework.boot.Spri

有老哥知道这什么问题么
a13986656381
@a13986656381
有老哥知道nacos中的配置文件能动态获取其他配置文件的值吗?