question

TJ Daberkow avatar image
TJ Daberkow asked

Server Sporadically Not Fully Starting

Hello, we have been using Playfab's server hosting 2.0 as well as the new matchmaking API and have been having a random issue with servers failing to fully start some times which causes players to be unable to join.

When it works correctly we create the matchmaking ticket for both players, they are matched together and a server is allocated. Both players are then able to join the server and when checking its logs after it is shut down everything looks good.

The problem is that sometimes when the matchmaker allocates a server it will fail to fully start up and become available for the clients to join. When this happens the server will never become visible for the clients to join it. Also when the server does finally shutdown the log file is mostly empty and does not include the normal messages we see in a successful server launch. The last log message we get from it is that the server is ready for players via the GSDK and then no further log messages.

Title Id is 3401

We would appreciate any help with this issue and I will be happy to provide any other needed information to help troubleshoot.

Thanks!

Custom Game ServersMatchmaking
10 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

JayZuo avatar image JayZuo ♦ commented ·

Do you mean you can get the IP address and port after match but can't connect to server with this address? What's the error you've got when trying to connect to server?

0 Likes 0 ·
TJ Daberkow avatar image TJ Daberkow JayZuo ♦ commented ·

We are actually using Photon Bolt for our hosted server so we do not connect directly via IP / Port. Bolt is a Unity based dedicated server solution. The way it works is after the Playfab GSDK says ready for players our Bolt server will connect and register itself with the Photon Cloud. On the clients side they also connect to the Photon cloud and are then provided with a list of available servers they can connect to.

The problem is when the server fails to fully start via Playfab hosting it will never register with Photon so the clients can't see it to connect to it. We are trying to figure out why sometimes it will allocate and start a server successfully but other times it fails and we get no log messages. Thanks for the help

0 Likes 0 ·
Andy avatar image Andy ♦♦ TJ Daberkow commented ·

Do you have any logging that might indicate what your server executable is doing when it fails to fully start?

0 Likes 0 ·
Show more comments
JayZuo avatar image JayZuo ♦ commented ·

So you can see the log "[PlayfabServerManagement] Server is Ready for Players!" but can't find "Got Session Id: {SessionId}" or "[PlayfabServerManagement] Failed to get Session Id of Server"?

0 Likes 0 ·
TJ Daberkow avatar image TJ Daberkow JayZuo ♦ commented ·

We do get the session Id log as well. Here is an example of the logs from a server that fails to fully start. This is the entire log file we get.

2019-04-10T15:24:07.3288880Z    VM Agent Endpoint: 172.19.0.11:56001
2019-04-10T15:24:07.3398881Z    Instance Id: 19a4391cac0f78197660e7cb8c710d27f2f4f52b94d5df2f07a913218f214d70
2019-04-10T15:27:57.5190954Z    Log - [PlayfabServerManagement] Server is Ready for Players!
2019-04-10T15:27:57.5190954Z    
2019-04-10T15:27:57.5200955Z    Log - Got Session Id: fd48ce17-1eb4-4b29-8fd5-a8c56d8cb202
2019-04-10T15:27:57.5200955Z    
2019-04-10T15:27:57.5200955Z    Log - [PlayfabServerManagement] Got 2 expected players
2019-04-10T15:27:57.5200955Z    
2019-04-10T15:27:57.5200955Z    Log - Expected Player: title_player_account!4448489099CD558D
2019-04-10T15:27:57.5200955Z    
2019-04-10T15:27:57.5210950Z    Log - Expected Player: title_player_account!E8026C7067CBABB9

0 Likes 0 ·
TJ Daberkow avatar image TJ Daberkow JayZuo ♦ commented ·

Here is an example of a log file from a server that successfully started. It continues on after this.

workinglogfile.zip

0 Likes 0 ·
workinglogfile.zip (1.4 KiB)
JayZuo avatar image JayZuo ♦ TJ Daberkow commented ·

According to your log file and the code you've posted, all GSDK related functions are working well. I'm not sure how you do [Server Running Check] and other things. In you code, I can only see a "TimeoutHandle" in ReadyForPlayers. So I'd think this issue is still more related to your own code. You may need to check your code logic after ReadyForPlayers.

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.