question

argentagoncalves avatar image
argentagoncalves asked

Playfab not restarting my servers

Hey guys I have two types of server in my Playfab, I created an orchestrator, a server that can receive a lot of connections, and this one show the GameServer sessions opened in EOS to the players. It's working good, In other hand I have the GameServers, that one open new sessions in EOS and accept some players to a play, and it works too, but when the server end that match I need the server restart the match, I tryed get back into a new scene and come back to the match scene, but serevr do not accept connection, I finished the session, and opened a new session, but the game still on the match that be ended, I see that I need to close the server app, I did it, but Playfab do not start a new one to me, how I can start a new one server, or how can I restart the match to accept new connections, someone can help me?

The last thing I did is when the game finishes and server come back to the main menu, I see if is the server and send a GSDK Shutdown. And received a Failed to parse heartbeat.

I am using Unreal 5.1.1 own builded and all playfab things are made in blueprints!

 [2023.07.06-17.38.46:109][619]LogBlueprintUserMessages: [MainMenu_C_0] Server Restarting Now ----- Restart the System Here
 [2023.07.06-17.38.55:497][903]LogNet: NotifyAcceptingConnection accepted aggregation: 138.99.198.183:50663 (5)
 [2023.07.06-17.40.51:858][423]LogPlayFabGSDK: Error: Failed to parse heartbeat
 [2023.07.06-17.44.55:267][767]LogEOSSDK: LogEOS: Updating Product SDK Config, Time: 1321.680542
 [2023.07.06-17.44.55:399][771]LogEOSSDK: LogEOS: SDK Config Product Update Request Completed - No Change
 [2023.07.06-17.44.55:399][771]LogEOSSDK: LogEOS: ScheduleNextSDKConfigDataUpdate - Time: 1321.779663, Update Interval: 300.247192
Custom Game Serversmultiplayer
10 |1200

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

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

After closing the server application (in other words, you terminate a server instance), PlayFab will auto start a new server instance in standby status, then you need to call RequestMultiplayerSever API to make the standby server active and get the new active server instance.

2 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.

argentagoncalves avatar image argentagoncalves commented ·

Yes I am trying to do this, I tryed to close app, tryed to send a GSDK_Shutdown, but doesn't have success in terminate the server, here i cant put Images, I tryed put the images of the blueprints here to show you what I am doing, I need to know what is the order to terminate it!

0 Likes 0 ·
Xiao Zha avatar image Xiao Zha argentagoncalves commented ·

To shut down the server, you usually need to call Unreal method FPlatformMisc::RequestExit(false) on the server, which will shut down your server application, and then your server instance will be terminated. Alternatively, you can call the Shutdown Multiplayer Server API to manually shut down the server instance.

0 Likes 0 ·

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.