baymax55 opened a new issue #317:
URL: https://github.com/apache/dubbo-go-samples/issues/317
环境:win11|GoLand 2021.3|go1.17.1.windows-amd64
现象: context deadline exceeded
启动helloworld包下的go-server(正常启动),然后在java-client包下执行sh run.sh 正常,客户端正常相应;
but,启动go-client包下的go-client 失败:
GOROOT=D:\devPrograms\go1.17.1.windows-amd64\go #gosetup
GOPATH=C:\Users\Administrator\go #gosetup
D:\devPrograms\go1.17.1.windows-amd64\go\bin\go.exe build -o
C:\Users\Administrator\AppData\Local\Temp\GoLand\___helloworld_go_client.exe
github.com/apache/dubbo-go-samples/helloworld/go-client/cmd #gosetup
C:\Users\Administrator\AppData\Local\Temp\GoLand\___helloworld_go_client.exe
2022-02-01T17:43:08.143+0800 INFO config/root_config.go:159
[Config Center] Config center doesn't start
2022-02-01T17:43:08.144+0800 INFO zookeeper/registry.go:72
[Zookeeper Registry] New zookeeper registry with url map[host:192.168.5.104
port:52181 protocol:zookeeper registry:zookeeper registry.group:
registry.label:true registry.namespace: registry.preferred:false
registry.role:0 registry.timeout:3000s registry.ttl:10s registry.weight:0
registry.zone: simplified:false]
2022-02-01T17:43:08.144+0800 INFO zookeeper/client.go:55 [Zookeeper
Client] New zookeeper client with name = 192.168.5.104:52181, zkAddress =
192.168.5.104:52181, timeout = 10s
2022-02-01T17:43:08.144+0800 INFO v3router/router_chain.go:55
[NewUniformRouterChain] Config center does not start, please check if the
configuration center has been properly configured in dubbogo.yml
&pid=21664®istry=zookeeper®istry.role=3&release=dubbo-golang-3.0.0&service.filter=echo%2Cmetrics%2Ctoken%2Caccesslog%2Ctps%2Cgeneric_service%2Cexecute%2Cpshutdown&side=provider×tamp=1643708411}
2022-02-01T17:43:08.214+0800 INFO dubbo3/dubbo3_protocol.go:141
[Triple Protocol] Refer service:
tri://192.168.5.103:20000/com.apache.dubbo.sample.basic.IGreeter?anyhost=true&app.version=3.0.0&application=dubbo.io&async=false&bean.name=GreeterProvider&cluster=failover&config.tracing=&environment=dev&export=true&generic=&group=&interface=com.apache.dubbo.sample.basic.IGreeter&loadbalance=random&message_size=4&metadata-type=local&methods=SayHello%2CSayHelloStream&module=sample&name=dubbo.io&organization=dubbo-go&owner=dubbo-go&pid=21664&provided-by=&reference.filter=cshutdown®istry=zookeeper®istry.role=3®istry.ttl=10s&release=dubbo-golang-3.0.0&remote.timestamp=1643708411&retries=&serialization=&service.filter=echo%2Cmetrics%2Ctoken%2Caccesslog%2Ctps%2Cgeneric_service%2Cexecute%2Cpshutdown&side=provider&sticky=false×tamp=1643708588&version=
2022-02-01T17:43:08.225+0800 INFO zookeeper/registry.go:223
[Zookeeper Registry] Registry instance with root =
/dubbo/com.apache.dubbo.sample.basic.IGreeter/consumers, node =
consumer%3A%2F%2F192.168.5.103%2Fcom.apache.dubbo.sample.basic.IGreeter%3Fapp.version%3D3.0.0%26application%3Ddubbo.io%26async%3Dfalse%26bean.name%3DGreeterClientImpl%26cluster%3Dfailover%26config.tracing%3D%26environment%3Ddev%26generic%3D%26group%3D%26interface%3Dcom.apache.dubbo.sample.basic.IGreeter%26loadbalance%3D%26metadata-type%3Dlocal%26module%3Dsample%26name%3Ddubbo.io%26organization%3Ddubbo-go%26owner%3Ddubbo-go%26protocol%3Dtri%26provided-by%3D%26reference.filter%3Dcshutdown%26registry.role%3D0%26release%3Ddubbo-golang-3.0.0%26retries%3D%26serialization%3D%26side%3Dconsumer%26sticky%3Dfalse%26timestamp%3D1643708588%26version%3D
2022-02-01T17:43:08.296+0800 INFO cmd/client.go:43 start to
test dubbo
2022-02-01T17:43:14.314+0800 WARN proxy/proxy.go:210 [CallProxy]
received rpc err: Failed to invoke the method SayHello in the service
com.apache.dubbo.sample.basic.IGreeter. Tried 1 times of the providers
[tri://:@192.168.5.103:20000/?interface=com.apache.dubbo.sample.basic.IGreeter&group=&version=
tri://:@192.168.5.103:20000/?interface=com.apache.dubbo.sample.basic.IGreeter&group=&version=]
(2/1)from the registry
zookeeper://192.168.5.104:52181?registry=zookeeper®istry.group=®istry.label=true®istry.namespace=®istry.preferred=false®istry.role=0®istry.timeout=3000s®istry.ttl=10s®istry.weight=0®istry.zone=&simplified=false
on the consumer 192.168.5.103 using the dubbo version 3.0.0. Last error is
context deadline exceeded.: context deadline exceeded
2022-02-01T17:43:14.314+0800 ERROR cmd/client.go:49 context
deadline exceeded
main.main
C:/Users/Administrator/GolandProjects/dubbo-go-samples/helloworld/go-client/cmd/client.go:49
runtime.main
D:/devPrograms/go1.17.1.windows-amd64/go/src/runtime/proc.go:255
2022-02-01T17:43:14.314+0800 INFO cmd/client.go:51 client
response result:
Process finished with the exit code 0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]