apache / servicecomb-service-center

A standalone service center to allow services to register their instance information and to discover providers of a given service
Apache License 2.0
1.34k stars 343 forks source link

docker sc 版本不是最新的 #641

Open imhuzi opened 4 years ago

imhuzi commented 4 years ago

Describe the bug servicecomb-java-chassis 2.x 版本 和 docker sc 的版本规则 不匹配

问题 是:docker 的 service-center版本 太低了

  ~ docker run servicecomb/service-center -it /bin/bash
2020-03-31T03:46:20.282Z    INFO    core/config.go:102  service center is running simultaneously with 2 CPU cores
2020-03-31T03:46:20.283Z    INFO    version/version.go:50   Version: 1.1.0
2020-03-31T03:46:20.284Z    INFO    version/version.go:51   Build tag: 20190507120440.1.1.0.c6821d1d
2020-03-31T03:46:20.284Z    INFO    version/version.go:52   Go version: go1.11.2
2020-03-31T03:46:20.284Z    INFO    version/version.go:53   OS/Arch: linux/amd64

To Reproduce Steps to reproduce the behavior:

  1. run demo-edge and docker run servicecomb/service-center -it /bin/bash
  2. See error:
[2020-03-31 10:54:05,476/CST][Default Service Center Task [0]][ERROR]Can not find any instances from service center due to previous errors. service=ucrm/demo/0.0.0.0+ org.apache.servicecomb.serviceregistry.registry.cache.RefreshableMicroserviceCache.pullInstance(RefreshableMicroserviceCache.java:92)
[2020-03-31 10:54:05,655/CST][registry-vert.x-eventloop-thread-2][WARN]failed to findInstances: {"errorCode":"400001","errorMessage":"Invalid parameter(s)","detail":"field 'FindInstancesRequest.VersionRule' invalid value '0.0.0.0+' does not match rule: {Min: 1, Max: 129, Regexp: x[.y[.z]] or x[.y[.z]]+ or x[.y[.z]]-x[.y[.z]] or latest, x y and z should be int16 format}"}

Expected behavior A clear and concise description of what you expected to happen.

Platform And Runtime (please complete the following information):

Platform

Runtime

Additional context Add any other context about the problem here.

little-cui commented 3 years ago

please try the service-center version latest or 2.0.0