部署到云服务器,发布后配置不生效

来源:2-4 Apollo快速使用-2

架构师的自我修养

2020-06-21 19:20:57

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


写回答

1回答

阿神

2020-06-21

能不能按照我的视频一步步来,照着操作,没有问题的。。我也不清楚你具体细节哪一块有问题,可以私人QQ我

0

Java架构师-技术专家

千万级电商项目从0到100全过程,覆盖Java程序员不同成长阶段的核心问题与解决方案

2672 学习 · 5839 问题

查看课程