question

rmontino avatar image
rmontino asked

Server stuck "Active" without instance running

TitleID: 88F85

Repro steps: 1. Have a client request a multiplayer server. 2. Turn off the client's internet. Our game server waits 1 minute for a player to connect before calling Unity's Application.Quit(). Expected behavior: Server state goes to standby. Actual behavior: Server state stuck active.

[1]: /storage/attachments/5862-capture15.png

[2]: /storage/attachments/5863-capture16.png

Custom Game Servers
capture15.png (44.0 KiB)
capture16.png (124.6 KiB)
1 comment
10 |1200

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

rmontino avatar image rmontino commented ·

Repro steps: 1. Have a client request a multiplayer server. 2. Turn off the client's internet. Our game server waits 1 minute for a player to connect before calling Unity's Application.Quit(). Expected behavior: Server state goes to standby Actual behavior: Server state stuck active

0 Likes 0 ·

1 Answer

·
Dimitris-Ilias Gkanatsios avatar image
Dimitris-Ilias Gkanatsios answered

Is Application.Quit called? Servers never go back to StandingBy after Active, when the process exits we create a new one.

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

rmontino avatar image rmontino commented ·

@Dimitris-Ilias Gkanatsios you are right. There was a "pause" in "run_playfab_server.bat". In case this helps anyone else, do not put pauses/sleeps at the end of scripts running on the server :-P, and Dimitris is always right :).

1 Like 1 ·
rmontino avatar image rmontino commented ·

Sorry, yes I knew that. I should've said "Expected behavior: New standby comes online. Actual behavior: No new standby server gets created".

The server look-up page (capture15) shows an active with zero players. That should be a standby. Logging into the VM and opening the task manager shows 2 servers running (capture16). There should be 3.

Normally, if I "End task" my game server in the VM, a new standby gets created instantly but starting yesterday, it doesn't.

0 Likes 0 ·
Dimitris Gkanatsios avatar image Dimitris Gkanatsios rmontino commented ·

How is this .bin process called? Any chance what calls it is alive but for some reason cannot create a third instance of it?

0 Likes 0 ·
rmontino avatar image rmontino Dimitris Gkanatsios commented ·

We are using the standard game servers with free 750 core-hours . So, I believe Playfab multiplayer agent is responsible for starting standby servers. It does so by calling our "run_playfab.bat". 5881-capture20.png

I just tested it again. Our game server calls Application.Quit() to kill itself but no standby server get launched.

0 Likes 0 ·
capture20.png (104.2 KiB)

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.