docker 部署问题

提问 3 1954
版本:renren-cloud 3.2 开发环境:
镜像已建好、基础框架已正常启动,现在为单个服务配置docker-compose,配置如下img[//cdn.renren.io/7ee4f202102241411413789.png] 出现下面问题,已注册到nacos,但是没有收到nacos返回信息,服务报500 img[//cdn.renren.io/9a54e202102241415395334.png] img[//cdn.renren.io/e38cc202102241416354309.png]
回帖
  • 错误信息,无法定位问题
    0 回复
  • Jack-hou
    2021-02-24
    我现在改成了这样、还是一样的错img[//cdn.renren.io/3f6dc202102241549479243.png] 输出日志 DEBUG 2021-02-24 15:38:38:633 main AgentPackagePath : The beacon class location is jar:file:/agent/skywalking-agent.jar!/org/apache/skywalking/apm/agent/core/boot/AgentPackagePath.class. INFO 2021-02-24 15:38:38:635 main SnifferConfigInitializer : Config file found in /agent/config/agent.config. 2021-02-24 15:38:44.595 WARN 1 --- [ault-executor-0] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:38:45.669 WARN 1 --- [ault-executor-0] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.3.7.RELEASE) 2021-02-24 15:38:45.931 INFO 1 --- [ main] c.a.n.c.c.impl.LocalConfigInfoProcessor : LOCAL_SNAPSHOT_PATH:/root/nacos/config 2021-02-24 15:38:46.057 INFO 1 --- [ main] c.a.nacos.client.config.impl.Limiter : limitTime:5.0 2021-02-24 15:38:46.144 INFO 1 --- [ main] c.a.nacos.client.config.utils.JvmUtil : isMultiInstance:false 2021-02-24 15:38:46.172 WARN 1 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[allocation-protocol-server] & group[RENREN_CLOUD_GROUP] 2021-02-24 15:38:46.174 WARN 1 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[allocation-protocol-server.yaml] & group[RENREN_CLOUD_GROUP] 2021-02-24 15:38:46.177 INFO 1 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-allocation-protocol-server.yaml,RENREN_CLOUD_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-allocation-protocol-server,RENREN_CLOUD_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-common.yaml,RENREN_CLOUD_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-datasource.yaml,RENREN_CLOUD_GROUP'}] 2021-02-24 15:38:46.187 INFO 1 --- [ main] io.renren.AllocationApplication : No active profile set, falling back to default profiles: default 2021-02-24 15:38:47.584 WARN 1 --- [ault-executor-0] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:38:49.136 WARN 1 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'nacos-config' contains invalid characters, please migrate to a valid format. 2021-02-24 15:38:49.154 WARN 1 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'nacos-discovery' contains invalid characters, please migrate to a valid format. 2021-02-24 15:38:49.985 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode! 2021-02-24 15:38:49.993 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 2021-02-24 15:38:50.056 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 24ms. Found 0 Redis repository interfaces. 2021-02-24 15:38:50.293 WARN 1 --- [ault-executor-0] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:38:50.313 WARN 1 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format. 2021-02-24 15:38:50.847 INFO 1 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=ba5c93c3-474c-3efb-aefe-6e6bbe9c29f9 2021-02-24 15:38:52.445 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@33765d22' of type [org.springframework.security.oauth2.provider.expression.OAuth2MethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-02-24 15:38:52.461 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'methodSecurityMetadataSource' of type [org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-02-24 15:38:52.628 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-02-24 15:38:52.766 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-02-24 15:38:53.466 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 10021 (http) 2021-02-24 15:38:53.484 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2021-02-24 15:38:53.485 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.41] 2021-02-24 15:38:53.626 INFO 1 --- [ main] o.a.c.c.C.[.[.[/allocation-protocol] : Initializing Spring embedded WebApplicationContext 2021-02-24 15:38:53.626 INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 7382 ms 2021-02-24 15:38:54.359 WARN 1 --- [ault-executor-0] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:38:54.644 INFO 1 --- [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-02-24 15:38:55.777 INFO 1 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2021-02-24 15:38:59.053 INFO 1 --- [ main] c.a.c.s.SentinelWebAutoConfiguration : [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**]. 2021-02-24 15:38:59.372 INFO 1 --- [ main] com.alibaba.nacos.client.naming : initializer namespace from System Property :null 2021-02-24 15:38:59.373 INFO 1 --- [ main] com.alibaba.nacos.client.naming : initializer namespace from System Environment :null 2021-02-24 15:38:59.374 INFO 1 --- [ main] com.alibaba.nacos.client.naming : initializer namespace from System Property :null 2021-02-24 15:38:59.799 WARN 1 --- [ault-executor-0] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:38:59.981 INFO 1 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 20 endpoint(s) beneath base path '/actuator' 2021-02-24 15:39:00.288 INFO 1 --- [ main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)] 2021-02-24 15:39:00.432 WARN 1 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2021-02-24 15:39:00.432 INFO 1 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. 2021-02-24 15:39:00.463 WARN 1 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2021-02-24 15:39:00.463 INFO 1 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. 2021-02-24 15:39:00.702 INFO 1 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2021-02-24 15:39:01.126 INFO 1 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'Nacos-Watch-Task-Scheduler' 2021-02-24 15:39:02.554 INFO 1 --- [ main] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@43ee4942, org.springframework.security.web.context.SecurityContextPersistenceFilter@7e47a922, org.springframework.security.web.header.HeaderWriterFilter@d0993f0, org.springframework.security.web.authentication.logout.LogoutFilter@2acacdf, org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter@10ac5a14, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@58fef400, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@181b8d0c, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@a6e0e5f, org.springframework.security.web.session.SessionManagementFilter@1b3606e8, org.springframework.security.web.access.ExceptionTranslationFilter@5901757, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@1b60c196] 2021-02-24 15:39:02.802 WARN 1 --- [ main] s.o.SpringCloudSecurityAutoConfiguration : All Spring Cloud Security modules and starters are deprecated. They will be moved to individual projects in the next major release. 2021-02-24 15:39:03.065 INFO 1 --- [ main] com.alibaba.nacos.client.naming : [LISTENER] adding DEFAULT_GROUP@@allocation-protocol-server with DEFAULT to listener map 2021-02-24 15:39:03.098 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 10021 (http) with context path '/allocation-protocol' 2021-02-24 15:39:03.106 INFO 1 --- [ main] com.alibaba.nacos.client.naming : [BEAT] adding beat: BeatInfo{port=10021, ip='172.28.0.2', weight=1.0, serviceName='DEFAULT_GROUP@@allocation-protocol-server', cluster='DEFAULT', metadata={preserved.register.source=SPRING_CLOUD, management.context-path=/allocation-protocol/actuator}, scheduled=false, period=5000, stopped=false} to beat map. 2021-02-24 15:39:03.108 INFO 1 --- [ main] com.alibaba.nacos.client.naming : [REGISTER-SERVICE] public registering service DEFAULT_GROUP@@allocation-protocol-server with instance: Instance{instanceId='null', ip='172.28.0.2', port=10021, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={preserved.register.source=SPRING_CLOUD, management.context-path=/allocation-protocol/actuator}} 2021-02-24 15:39:03.112 INFO 1 --- [ main] c.a.c.n.registry.NacosServiceRegistry : nacos registry, DEFAULT_GROUP allocation-protocol-server 172.28.0.2:10021 register finished 2021-02-24 15:39:03.114 INFO 1 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed 2021-02-24 15:39:03.187 INFO 1 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s) 2021-02-24 15:39:03.303 INFO 1 --- [ main] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references 2021-02-24 15:39:03.626 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: deleteUsingDELETE_1 2021-02-24 15:39:03.628 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: exportUsingGET_1 2021-02-24 15:39:03.639 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getUsingGET_1 2021-02-24 15:39:03.647 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: pageUsingGET_1 2021-02-24 15:39:03.657 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: saveUsingPOST_1 2021-02-24 15:39:03.659 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: updateUsingPUT_1 2021-02-24 15:39:03.662 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: deleteUsingDELETE_2 2021-02-24 15:39:03.664 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: exportUsingGET_2 2021-02-24 15:39:03.677 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getUsingGET_2 2021-02-24 15:39:03.681 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getListUsingGET_1 2021-02-24 15:39:03.686 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: pageUsingGET_2 2021-02-24 15:39:03.694 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: saveUsingPOST_2 2021-02-24 15:39:03.696 INFO 1 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: updateUsingPUT_2 2021-02-24 15:39:03.768 INFO 1 --- [ main] io.renren.AllocationApplication : Started AllocationApplication in 21.369 seconds (JVM running for 25.251) 2021-02-24 15:39:03.786 INFO 1 --- [ main] c.a.n.client.config.impl.ClientWorker : [fixed-192.168.58.113_8848] [subscribe] allocation-protocol-server.yaml+RENREN_CLOUD_GROUP 2021-02-24 15:39:03.792 INFO 1 --- [ main] c.a.nacos.client.config.impl.CacheData : [fixed-192.168.58.113_8848] [add-listener] ok, tenant=, dataId=allocation-protocol-server.yaml, group=RENREN_CLOUD_GROUP, cnt=1 2021-02-24 15:39:03.793 INFO 1 --- [ main] c.a.n.client.config.impl.ClientWorker : [fixed-192.168.58.113_8848] [subscribe] common.yaml+RENREN_CLOUD_GROUP 2021-02-24 15:39:03.794 INFO 1 --- [ main] c.a.nacos.client.config.impl.CacheData : [fixed-192.168.58.113_8848] [add-listener] ok, tenant=, dataId=common.yaml, group=RENREN_CLOUD_GROUP, cnt=1 2021-02-24 15:39:03.794 INFO 1 --- [ main] c.a.n.client.config.impl.ClientWorker : [fixed-192.168.58.113_8848] [subscribe] datasource.yaml+RENREN_CLOUD_GROUP 2021-02-24 15:39:03.794 INFO 1 --- [ main] c.a.nacos.client.config.impl.CacheData : [fixed-192.168.58.113_8848] [add-listener] ok, tenant=, dataId=datasource.yaml, group=RENREN_CLOUD_GROUP, cnt=1 2021-02-24 15:39:03.795 INFO 1 --- [ main] c.a.n.client.config.impl.ClientWorker : [fixed-192.168.58.113_8848] [subscribe] allocation-protocol-server+RENREN_CLOUD_GROUP 2021-02-24 15:39:03.795 INFO 1 --- [ main] c.a.nacos.client.config.impl.CacheData : [fixed-192.168.58.113_8848] [add-listener] ok, tenant=, dataId=allocation-protocol-server, group=RENREN_CLOUD_GROUP, cnt=1 2021-02-24 15:39:04.095 INFO 1 --- [.naming.updater] com.alibaba.nacos.client.naming : new ips(1) service: DEFAULT_GROUP@@allocation-protocol-server@@DEFAULT -> [{"instanceId":"172.28.0.2#10021#DEFAULT#DEFAULT_GROUP@@allocation-protocol-server","ip":"172.28.0.2","port":10021,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@allocation-protocol-server","metadata":{"preserved.register.source":"SPRING_CLOUD","management.context-path":"/allocation-protocol/actuator"},"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000,"instanceHeartBeatInterval":5000}] 2021-02-24 15:39:04.104 INFO 1 --- [.naming.updater] com.alibaba.nacos.client.naming : current ips:(1) service: DEFAULT_GROUP@@allocation-protocol-server@@DEFAULT -> [{"instanceId":"172.28.0.2#10021#DEFAULT#DEFAULT_GROUP@@allocation-protocol-server","ip":"172.28.0.2","port":10021,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"DEFAULT_GROUP@@allocation-protocol-server","metadata":{"preserved.register.source":"SPRING_CLOUD","management.context-path":"/allocation-protocol/actuator"},"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000,"instanceHeartBeatInterval":5000}] 2021-02-24 15:39:09.232 WARN 1 --- [ault-executor-0] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:39:27.060 WARN 1 --- [ault-executor-0] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:39:51.670 WARN 1 --- [ault-executor-0] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:40:38.108 WARN 1 --- [ault-executor-0] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:41:52.317 WARN 1 --- [ault-executor-1] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:43:23.632 WARN 1 --- [ault-executor-2] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:45:13.136 WARN 1 --- [ault-executor-3] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:47:01.623 WARN 1 --- [ault-executor-4] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 2021-02-24 15:49:00.053 WARN 1 --- [ault-executor-5] o.a.s.a.d.i.g.i.ManagedChannelImpl : [org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl-1] Failed to resolve name. status=Status{code=UNAVAILABLE, description=NameResolver returned an empty list, cause=null} 后面一直在重复打印最后一句
    0 回复
  • Jack-hou
    2021-02-24
    看不出问题的话也可以给提些思路,我感觉是新docker-compose 中environment配置垮容器了、为生效,不只如何修改。
    0 回复