国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

SpringCloud-11-解決[NACOS HTTP-GET] The maximum number of tolerable server reconnection errors has bee

這篇具有很好參考價(jià)值的文章主要介紹了SpringCloud-11-解決[NACOS HTTP-GET] The maximum number of tolerable server reconnection errors has bee。希望對大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

錯(cuò)誤日志顯示的是nacos的服務(wù)數(shù)量已達(dá)最大,實(shí)際原因是配置中心出問題了。

若僅使用了nacos的發(fā)現(xiàn)功能(discovery),則不需要引入配置依賴“spring-cloud-starter-alibaba-nacos-config”,否則將會(huì)報(bào)錯(cuò),如下:

[2022-10-17 15:01:42] [INFO ] -- LOCAL_SNAPSHOT_PATH:/root/nacos/config
[2022-10-17 15:01:42] [INFO ] -- limitTime:5.0
[2022-10-17 15:01:42] [ERROR] -- [NACOS ConnectException httpGet] currentServerAddr:http://localhost:8848, err : Connection refused (Connection refused)
[2022-10-17 15:01:42] [ERROR] -- [NACOS ConnectException httpGet] currentServerAddr:http://localhost:8848, err : Connection refused (Connection refused)
[2022-10-17 15:01:42] [ERROR] -- [NACOS ConnectException httpGet] currentServerAddr:http://localhost:8848, err : Connection refused (Connection refused)
[2022-10-17 15:01:42] [ERROR] -- [NACOS ConnectException httpGet] currentServerAddr:http://localhost:8848, err : Connection refused (Connection refused)
[2022-10-17 15:01:42] [ERROR] -- [fixed-localhost_8848] [sub-server] get server config exception, dataId=modelwenzhou, group=DEFAULT_GROUP, tenant=
java.net.ConnectException: [NACOS HTTP-GET] The maximum number of tolerable server reconnection errors has been reached
        at com.alibaba.nacos.client.config.http.ServerHttpAgent.httpGet(ServerHttpAgent.java:125)
        at com.alibaba.nacos.client.config.http.MetricsHttpAgent.httpGet(MetricsHttpAgent.java:51)
        at com.alibaba.nacos.client.config.impl.ClientWorker.getServerConfig(ClientWorker.java:274)
        at com.alibaba.nacos.client.config.NacosConfigService.getConfigInner(NacosConfigService.java:155)
        at com.alibaba.nacos.client.config.NacosConfigService.getConfig(NacosConfigService.java:98)
        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:141)
        at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.locate(NacosPropertySourceLocator.java:103)
        at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:51)
        at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:47)
        at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:95)
        at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:639)
        at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:402)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:338)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1318)
        at com.caipos.WenzhouModelApp.main(WenzhouModelApp.java:34)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
[2022-10-17 15:01:42] [WARN ] -- [fixed-localhost_8848] [get-config] get from server error, dataId=modelwenzhou, group=DEFAULT_GROUP, tenant=, msg=ErrCode:500, ErrMsg:[NACOS HTTP-GET] The maximum number of tolerable server reconnection errors has been reached

解決辦法1:

移除config依賴:

<!-- nacos-config -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
        </dependency>

解決辦法2:

bootstrap.yml中將config關(guān)閉:文章來源地址http://www.zghlxwxcb.cn/news/detail-532448.html

spring:
  application:
    name: modelServer
  cloud:
    nacos:
      discovery:
        server-addr: http://nacos:8848
      config:
        enabled: false

