You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "wangjieyu-star (via GitHub)" <gi...@apache.org> on 2023/06/12 09:59:46 UTC
[GitHub] [dubbo-go-samples] wangjieyu-star opened a new issue, #584: game 启动报错
wangjieyu-star opened a new issue, #584:
URL: https://github.com/apache/dubbo-go-samples/issues/584
game-go-game 启动报错,
并且game-go-gate 进行 rpc调用 报错
=================================
game 启动日志:
GOROOT=C:\Program Files\Go #gosetup
GOPATH=C:\Users\wang\go #gosetup
"C:\Program Files\Go\bin\go.exe" build -o C:\Users\wang\AppData\Local\Temp\GoLand\___3game_go_game.exe -gcflags "all=-N -l" github.com/apache/dubbo-go-samples/game/go-server-game/cmd #gosetup
C:\Users\wang\AppData\Roaming\JetBrains\IntelliJIdea2022.3\plugins\go-plugin\lib\dlv\windows\dlv.exe --listen=127.0.0.1:59564 --headless=true --api-version=2 --check-go-version=false --only-same-user=false exec C:\Users\wang\AppData\Local\Temp\GoLand\___3game_go_game.exe --
API server listening at: 127.0.0.1:59564
2023-06-12T17:51:44.115+0800 INFO config/config_loader_options.go:201 The following profiles are active: default
2023-06-12T17:51:44.147+0800 INFO config/root_config.go:138 [Config Center] Config center doesn't start
2023-06-12T17:51:44.148+0800 ERROR config/consumer_config.go:117 Dubbo-go cannot get interface name with registeredTypeName = BasketballService.Please run the command 'go install github.com/dubbogo/dubbogo-c
li/cmd/protoc-gen-go-triple@latest' to get the latest protoc-gen-go-triple, and then re-generate your pb file again by this tool.If you are not using pb serialization, please set 'interfaceName' field in reference
config to let dubbogo get the interface name.
dubbo.apache.org/dubbo-go/v3/config.(*ConsumerConfig).Load
C:/Users/wang/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.6-0.20230528084837-9cf1b9f976da/config/consumer_config.go:117
dubbo.apache.org/dubbo-go/v3/config.(*RootConfig).Start.func1
C:/Users/wang/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.6-0.20230528084837-9cf1b9f976da/config/root_config.go:212
sync.(*Once).doSlow
C:/Program Files/Go/src/sync/once.go:74
sync.(*Once).Do
C:/Program Files/Go/src/sync/once.go:65
dubbo.apache.org/dubbo-go/v3/config.(*RootConfig).Start
C:/Users/wang/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.6-0.20230528084837-9cf1b9f976da/config/root_config.go:210
dubbo.apache.org/dubbo-go/v3/config.(*RootConfig).Init
C:/Users/wang/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.6-0.20230528084837-9cf1b9f976da/config/root_config.go:205
dubbo.apache.org/dubbo-go/v3/config.Load
C:/Users/wang/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.6-0.20230528084837-9cf1b9f976da/config/config_loader.go:59
main.main
D:/ProjectIdea/dubbo-go-samples/game/go-server-game/cmd/server.go:50
runtime.main
C:/Program Files/Go/src/runtime/proc.go:250
2023-06-12T17:51:44.149+0800 WARN config/consumer_config.go:166 The interface org.apache.dubbo.gate.basketballService invoker not exist, may you should check your interface config.
2023-06-12T17:51:44.150+0800 INFO dubbo/dubbo_protocol.go:84 [DUBBO Protocol] Export service: dubbo://:20000/org.apache.dubbo.game.basketballService?accesslog=&app.version=&application=dubbo.io&auth=&bea
n.name=gameProvider.basketballService&cluster=failover&config.tracing=&environment=&execute.limit=&execute.limit.rejected.handler=&export=true&interface=org.apache.dubbo.game.basketballService&loadbalance=random&ma
x-server-recv-msg-size=4mib&max-server-send-msg-size=&metadata-type=local&methods.Message.loadbalance=&methods.Message.retries=0&methods.Message.tps.limit.interval=&methods.Message.tps.limit.rate=&methods.Message.t
ps.limit.strategy=&methods.Message.weight=0&methods.Offline.loadbalance=&methods.Offline.retries=0&methods.Offline.tps.limit.interval=&methods.Offline.tps.limit.rate=&methods.Offline.tps.limit.strategy=&methods.Off
line.weight=0&methods.Online.loadbalance=&methods.Online.retries=0&methods.Online.tps.limit.interval=&methods.Online.tps.limit.rate=&methods.Online.tps.limit.strategy=&methods.Online.weight=0&module=sample&name=dub
bo.io&organization=dubbo-go&owner=dubbo-go¶m.sign=&pid=16516®istry=zookeeper®istry.role=3&release=dubbo-golang-3.0.4&retries=&serialization=&service.filter=echo%2Cmetrics%2Ctoken%2Caccesslog%2Ctps%2Cgener
ic_service%2Cexecute%2Cpshutdown&side=provider×tamp=1686563504&tps.limit.interval=&tps.limit.rate=&tps.limit.rejected.handler=&tps.limit.strategy=&tps.limiter=&warmup=100
2023/06/12 17:51:44 Connected to 127.0.0.1:2181
2023-06-12T17:51:44.150+0800 WARN prometheus/reporter.go:425 new prometheus reporter with error = listen tcp :9090: bind: Only one usage of each socket address (protocol/network address/port) is normally
permitted.
2023-06-12T17:51:44.150+0800 WARN prometheus/reporter.go:425 new prometheus reporter with error = listen tcp :9090: bind: Only one usage of each socket address (protocol/network address/port) is normally
permitted.
2023-06-12T17:51:44.151+0800 INFO zookeeper/client.go:53 [Zookeeper Client] New zookeeper client with name = 127.0.0.1:2181, zkAddress = 127.0.0.1:2181, timeout = 5s
2023/06/12 17:51:44 Connected to 127.0.0.1:2181
2023/06/12 17:51:44 Authenticated: id=72057598797283375, timeout=4000
2023/06/12 17:51:44 Re-submitting `0` credentials after reconnect
2023/06/12 17:51:44 Authenticated: id=72057598797283376, timeout=5000
2023/06/12 17:51:44 Re-submitting `0` credentials after reconnect
2023-06-12T17:51:44.183+0800 INFO dubbo/dubbo_protocol.go:84 [DUBBO Protocol] Export service: dubbo://:59571/org.apache.dubbo.metadata.MetadataService?accesslog=&app.version=&application=dubbo.io&auth=&b
ean.name=MetadataService&cluster=&config.tracing=&environment=&execute.limit=&execute.limit.rejected.handler=&export=true&group=dubbo.io&interface=org.apache.dubbo.metadata.MetadataService&loadbalance=&max-server-r
ecv-msg-size=&max-server-send-msg-size=&metadata-type=local&module=sample&name=dubbo.io&organization=dubbo-go&owner=dubbo-go¶m.sign=&pid=16516®istry.role=3&release=dubbo-golang-3.0.4&retries=&serialization=&
service.filter=echo%2Cmetrics%2Ctoken%2Caccesslog%2Ctps%2Cgeneric_service%2Cexecute%2Cpshutdown&side=provider×tamp=1686563504&tps.limit.interval=&tps.limit.rate=&tps.limit.rejected.handler=&tps.limit.strategy=
&tps.limiter=&version=1.0.0&warmup=
2023-06-12T17:51:44.184+0800 INFO configurable/exporter.go:80 [Metadata Service] The MetadataService exports urls : [dubbo://:59571/org.apache.dubbo.metadata.MetadataService?accesslog=&app.version=&applic
ation=dubbo.io&auth=&bean.name=MetadataService&cluster=&config.tracing=&environment=&execute.limit=&execute.limit.rejected.handler=&export=true&group=dubbo.io&interface=org.apache.dubbo.metadata.MetadataService&loa
dbalance=&max-server-recv-msg-size=&max-server-send-msg-size=&metadata-type=local&module=sample&name=dubbo.io&organization=dubbo-go&owner=dubbo-go¶m.sign=&pid=16516®istry.role=3&release=dubbo-golang-3.0.4&re
tries=&serialization=&service.filter=echo%2Cmetrics%2Ctoken%2Caccesslog%2Ctps%2Cgeneric_service%2Cexecute%2Cpshutdown&side=provider×tamp=1686563504&tps.limit.interval=&tps.limit.rate=&tps.limit.rejected.handle
r=&tps.limit.strategy=&tps.limiter=&version=1.0.0&warmup=]
2023-06-12T17:51:44.184+0800 INFO config/config_loader.go:95 Starting register instance address &{192.168.2.145:20000 dubbo.io 192.168.2.145 20000 true true map[dubbo.endpoints:[{"port":20000,"protocol":
"dubbo"}] dubbo.metadata-service.url-params:{"application":"dubbo.io","group":"dubbo.io","port":"59571","protocol":"dubbo","release":"dubbo-golang-3.0.4","timestamp":"1686563504","version":"1.0.0"} dubbo.metadata.r
evision:7171211682 dubbo.metadata.storage-type:local dubbo.subscribed-services.revision:0] <nil> []}
2023-06-12T17:51:44.238+0800 WARN zookeeper/listener.go:76 ListenServiceNodeEvent->listenSelf(zk path{/services/dubbo.io/192.168.2.145:20000}) goroutine exit now
=================================================
下面是 gate 调用game rpc 控制台的打印
2023-06-12T17:58:29.689+0800 ERROR cmd/server.go:91 zhangsan
main.startHttp.func1
D:/ProjectIdea/dubbo-go-samples/game/go-server-gate/cmd/server.go:91
net/http.HandlerFunc.ServeHTTP
C:/Program Files/Go/src/net/http/server.go:2109
net/http.(*ServeMux).ServeHTTP
C:/Program Files/Go/src/net/http/server.go:2487
net/http.serverHandler.ServeHTTP
C:/Program Files/Go/src/net/http/server.go:2947
net/http.(*conn).serve
C:/Program Files/Go/src/net/http/server.go:1991
2023/06/12 17:58:29 http: panic serving 127.0.0.1:64970: runtime error: invalid memory address or nil pointer dereference
goroutine 131 [running]:
net/http.(*conn).serve.func1()
C:/Program Files/Go/src/net/http/server.go:1850 +0x148
panic({0x2ce7160, 0x404a1d0})
C:/Program Files/Go/src/runtime/panic.go:890 +0x267
github.com/apache/dubbo-go-samples/game/go-server-gate/pkg.Login({0x320bed8, 0xc000058058}, {0xc0005280a0, 0x8})
D:/ProjectIdea/dubbo-go-samples/game/go-server-gate/pkg/consumer.go:34 +0x5a
main.startHttp.func1({0x320a838, 0xc0005300e0}, 0xc00066c500)
D:/ProjectIdea/dubbo-go-samples/game/go-server-gate/cmd/server.go:92 +0x194
net/http.HandlerFunc.ServeHTTP(0x30e3378, {0x320a838, 0xc0005300e0}, 0xc00066c500)
C:/Program Files/Go/src/net/http/server.go:2109 +0x43
net/http.(*ServeMux).ServeHTTP(0x4083c00, {0x320a838, 0xc0005300e0}, 0xc00066c500)
C:/Program Files/Go/src/net/http/server.go:2487 +0x135
net/http.serverHandler.ServeHTTP({0xc0000ee5a0}, {0x320a838, 0xc0005300e0}, 0xc00066c500)
C:/Program Files/Go/src/net/http/server.go:2947 +0x474
net/http.(*conn).serve(0xc0002ae0a0, {0x320bea0, 0xc000363940})
C:/Program Files/Go/src/net/http/server.go:1991 +0x195c
created by net/http.(*Server).Serve
C:/Program Files/Go/src/net/http/server.go:3102 +0x9e5
--
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: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go-samples] AlexStocks commented on issue #584: game 启动报错
Posted by "AlexStocks (via GitHub)" <gi...@apache.org>.
AlexStocks commented on issue #584:
URL: https://github.com/apache/dubbo-go-samples/issues/584#issuecomment-1587008320
@cjphaha pls look look
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] game 启动报错 [dubbo-go-samples]
Posted by "chickenlj (via GitHub)" <gi...@apache.org>.
chickenlj closed issue #584: game 启动报错
URL: https://github.com/apache/dubbo-go-samples/issues/584
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org