他的回复:
1.7.6版本的 日志[root@8578116901b9 log]# cat chassis.log2020-02-19 10:53:39.906 +00:00 DEBUG lager/lager.go:46 logger init success2020-02-19 10:53:39.908 +00:00 INFO client/client_plugins.go:24 Install client plugin, protocol: rest2020-02-19 10:53:39.908 +00:00 DEBUG loadbalancer/strategy.go:23 Installed strategy plugin: WeightedResponse.2020-02-19 10:53:39.908 +00:00 INFO provider/provider_manager.go:20 Install Provider Plugin, name: default2020-02-19 10:53:39.909 +00:00 INFO server/server_manager.go:27 Installed Server Plugin, protocol:rest2020-02-19 10:53:39.909 +00:00 INFO router/router.go:37 install route rule plugin: cse2020-02-19 10:53:39.909 +00:00 INFO registry/registrator.go:89 Installed registry plugin: servicecenter2020-02-19 10:53:39.909 +00:00 INFO registry/discovery.go:18 Installed service discovery plugin: servicecenter2020-02-19 10:53:39.909 +00:00 INFO registry/discovery.go:33 Installed contract discovery plugin: servicecenter2020-02-19 10:53:39.909 +00:00 INFO registry/registrator.go:89 Installed registry plugin: file2020-02-19 10:53:39.909 +00:00 INFO registry/discovery.go:18 Installed service discovery plugin: file2020-02-19 10:53:39.909 +00:00 INFO hystrix/reporter.go:24 install reporter plugin:Prometheus2020-02-19 10:53:39.909 +00:00 INFO [email]go-chassis-config@v0.15.0[/email]/client.go:26 Installed config_center Plugin2020-02-19 10:53:39.909 +00:00 INFO config/config.go:296 [/opt/payment/conf/router.yaml] not exist2020-02-19 10:53:39.909 +00:00 INFO [email]go-archaius@v0.24.0[/email]/archaius.go:44 [/opt/payment/conf/circuit_breaker.yaml] not exist2020-02-19 10:53:39.909 +00:00 INFO [email]go-archaius@v0.24.0[/email]/archaius.go:44 [/opt/payment/conf/load_balancing.yaml] not exist2020-02-19 10:53:39.909 +00:00 INFO [email]go-archaius@v0.24.0[/email]/archaius.go:44 [/opt/payment/conf/rate_limiting.yaml] not exist2020-02-19 10:53:39.909 +00:00 INFO [email]go-archaius@v0.24.0[/email]/archaius.go:44 [/opt/payment/conf/tls.yaml] not exist2020-02-19 10:53:39.909 +00:00 INFO [email]go-archaius@v0.24.0[/email]/archaius.go:44 [/opt/payment/conf/monitoring.yaml] not exist2020-02-19 10:53:39.909 +00:00 INFO [email]go-archaius@v0.24.0[/email]/archaius.go:44 [/opt/payment/conf/auth.yaml] not exist2020-02-19 10:53:39.909 +00:00 INFO [email]go-archaius@v0.24.0[/email]/archaius.go:44 [/opt/payment/conf/tracing.yaml] not exist2020-02-19 10:53:39.909 +00:00 INFO [email]go-archaius@v0.24.0[/email]/archaius.go:44 [/opt/payment/conf/router.yaml] not exist2020-02-19 10:53:39.909 +00:00 INFO [email]go-archaius@v0.24.0[/email]/archaius.go:53 Configuration files: /opt/payment/conf/chassis.yaml, /opt/payment/conf/microservice.yaml, /opt/payment/conf/lager.yaml2020-02-19 10:53:39.909 +00:00 INFO source/manager.go:149 invoke dynamic handler:FileSource2020-02-19 10:53:39.909 +00:00 WARN source/manager.go:172 empty config from MemorySource2020-02-19 10:53:39.909 +00:00 INFO source/manager.go:149 invoke dynamic handler:MemorySource2020-02-19 10:53:39.909 +00:00 WARN source/manager.go:172 empty config from CommandlineSource2020-02-19 10:53:39.909 +00:00 INFO source/manager.go:149 invoke dynamic handler:CommandlineSource2020-02-19 10:53:39.909 +00:00 INFO env/env.go:44 enable env source2020-02-19 10:53:39.909 +00:00 INFO source/manager.go:149 invoke dynamic handler:EnvironmentSource2020-02-19 10:53:39.909 +00:00 INFO [email]go-archaius@v0.24.0[/email]/archaius.go:100 archaius init success2020-02-19 10:53:39.909 +00:00 INFO config/config.go:305 archaius init success2020-02-19 10:53:39.910 +00:00 INFO config/config.go:353 Host name is 8578116901b92020-02-19 10:53:39.910 +00:00 DEBUG [email]go-chassis@v1.7.6[/email]/chassis_init.go:84 init Provider's handler map2020-02-19 10:53:39.910 +00:00 DEBUG handler/handler_chain.go:93 add [2] handlers for chain [default]2020-02-19 10:53:39.910 +00:00 DEBUG [email]go-chassis@v1.7.6[/email]/chassis_init.go:84 init Consumer's handler map2020-02-19 10:53:39.910 +00:00 DEBUG handler/handler_chain.go:93 add [5] handlers for chain [default]2020-02-19 10:53:39.910 +00:00 INFO [email]go-chassis@v1.7.6[/email]/chassis_init.go:96 chain init success2020-02-19 10:53:39.910 +00:00 DEBUG server/server_manager.go:100 Init server [rest], protocol is [rest]2020-02-19 10:53:39.910 +00:00 INFO bootstrap/bootstrap.go:38 Bootstrap huaweiauth2020-02-19 10:53:39.910 +00:00 DEBUG [email]auth@v1.1.2[/email]/retriever.go:187 Try to get auth info from default secret from ServiceStage2020-02-19 10:53:39.911 +00:00 DEBUG [email]auth@v1.1.2[/email]/retriever.go:194 Not found auth info from default secret from ServiceStage2020-02-19 10:53:39.911 +00:00 DEBUG [email]auth@v1.1.2[/email]/retriever.go:187 Try to get auth info from default secret from CCE2020-02-19 10:53:39.911 +00:00 DEBUG [email]auth@v1.1.2[/email]/retriever.go:194 Not found auth info from default secret from CCE2020-02-19 10:53:39.911 +00:00 INFO gochassis/cse.go:203 No authentication for Huawei Cloud2020-02-19 10:53:39.911 +00:00 INFO bootstrap/bootstrap.go:38 Bootstrap engine_endpoint_fetcher2020-02-19 10:53:39.911 +00:00 ERROR bootstrap/bootstrap.go:40 Failed to init engine_endpoint_fetcher. error [env PAAS_PROJECT_NAME is empty, please manually set it]2020-02-19 10:53:39.911 +00:00 INFO scclient/client.go:155 Use Service center v42020-02-19 10:53:39.911 +00:00 INFO scclient/pool.go:45 set service center endpoints 100.95.167.240:301002020-02-19 10:53:39.911 +00:00 DEBUG registry/bootstrap.go:28 No microservice environment defined2020-02-19 10:53:39.911 +00:00 WARN registry/bootstrap.go:34 No schemas file for microservice [payment].2020-02-19 10:53:39.911 +00:00 DEBUG registry/bootstrap.go:88 Update micro service propertiesmap[allowCrossApp:false]2020-02-19 10:53:39.911 +00:00 INFO registry/bootstrap.go:89 Framework registered is [ Go-Chassis:1.7.6 ]2020-02-19 10:53:39.911 +00:00 INFO registry/bootstrap.go:90 Micro service registered by [ SDK ]2020-02-19 10:53:39.911 +00:00 INFO file/file.go:353 create new watcher2020-02-19 10:53:39.911 +00:00 INFO mem/mem.go:98 mem source callback prepared2020-02-19 10:53:39.913 +00:00 INFO servicecenter/servicecenter.go:43 [payment:0.1.0:default] exists in registry2020-02-19 10:53:39.913 +00:00 INFO registry/bootstrap.go:102 Register [d90bc57f3a4cf639eb0b3db9c3e509da6ee202af/payment] success2020-02-19 10:53:39.913 +00:00 INFO registry/registrator.go:82 Enable [servicecenter] registrator.2020-02-19 10:53:39.913 +00:00 INFO scclient/client.go:155 Use Service center v42020-02-19 10:53:39.913 +00:00 INFO scclient/pool.go:45 set service center endpoints 100.95.167.240:301002020-02-19 10:53:39.913 +00:00 DEBUG servicecenter/cache.go:219 batch find criteria is empty2020-02-19 10:53:39.913 +00:00 INFO registry/discovery.go:83 Enable servicecenter service discovery.2020-02-19 10:53:39.913 +00:00 INFO scclient/client.go:155 Use Service center v42020-02-19 10:53:39.913 +00:00 INFO scclient/pool.go:45 set service center endpoints 100.95.167.240:301002020-02-19 10:53:39.913 +00:00 INFO registry/discovery.go:102 Enable servicecenter contract discovery.2020-02-19 10:53:39.913 +00:00 INFO registry/registrator.go:169 Enabled Registry2020-02-19 10:53:39.913 +00:00 INFO loadbalancer/load_balancer.go:118 Enable LoadBalancing2020-02-19 10:53:39.913 +00:00 DEBUG loadbalancer/strategy.go:23 Installed strategy plugin: Random.2020-02-19 10:53:39.913 +00:00 DEBUG loadbalancer/strategy.go:23 Installed strategy plugin: RoundRobin.2020-02-19 10:53:39.913 +00:00 DEBUG loadbalancer/strategy.go:23 Installed strategy plugin: SessionStickiness.2020-02-19 10:53:39.913 +00:00 INFO loadbalancer/load_balancer.go:124 Empty strategy configuration, use RoundRobin as default2020-02-19 10:53:39.913 +00:00 DEBUG configcenter/config_center.go:81 find config server in registry2020-02-19 10:53:39.913 +00:00 WARN servicecenter/servicecenter.go:327 d90bc57f3a4cf639eb0b3db9c3e509da6ee202af Get instances from remote, key: default:CseConfigCenter:latest2020-02-19 10:53:39.916 +00:00 DEBUG servicecenter/servicecenter.go:335 Find no micro service instances for CseConfigCenter from cache2020-02-19 10:53:39.916 +00:00 WARN configcenter/config_center.go:84 failed to find config center endpoints, err: No available instance, key: default:CseConfigCenter:latest2020-02-19 10:53:39.916 +00:00 WARN configcenter/config_center.go:38 can not get config server endpoint: No available instance, key: default:CseConfigCenter:latest2020-02-19 10:53:39.916 +00:00 DEBUG servicecomb/router.go:58 load route rule2020-02-19 10:53:39.916 +00:00 INFO router/router_config.go:42 router init success2020-02-19 10:53:39.916 +00:00 DEBUG archaius/transfer.go:22 Loading lb config from archaius into cache2020-02-19 10:53:39.916 +00:00 DEBUG archaius/transfer.go:82 Loading cb config from archaius into cache2020-02-19 10:53:39.916 +00:00 INFO archaius/transfer.go:117 save circuit breaker config [hystrix.CommandConfig{MaxConcurrentRequests:1000, RequestVolumeThreshold:20, SleepWindow:15000, ErrorPercentThreshold:50, ForceFallback:false, CircuitBreakerEnabled:false, ForceOpen:false, ForceClose:false, MetricsConsumerNum:0}] for []2020-02-19 10:53:39.916 +00:00 INFO archaius/transfer.go:117 save circuit breaker config [hystrix.CommandConfig{MaxConcurrentRequests:1000, RequestVolumeThreshold:20, SleepWindow:15000, ErrorPercentThreshold:50, ForceFallback:false, CircuitBreakerEnabled:false, ForceOpen:false, ForceClose:false, MetricsConsumerNum:0}] for []2020-02-19 10:53:39.916 +00:00 INFO tracing/tracer_manager.go:37 Tracing enabled. Start to init tracer.2020-02-19 10:53:39.916 +00:00 WARN tracing/tracer_manager.go:43 can not load any opentracing plugin, lost distributed tracing function2020-02-19 10:53:39.916 +00:00 INFO metrics/prometheus.go:31 go runtime metrics is exported2020-02-19 10:53:39.916 +00:00 INFO [email]go-chassis@v1.7.6[/email]/chassis.go:135 init chassis success, version is 1.7.62020-02-19 10:53:39.916 +00:00 INFO restful/restful_server.go:94 register rest server2020-02-19 10:53:39.916 +00:00 INFO restful/restful_server.go:112 schema registered is [PaymentResource]2020-02-19 10:53:39.916 +00:00 INFO restful/router.go:165 add route path.2020-02-19 10:53:39.916 +00:00 INFO server/server_manager.go:59 starting server rest...2020-02-19 10:53:39.921 +00:00 INFO restful/restful_server.go:252 [restful/swagger] listing is available at 0.0.0.0:4000/apidocs.json2020-02-19 10:53:39.921 +00:00 INFO restful/restful_server.go:252 [restful/swagger] 0.0.0.0:4000/swagger/ is mapped to folder ./swagger-ui/dist/2020-02-19 10:53:39.921 +00:00 INFO restful/restful_server.go:269 The schema has been created successfully. path:/opt/payment/conf/payment/schema2020-02-19 10:53:39.922 +00:00 INFO restful/restful_server.go:235 Restful server listening on: 172.17.0.5:40002020-02-19 10:53:39.922 +00:00 INFO server/server_manager.go:65 rest server start success2020-02-19 10:53:39.922 +00:00 INFO server/server_manager.go:67 All server Start Completed2020-02-19 10:53:39.923 +00:00 DEBUG servicecenter/servicecenter.go:195 AddSchemas success.2020-02-19 10:53:39.923 +00:00 INFO registry/bootstrap.go:118 upload schema to registry, payment2020-02-19 10:53:39.923 +00:00 INFO registry/bootstrap.go:121 Start to register instance.2020-02-19 10:53:39.924 +00:00 DEBUG servicecenter/servicecenter.go:257 GetMicroServiceID success2020-02-19 10:53:39.924 +00:00 INFO registry/bootstrap.go:135 service support protocols map[rest:{0.0.0.0:4000 0 }]2020-02-19 10:53:39.926 +00:00 WARN servicecenter/servicecenter.go:60 RegisterMicroServiceInstance get SelfInstancesCache failed, Mid/Sid: d90bc57f3a4cf639eb0b3db9c3e509da6ee202af/2058f159530611ea9a22fa163e66afd02020-02-19 10:53:39.926 +00:00 WARN servicecenter/servicecenter.go:64 RegisterMicroServiceInstance type asserts failed, Mid/Sid: d90bc57f3a4cf639eb0b3db9c3e509da6ee202af/2058f159530611ea9a22fa163e66afd02020-02-19 10:53:39.926 +00:00 INFO servicecenter/servicecenter.go:76 RegisterMicroServiceInstance success, MicroServiceID: d90bc57f3a4cf639eb0b3db9c3e509da6ee202af2020-02-19 10:53:39.926 +00:00 INFO registry/heartbeat.go:49 Add HB task, task:d90bc57f3a4cf639eb0b3db9c3e509da6ee202af/2058f159530611ea9a22fa163e66afd02020-02-19 10:53:39.926 +00:00 INFO servicecenter/servicecenter.go:82 RegisterMicroServiceInstance success, microServiceID/instanceID: d90bc57f3a4cf639eb0b3db9c3e509da6ee202af/2058f159530611ea9a22fa163e66afd0.2020-02-19 10:53:39.926 +00:00 INFO registry/bootstrap.go:186 Register instance success, serviceID/instanceID: d90bc57f3a4cf639eb0b3db9c3e509da6ee202af/2058f159530611ea9a22fa163e66afd0.2020-02-19 10:54:10.919 +00:00 DEBUG servicecenter/servicecenter.go:173 Heartbeat success, microServiceID/instanceID: d90bc57f3a4cf639eb0b3db9c3e509da6ee202af/2058f159530611ea9a22fa163e66afd0.[root@8578116901b9 log]#