到了這里,關(guān)于SpringCloud-11-解決[NACOS HTTP-GET] The maximum number of tolerable server reconnection errors has bee的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Nacos開啟鑒權(quán)后讀取不到配置文件,get data from Nacos error,dataId:http error, code=403,dataId=

    報(bào)錯(cuò)信息 解決辦法 我開始沒加鑒權(quán),使用的是application.yml是可以的,加了之后要將application.yml換成bootstrap.yml。 spring cloud Alibaba組件版本依賴關(guān)系 2021.x 分支 適配 Spring Boot 2.4,Spring Cloud 2021.x 版本及以上的 Spring Cloud Alibaba 版本按從新到舊排列如下表(最新版本用*標(biāo)記):

    2024年03月23日
    瀏覽(51)
  • 大坑!springcloud父子項(xiàng)目啟動(dòng)連接nacos報(bào)http error, code=403,msg=user not found!

    大坑!springcloud父子項(xiàng)目啟動(dòng)連接nacos報(bào)http error, code=403,msg=user not found!

    springcloud父子項(xiàng)目啟動(dòng)連接nacos報(bào)http error, code=403,msg=user not found! 背景: 一個(gè)新模塊需要建一個(gè)后端服務(wù),然后就把其他項(xiàng)目掏空+若依plus的結(jié)構(gòu),搭了一套springcloud父子項(xiàng)目,本地運(yùn)行沒有問題,在上生產(chǎn)的時(shí)候,打出來的jar包啟動(dòng)的時(shí)候一直報(bào)nacos 403. 我勒個(gè)去,改了很多次

    2024年02月03日
    瀏覽(18)
  • The HTTP call equal to ‘curl -sSL http://localhost:10248/healthz‘ failed with error: Get “http://loc

    The HTTP call equal to ‘curl -sSL http://localhost:10248/healthz‘ failed with error: Get “http://loc

    問題: 初始化K8S master時(shí)報(bào)錯(cuò) 問題分析: 之前我的Docker是用yum安裝的,docker的cgroup驅(qū)動(dòng)程序默認(rèn)設(shè)置為systemd。默認(rèn)情況下Kubernetes cgroup為system,我們需要更改Docker cgroup驅(qū)動(dòng), 解決方法

    2024年02月11日
    瀏覽(25)
  • error during connect: This error may indicate that the docker daemon is not running.: Get “http://%2

    error during connect: This error may indicate that the docker daemon is not running.: Get “http://%2

    error during connect: This error may indicate that the docker daemon is not running.: Get \\\"http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/search?limit=25term=java\\\": open //./pipe/docker_engine: The system cannot find the file specified. Windows解決方法: 忘記開啟你的Docker Desktop了,開啟來后,重新走一遍命令即可。 ?

    2024年02月08日
    瀏覽(25)
  • SpringCloud + SpringGateway 解決Get請求傳參為特殊字符導(dǎo)致400無法通過網(wǎng)關(guān)轉(zhuǎn)發(fā)的問題

    SpringCloud + SpringGateway 解決Get請求傳參為特殊字符導(dǎo)致400無法通過網(wǎng)關(guān)轉(zhuǎn)發(fā)的問題

    title: “SpringCloud + SpringGateway 解決Get請求傳參為特殊字符導(dǎo)致400無法通過網(wǎng)關(guān)轉(zhuǎn)發(fā)的問題” createTime: 2021-11-24T10:27:57+08:00 updateTime: 2021-11-24T10:27:57+08:00 draft: false author: “Atomicyo” tags: [“tomcat”] categories: [“java”] description: “SpringCloud + SpringGateway 解決Get請求傳參為特殊字符導(dǎo)致

    2024年02月07日
    瀏覽(22)
  • leetcode - 2616. Minimize the Maximum Difference of Pairs

    You are given a 0-indexed integer array nums and an integer p. Find p pairs of indices of nums such that the maximum difference amongst all the pairs is minimized. Also, ensure no index appears more than once amongst the p pairs. Note that for a pair of elements at the index i and j, the difference of this pair is |nums[i] - nums[j]|, where |x| represents th

    2024年02月13日
    瀏覽(22)
  • 【異常解決】(二)解決docker報(bào)錯(cuò)Error response from daemon: Get... http: server gave HTTP response to HTTPS

    【異常解決】(二)解決docker報(bào)錯(cuò)Error response from daemon: Get... http: server gave HTTP response to HTTPS

    場景:本機(jī)個(gè)人電腦Windows系統(tǒng)安裝了docker客戶端,遠(yuǎn)程Linux服務(wù)器部署了鏡像倉庫,遠(yuǎn)程倉庫可以接收別的服務(wù)器的鏡像推送,但接收本機(jī)電腦鏡像時(shí)失敗(實(shí)際為推送失?。?。使用docker login XXXX:XX:XX:XX:8081命令登錄時(shí),報(bào)錯(cuò) Error response from daemon: Get “https://XXXX:XX:XX:XX:8081/v2

    2024年02月11日
    瀏覽(31)
  • flask項(xiàng)目中“GET /qa/favicon.ico HTTP/1.1“ 404報(bào)錯(cuò)解決

    favicon.ico是頁面的略縮圖,當(dāng)頁面在欄目上和收藏夾內(nèi)顯示的小圖標(biāo)。 在flask項(xiàng)目中,簡單的將favicon.ico放在根目錄中是無法顯示略縮圖的。 如果將favicon.ico放到根目錄,在html文件中加入以下link,發(fā)現(xiàn)還是無法引入略縮圖。 實(shí)際的解決方案是使用如下的head-link 使用flask的ur

    2024年02月15日
    瀏覽(20)
  • 詳細(xì)解決redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

    詳細(xì)解決redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

    今天從 gitlab 上下載本公司的項(xiàng)目,但在啟動(dòng)時(shí)報(bào)出如下錯(cuò)誤: 具體的錯(cuò)誤信息為 redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool 。 根據(jù)上述報(bào)錯(cuò)信息可知,這是 redis 出現(xiàn)了錯(cuò)誤。 首先,檢查我的 redis 的配置信息,如下代碼所示: 據(jù)此可以看出,

    2024年02月09日
    瀏覽(24)
  • 問題解決記錄=-=[Error response from daemon:Get... http: server gave HTTP response to HTTs client]

    問題: 通過服務(wù)器docker登錄harbor,發(fā)現(xiàn)登陸報(bào)錯(cuò); Error response from daemon:Get “https:.//.../v2/\\\"\\\": http: server gave HTTP response to HTTs client 或者docker登錄成功,鏡像可以拉下來,但是k8s拉取鏡像時(shí)候就會(huì)報(bào)上述錯(cuò)誤 原因: harbor默認(rèn)是https協(xié)議的,如果想要通過http協(xié)議拉取harbor的鏡像需要

    2024年02月09日
    瀏覽(18)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包