[RESOLVED] [Bug] Server hangs upon launch
-
Edit: Issue is mostly resolved as of r1167. It still hangs sometimes but it is rare after the update.
---OLD---
Game: Plutonium T6
Issue: Upon initial launch of server, the T6 server cmds will show that the server has launched (it will send heartbeats and map rotate normally) - but is not joinable by players or visible on the server list ("Joining Session in Progress" forever). IW4MAdmin can connect however.
Occurance: Random. May occur twice in secession or not occur for 10 consecutive restarts. On average about one in every four launches.
How Long: For at least the past few months
Platform: Windows 10, Windows Server 2016 (Updated). Latest .NET installed.
Crash Dump: N/A since the application does not crash or know that anything is wrong, no crash dump is generated.While this issue can be resolved with simply restarting the server, in can become irritating to those who have automated their servers.
Discussed with several server owners and this appears to be a known issue. Thought it would be a good idea to start a thread to discuss and update if we learn anything new.
-
CPL I can confirm that this issue can also occur with the client as well. If it happens to the client its not possible to join any games.
I think this issue has been around since the first release of r791 I believe. I've had this happen to me dozens of times since I need to relaunch my local server frequently for testing mods.
Hopefully it can be fixed once and for all.
-
CPL yeah, has been a issue for a bit
Edit: Talking to INSANEMODE, dont know if it's a thing but you could make a serverside plugin that checks if the server is on the serverlist on map rotation or server startup via the public API and if it's not, restart it or kill the process to let the tool auto restarting it. -
CPL I have a similar problem to, server was on and visibile but tomorrow morning the server do not show in the server list. But only one of 3 servers, i have 3 servers on 1 VPS the others 2 show in server list.
- Server online and responding to commands
-
mikey said in [Bug] Server hangs upon launch:
CPL yeah, has been a issue for a bit
Edit: Talking to INSANEMODE, dont know if it's a thing but you could make a serverside plugin that checks if the server is on the serverlist on map rotation or server startup via the public API and if it's not, restart it or kill the process to let the tool auto restarting it.Unfortunately the hung server still appears in the public API, but not in the in-game server browser. So this method cannot be used.
Thanks everyone else who commented so far.
-
CPL said in [Bug] Server hangs upon launch:
Unfortunately the hung server still appears in the public API, but not in the in-game server browser. So this method cannot be used.
Which makes that, contrary to your statement, perfect to check the server.
- Grab all servers from the API with a given list of Endpoints (get that from iw4ma)
- Send query packages to them.
- They reply? Perfect, they are up.
- They don't? Try again a few times in case they are changing map.
- They still don't reply? Kill the server.