alvyxaz / barebones-masterserver

Master Server framework for Unity
476 stars 106 forks source link

Spawner server not spawn a game server #146

Open SmugglerST opened 6 years ago

SmugglerST commented 6 years ago

Hi,

I have Master Server and Spwner Server on linux in headless mode. Spawner server spawn game server when game start and close when game end. On the whole, everythings work correctly, but when servers works through the night and nobody play game, on the morning when I want to play, spawner server don't want spawn a new game server and hangs on "Starting game server" status.

When spawner server spawn game server correctly logs:

correct

Logs when i want play game after night:

incorrect

Strange is that thing, that i can play game normally, but when i try play game in the next morning i can't :/.

When i create local build and start servers in local, everythings work good, but i get bad logs like this:

badlogs

Somebody know why this happening?

joaoborks commented 6 years ago

Not sure if you are using the asset store version or the repository version, but the repository is always the newest version and fixes some issues still living on the asset store.

Now, the timing is not a very good pattern to trace bugs, you need to identify what is different on the environment on the night and on the morning, how many sessions it went through, for how long is it active, things like that. Check also if your game servers are closing their instances accordingly, otherwise you might have like 100 instances that were supposed to be killed still there. My bet is that this is something related to spawned instances limitation (seen on its Max Spawned Instances variable). Give us more logs and we'll find the issue!

SmugglerST commented 6 years ago

I used 1.03 version and i can't update it. I discover today that at the night from some reasons my spawner server process are killed, but still have no idea why.