Open AlexBulankou opened 1 year ago
Another thing to check - is the ping-discovery service running, does it have any errors?
As discussed offline, thank for getting this fix in: https://github.com/googleforgames/global-multiplayer-demo/pull/163. Now I get proper ping response:
{"asia-east1":{"Name":"agones-ping-udp-service","Namespace":"agones-system","Region":"asia-east1","Address":"35.234.13.212","Protocol":"UDP","Port":50000},"europe-west1":{"Name":"agones-ping-udp-service","Namespace":"agones-system","Region":"europe-west1","Address":"35.195.251.178","Protocol":"UDP","Port":50000},"us-central1":{"Name":"agones-ping-udp-service","Namespace":"agones-system","Region":"us-central1","Address":"104.154.171.159","Protocol":"UDP","Port":50000}}
However I'm still not able to start the online match. As before I get "Looking for a game server" screen which then disappears. I tried on three instances at the same time (even with 3 different users). I also tried on the editor and these are the editor logs:
[2023.03.30-05.37.54:940][367]LogDroidshooter: Fetch regions to ping with token: <token redacted>
[2023.03.30-05.37.55:079][370]LogDroidshooter: Gonna ping: agones-ping-udp-service asia-east1 35.234.13.212 UDP 50000 (asia-east1)
[2023.03.30-05.37.55:079][370]LogDroidshooter: Gonna ping: agones-ping-udp-service europe-west1 35.195.251.178 UDP 50000 (europe-west1)
[2023.03.30-05.37.55:079][370]LogDroidshooter: Gonna ping: agones-ping-udp-service us-central1 34.170.3.90 UDP 50000 (us-central1)
[2023.03.30-05.37.55:172][372]LogDroidshooter: Ping status: Success @ 34.170.3.90 in 0.06ms at us-central1
[2023.03.30-05.37.55:268][374]LogDroidshooter: Ping status: Success @ 35.234.13.212 in 0.14ms at asia-east1
[2023.03.30-05.37.55:268][374]LogDroidshooter: Ping status: Success @ 35.195.251.178 in 0.18ms at europe-west1
[2023.03.30-05.37.58:116][437]LogDroidshooter: Fetch server/ip call with token: <token redacted>
[2023.03.30-05.37.58:116][437]LogDroidshooter: Ping responses: 0.06 us-central1
[2023.03.30-05.37.58:116][437]LogDroidshooter: Ping responses: 0.14 asia-east1
[2023.03.30-05.37.58:116][437]LogDroidshooter: Ping responses: 0.18 europe-west1
then after 2 min:
[2023.03.30-05.39.58:470][837]LogHttp: Warning: 0x4ea38812d00: HTTP request timed out after 180.00 seconds URL=34.72.52.2/play
[2023.03.30-05.39.58:516][838]LogHttp: Warning: 0x4ea38812d00: request failed, libcurl error: 0 (No error)
[2023.03.30-05.39.58:517][838]LogHttp: Warning: 0x4ea38812d00: libcurl info message cache 0 (Found bundle for host: 0x4e9fc820840 [serially])
[2023.03.30-05.39.58:517][838]LogHttp: Warning: 0x4ea38812d00: libcurl info message cache 1 (Re-using existing connection #3 with host 34.72.52.2)
[2023.03.30-05.39.58:517][838]LogHttp: Warning: 0x4ea38812d00: libcurl info message cache 2 (Connected to 34.72.52.2 (34.72.52.2) port 80 (#3))
[2023.03.30-05.39.58:517][838]LogHttp: Warning: 0x4ea38812d00: libcurl info message cache 3 (We are completely uploaded and fine)
[2023.03.30-05.39.58:517][838]LogHttp: Warning: 0x4ea38812d00: libcurl info message cache 4 (Closing connection 3)
[2023.03.30-05.39.58:517][838]LogDroidshooter: Request failed.
Please let me know what I should try next. Thanks!
Logs from the frontend would be very helpful here. Check if open-match-frontend.open-match.svc.cluster.local:50504 is deployed and functioning correctly because it seems that it hangs on the /play that invokes openmatch.
Just capturing from offline conversations - looks like this is tied to corporate policies that limit usage of external firewall rules (specifically our game server firewall rules).
This should be fixed by #158
After completing the demo setup I able to start droidshooter in "free flying" mode both when launching from the editor and from the launcher, but I cannot do the online match. When I tap the button to start online game I get a waiting prompt and then it goes away after 20 sec or so. I tried launching one instance from editor, one instance from the go launcher (logged in with different accounts), or starting multiple instances from the launcher. This is how I'm starting my editor:
In the shell I see the following, when running with the editor:
Found game server at: 146.148.125.249 7331
(see full output below). From the server side, I confirmed that all deployments succeeded and all workloads are running. I was trying to see what logs might be interesting, but not sure what to look for. Some suspicious logs:open-match-frontend (~ once per connection attempt):
level=error msg="rpc error: code = Unavailable desc = GetTicket, id: cggbpnnru5qc4ia4r6q0, failed to connect to redis: context canceled" app=openmatch component=api.frontend"
frontend - many instances of
Ticket cggbqivru5qc4ia4r6qg: created: search_fields:{double_args:{key:"skill" value:0}}
followed byerror occured @ stats update: unable to update profile stats, error code: 404
Let me know if there are any other errors I should be looking for or any other ideas what to try. Also if you have a game client that is verified to be working, I can allowlist you into my server to try to connect to the server.
This the client output I see in the shell when running with the editor: