网站上传到服务器安装不了,部署到云服务器,发布后配置不生效

日志显示一个名为'apollo-test'的应用在尝试启动时遇到问题,无法从配置服务器111.231.66.209:8080获取配置。错误信息提示'无协议',可能的故障原因是网络连接或配置服务器地址不正确。尽管出现这些错误,应用最终还是成功启动并监听在8001端口。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

2020-06-21 19:13:25.927  INFO 12092 --- [           main] com.imooc.springcloud.Application        : Starting Application on DESKTOP-LPN9PRA with PID 12092 (D:\JavaProject\foodie-dev\apollo-test\target\classes started by 75078 in D:\JavaProject\foodie-dev)

2020-06-21 19:13:25.931  INFO 12092 --- [           main] com.imooc.springcloud.Application        : No active profile set, falling back to default profiles: default

2020-06-21 19:13:26.647  INFO 12092 --- [           main] c.c.f.f.i.p.DefaultApplicationProvider   : App ID is set to apollo-test by app.id property from System Property

2020-06-21 19:13:26.651  INFO 12092 --- [           main] c.c.f.f.i.p.DefaultServerProvider        : Environment is set to null. Because it is not available in either (1) JVM system property 'env', (2) OS env variable 'ENV' nor (3) property 'env' from the properties InputStream.

2020-06-21 19:13:26.830  INFO 12092 --- [           main] c.c.f.a.i.DefaultMetaServerProvider      : Located meta services from apollo.meta configuration: 111.231.66.209:8080!

2020-06-21 19:13:26.833  INFO 12092 --- [           main] c.c.f.apollo.core.MetaDomainConsts       : Located meta server address 111.231.66.209:8080 for env UNKNOWN from com.ctrip.framework.apollo.internals.DefaultMetaServerProvider

2020-06-21 19:13:31.486  WARN 12092 --- [           main] c.c.f.a.i.AbstractConfigRepository       : Sync config failed, will retry. Repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository, reason: Get config services failed from 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2 [Cause: Could not complete get operation [Cause: no protocol: 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2]]

2020-06-21 19:13:33.498  WARN 12092 --- [           main] c.c.f.a.i.LocalFileConfigRepository      : Sync config from upstream repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository failed, reason: Get config services failed from 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2 [Cause: Could not complete get operation [Cause: no protocol: 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2]]

2020-06-21 19:13:35.499  WARN 12092 --- [ngPollService-1] c.c.f.a.i.RemoteConfigLongPollService    : Long polling failed, will retry in 1 seconds. appId: apollo-test, cluster: default, namespaces: application, long polling url: null, reason: Get config services failed from 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2 [Cause: Could not complete get operation [Cause: no protocol: 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2]]

2020-06-21 19:13:37.499  WARN 12092 --- [           main] c.c.f.a.i.LocalFileConfigRepository      : Sync config from upstream repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository failed, reason: Get config services failed from 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2 [Cause: Could not complete get operation [Cause: no protocol: 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2]]

2020-06-21 19:13:37.499  WARN 12092 --- [           main] c.c.f.a.i.AbstractConfigRepository       : Sync config failed, will retry. Repository class com.ctrip.framework.apollo.internals.LocalFileConfigRepository, reason: Load config from local config failed! [Cause: Cannot read from local cache file C:\opt\data\apollo-test\config-cache\apollo-test+default+application.properties]

2020-06-21 19:13:39.500  WARN 12092 --- [ngPollService-1] c.c.f.a.i.RemoteConfigLongPollService    : Long polling failed, will retry in 2 seconds. appId: apollo-test, cluster: default, namespaces: application, long polling url: null, reason: Get config services failed from 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2 [Cause: Could not complete get operation [Cause: no protocol: 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2]]

2020-06-21 19:13:41.501  WARN 12092 --- [           main] c.c.f.a.i.LocalFileConfigRepository      : Sync config from upstream repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository failed, reason: Get config services failed from 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2 [Cause: Could not complete get operation [Cause: no protocol: 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2]]

2020-06-21 19:13:41.502  WARN 12092 --- [           main] c.c.f.apollo.internals.DefaultConfig     : Init Apollo Local Config failed - namespace: application, reason: Load config from local config failed! [Cause: Cannot read from local cache file C:\opt\data\apollo-test\config-cache\apollo-test+default+application.properties].

2020-06-21 19:13:41.568  WARN 12092 --- [           main] c.c.f.apollo.internals.DefaultConfig     : Could not load config for namespace application from Apollo, please check whether the configs are released in Apollo! Return default value now!

2020-06-21 19:13:41.914  INFO 12092 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8001 (http)

2020-06-21 19:13:41.940  INFO 12092 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]

2020-06-21 19:13:41.940  INFO 12092 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.19]

2020-06-21 19:13:41.948  INFO 12092 --- [           main] o.a.catalina.core.AprLifecycleListener   : Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.7.0].

2020-06-21 19:13:41.948  INFO 12092 --- [           main] o.a.catalina.core.AprLifecycleListener   : APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].

2020-06-21 19:13:41.948  INFO 12092 --- [           main] o.a.catalina.core.AprLifecycleListener   : APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]

2020-06-21 19:13:41.952  INFO 12092 --- [           main] o.a.catalina.core.AprLifecycleListener   : OpenSSL successfully initialized [OpenSSL 1.1.1c  28 May 2019]

2020-06-21 19:13:42.063  INFO 12092 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext

2020-06-21 19:13:42.063  INFO 12092 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 16075 ms

2020-06-21 19:13:42.289  INFO 12092 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'

2020-06-21 19:13:42.548  INFO 12092 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8001 (http) with context path ''

2020-06-21 19:13:42.551  INFO 12092 --- [           main] com.imooc.springcloud.Application        : Started Application in 17.075 seconds (JVM running for 18.954)

2020-06-21 19:13:43.502  WARN 12092 --- [ngPollService-1] c.c.f.a.i.RemoteConfigLongPollService    : Long polling failed, will retry in 4 seconds. appId: apollo-test, cluster: default, namespaces: application, long polling url: null, reason: Get config services failed from 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2 [Cause: Could not complete get operation [Cause: no protocol: 111.231.66.209:8080/services/config?appId=apollo-test&ip=192.168.254.2]]

2020-06-21 19:13:46.539  INFO 12092 --- [nio-8001-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'

2020-06-21 19:13:46.539  INFO 12092 --- [nio-8001-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'

2020-06-21 19:13:46.547  INFO 12092 --- [nio-8001-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 8 ms

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值