Search Unity

Question Problem with allocated servers shutting down automatically

Discussion in 'Game Server Hosting' started by anogame_watanabe, Dec 18, 2023.

  1. anogame_watanabe

    anogame_watanabe

    Joined:
    Apr 2, 2017
    Posts:
    6
    I keep calling the next method every frame after the server starts.
    Despite this, the assigned server will automatically shut down after about 5 minutes.
    I cannot play the game comfortably if it automatically shuts down during gameplay.
    Is there any way to prevent the game from being interrupted or to shut it down at will?

    IServerQueryHandler.UpdateServerCheck();
     
  2. anogame_watanabe

    anogame_watanabe

    Joined:
    Apr 2, 2017
    Posts:
    6
    I updated the server and it was successfully activated for over I hour.
    However, I was not able to figure out exactly what was happening, but the assigned server was still deactivated after 1 hour and 20 minutes.

    Calling UpdateServerCheck() obviously succeeded in extending the connection time, but what is the reason why it cannot be done permanently?
     
  3. JonnyL_Unity

    JonnyL_Unity

    Unity Technologies

    Joined:
    Jan 5, 2023
    Posts:
    3
    Hello! Thanks for your question - glad to hear you have been able to get your server running on our service.

    Have you checked your server event log to see if there are any reported errors or events that may suggest an issue with the game server? Usually a server will shutdown or restart when query has not been implemented appropriately, or if a server session exits with an error code other than 0 - the event log may be able to point you in the right direction here.
     
  4. anogame_watanabe

    anogame_watanabe

    Joined:
    Apr 2, 2017
    Posts:
    6
    Where can I find out how to implement a query?
    I plan to do the implementation using only the API, is that a problem?

    I am having a very enjoyable challenge with what I want to implement and finding the documentation that will lead to a solution.