devicenullJoin Date: 2003-04-30Member: 15967Members, NS2 Playtester, Squad Five Blue
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->-p 27016<!--QuoteEnd--></div><!--QuoteEEnd--> is not a valid command line argument. This should be "-port 27016"
devicenullJoin Date: 2003-04-30Member: 15967Members, NS2 Playtester, Squad Five Blue
I've just released an update to generate performance graphs. CPU/memory/players will be recorded in all cases. If you are running NS2GmOvermind, tickrate will also be recorded.
If anyone has decent looking graphs produced, please feel free to post them here. I haven't had a chance to update my server to produce graphs, because it's always full.
Note that you may see this error when your server starts up: <!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->[NS2Update] DEBUG [Errno 10054] An existing connection was forcibly closed by the remote host<!--QuoteEnd--></div><!--QuoteEEnd-->
That error does not effect anything, and will be removed in the next release. All this indicates is that the tool was unable to query the server (which is normal when it is starting up)
endarJoin Date: 2010-07-27Member: 73256Members, Squad Five Blue
<!--quoteo(post=1854083:date=Jun 18 2011, 12:51 PM:name=devicenull)--><div class='quotetop'>QUOTE (devicenull @ Jun 18 2011, 12:51 PM) <a href="index.php?act=findpost&pid=1854083"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I've just released an update to generate performance graphs. CPU/memory/players will be recorded in all cases. If you are running NS2GmOvermind, tickrate will also be recorded.<!--QuoteEnd--></div><!--QuoteEEnd-->
devicenullJoin Date: 2003-04-30Member: 15967Members, NS2 Playtester, Squad Five Blue
<!--quoteo(post=1854163:date=Jun 18 2011, 05:19 AM:name=endar)--><div class='quotetop'>QUOTE (endar @ Jun 18 2011, 05:19 AM) <a href="index.php?act=findpost&pid=1854163"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->How does the graph pick up the player count? It's the only thing not working for me.
Your plugin doesn't detect crashes. 1. NS2 frequently gets broken in some silent way. Tickrate drops to 0 or packets sent drop to 0 but process stays alive. I'm not sure if a lot of it can be detected without reimplementing full connection to the server (not just info/players packets). In almost all cases where server tickrate stays around 1 for longer than 5-10 seconds server should be restarted. 2. I get "server.exe has caused an error" window but it just stays there. Server doesn't get restarted and window is hanging there, waiting for me to click on close. I was looking around in Windows 2008 options searching for way to make this window use default option but I haven't found it. 3. I had config with map set to summit. Then I changed map to tram and server just didn't want to start at all. It only happened when launching through ns2update.
devicenullJoin Date: 2003-04-30Member: 15967Members, NS2 Playtester, Squad Five Blue
<!--quoteo(post=1854826:date=Jun 20 2011, 06:03 PM:name=MOOtant)--><div class='quotetop'>QUOTE (MOOtant @ Jun 20 2011, 06:03 PM) <a href="index.php?act=findpost&pid=1854826"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Your plugin doesn't detect crashes. 1. NS2 frequently gets broken in some silent way. Tickrate drops to 0 or packets sent drop to 0 but process stays alive. I'm not sure if a lot of it can be detected without reimplementing full connection to the server (not just info/players packets). In almost all cases where server tickrate stays around 1 for longer than 5-10 seconds server should be restarted.<!--QuoteEnd--></div><!--QuoteEEnd--> Does the server show as full at that point (in the browser or hlsw or graph)? If not, use --restartwhenempty. I can probably detect a low tickrate for awhile and restart the server, but I'm worried about false positives with that.
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->2. I get "server.exe has caused an error" window but it just stays there. Server doesn't get restarted and window is hanging there, waiting for me to click on close. I was looking around in Windows 2008 options searching for way to make this window use default option but I haven't found it.<!--QuoteEnd--></div><!--QuoteEEnd--> Interesting. Does the server scan as being up or down when this is happening? I'm currently only detecting crashes through the process actually exiting, which it doesn't do by default when that error occurs. I'd suggest this: <a href="http://www.zhacks.com/2010/04/10/disable-application-error-memory-could-not-be-read-popup/" target="_blank">http://www.zhacks.com/2010/04/10/disable-a...-be-read-popup/</a> . After you do that, autorestart should work correctly. I'll add a link to that in the readme, because I keep having to dig up the link.
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->3. I had config with map set to summit. Then I changed map to tram and server just didn't want to start at all. It only happened when launching through ns2update.<!--QuoteEnd--></div><!--QuoteEEnd--> Can you give me both the server and ns2update logs from when this is happening?
You might consider creating a tiny Lua Server-side mod to have the server process "heartbeat" somewhere in the main game loop to your program. That's the only sure way you're going to know whether it's died or not...
Of course you can also get false positives with heartbeats, but 3 consecutive missed heartbeats is probably a good threshold...
I guess this would be easier in Linux with process signals and pipes but I guess this could work in Windows too (I think there's similar stuff in Windows...) ^.^
<!--quoteo(post=1854896:date=Jun 21 2011, 08:18 AM:name=FrenchDude59)--><div class='quotetop'>QUOTE (FrenchDude59 @ Jun 21 2011, 08:18 AM) <a href="index.php?act=findpost&pid=1854896"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->You might consider creating a tiny Lua Server-side mod to have the server process "heartbeat" somewhere in the main game loop to your program. That's the only sure way you're going to know whether it's died or not...
Of course you can also get false positives with heartbeats, but 3 consecutive missed heartbeats is probably a good threshold...
I guess this would be easier in Linux with process signals and pipes but I guess this could work in Windows too (I think there's similar stuff in Windows...) ^.^<!--QuoteEnd--></div><!--QuoteEEnd--> I don't want to depend on unstable software to tell me whether it thinks it works or not. Ideally I would just have some reserved slot and mocked client connecting every N seconds testing whether stuff works. Realistic version of it is checking whether server.exe is running, if it answers A2S packets, if reported tickrate is around 1 and if server is empty.
I had situations where server tickrate according to ns2update was high, players were still on but in reality server didn't send any updates to clients. It's important to detect it early and restart within 5-15 seconds and not minutes later after server is totally empty for good.
vlncJoin Date: 2010-09-07Member: 73921Members, Squad Five Blue
edited July 2011
Sometimes this line appear :
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->*** attempt to put segment in horiz list twice<!--c2--></div><!--ec2-->
What is this ?
I have this line too :
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->QObject::startTimer: timers cannot be started from another thread<!--c2--></div><!--ec2-->
I'm running two ns2update on the same dedicated server.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->QObject::startTimer: timers cannot be started from another thread<!--c2--></div><!--ec2--> Is that the server-console? Cause that's probably related to NS2-GmOvrmind as it uses Qt, while ns2update I believe does not.
If it is GmOvrmind, I suppose you could ignore it as I've started writing it from scratch and am not fixing issues present in the current version.
I am setting up a server but having a little difficulty, I can only seem to view the server in the list as "Testing NS2 <b>(lan)</b>" and there appears to be 2 of them on the LAN.
For the time being my gaming pc and dedicated box are on the same network with the dedicated box assigned to the DMZ on the router. Could someone confirm if this testing environment will work? Or do I need to have the server on another network.
I am running B183 with NSGmOvermind and ns2update.exe
Here are my config and logs:
ns2update.exe
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->[NS2Update] DEBUG Command line args: -file C:\NS2Server\server.xml -game C:\N S2Server\NS2GmOvrmind --restartwhenempty -ip 81.129.191.148 -port 27016 -lan 0 [NS2Update] INFO Detected server IP as 81.129.191.148:27017 [NS2Update] INFO Server will be automatically restarted when empty [NS2Update] INFO NSGmOvermind detected, tickrate stats are available [NS2Update] DEBUG NS2GmOvermind query: 81.129.191.148:27018 [NS2Update] DEBUG Checking for server update... [NS2Update] INFO Server is out of date: current: 0 desired: 24 [NS2Update] INFO Performing inital server update [NS2Update] INFO Starting server update Checking bootstrapper version ... Updating Installation Checking/Installing 'Natural Selection 2 - Dedicated Server' version 24
HLDS installation up to date [NS2Update] INFO Server update complete! [NS2Update] INFO Server started, pid 988 [NS2Update] DEBUG Logging to 2011.08.08.1714.log [NS2Update] DEBUG CPU usage: 100, memory: 10 MB, players: 0 tickrate: 0 Setting breakpad minidump AppID = 4920 [NS2Update] DEBUG CPU usage: 6, memory: 549 MB, players: 0 tickrate: 0<!--c2--></div><!--ec2-->
My ns2server.bat file (in same directory as ns2update.exe)
it dosent like any path that is not directly on the root of the drive or anything with spaces in it i just now implimented this and it tried dloading the whole server again in another folder
aeroripperJoin Date: 2005-02-25Member: 42471NS1 Playtester, Forum Moderators, Constellation
edited August 2011
Going to sticky this for a while since it seems useful enough for server ops to not get buried, especially during the frequent builds of the beta. As a side note, it would be awesome if this mod automatically sent out a tooltip to everyone on the server that the server is shutting down soon. Ex)
"NS2 Update Detected. Shutting down server in 1 minute" "NS2 Update Detected. Shutting down server in 30 seconds" "NS2 Update Detected. Server Shutting Down..."
I've noticed there's some RCon-code in there devicenull, probably from an earlier incarnation of said code, but if you get that work you'll be able to properly interact with the server (run shutdown\changelevel-commands, and indeed send a message into the server like aeroripper suggested). RCon-support is pretty shoddy in GmOm v10, but I intend to have a complete array of commands available in the new version.
devicenullJoin Date: 2003-04-30Member: 15967Members, NS2 Playtester, Squad Five Blue
<!--quoteo(post=1869963:date=Aug 19 2011, 01:59 AM:name=aeroripper)--><div class='quotetop'>QUOTE (aeroripper @ Aug 19 2011, 01:59 AM) <a href="index.php?act=findpost&pid=1869963"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Going to sticky this for a while since it seems useful enough for server ops to not get buried, especially during the frequent builds of the beta. As a side note, it would be awesome if this mod automatically sent out a tooltip to everyone on the server that the server is shutting down soon. Ex)
"NS2 Update Detected. Shutting down server in 1 minute" "NS2 Update Detected. Shutting down server in 30 seconds" "NS2 Update Detected. Server Shutting Down..."<!--QuoteEnd--></div><!--QuoteEEnd-->
NS2 currently lacks decent rcon support. This is probably possible to do, but it would require some custom lua running on the server. I've been trying to avoid that as much as possible.
<!--quoteo(post=1870058:date=Aug 19 2011, 01:09 PM:name=player)--><div class='quotetop'>QUOTE (player @ Aug 19 2011, 01:09 PM) <a href="index.php?act=findpost&pid=1870058"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I've noticed there's some RCon-code in there devicenull, probably from an earlier incarnation of said code, but if you get that work you'll be able to properly interact with the server (run shutdown\changelevel-commands, and indeed send a message into the server like aeroripper suggested). RCon-support is pretty shoddy in GmOm v10, but I intend to have a complete array of commands available in the new version.<!--QuoteEnd--></div><!--QuoteEEnd--> I'm guessing you are referring to the code in SRCDS.py. If so, that's not really meant to work with NS2, it's just part of the python code I grabbed so I didn't have to re-implement server querying myself.
NS2 doesn't have any RCon-support of any kind (barring the web-admin). What I ment was, SRCDS.py contains an implementation of the Source RCon-protocol, as does GmOvrmind. So if you detect a server running it, you can use what is already there to issue commands directly to the server.
im having problems with the ns2updater it keeps crashing i hope this helps
[NS2Update] DEBUG Checking for server update... Traceback (most recent call last): File "console.py", line 55, in <module> File "ns2update.pyc", line 168, in think File "urllib2.pyc", line 126, in urlopen File "urllib2.pyc", line 392, in open File "urllib2.pyc", line 410, in _open File "urllib2.pyc", line 370, in _call_chain File "urllib2.pyc", line 1186, in http_open File "urllib2.pyc", line 1157, in do_open File "httplib.pyc", line 1013, in getresponse File "httplib.pyc", line 402, in begin File "httplib.pyc", line 366, in _read_status httplib.BadStatusLine: '' thats what it is giving me when it freezes and im not sure what it is doing when it crashes are there logs for the ns2updater that i can look at some where?
devicenullJoin Date: 2003-04-30Member: 15967Members, NS2 Playtester, Squad Five Blue
<!--quoteo(post=1871015:date=Aug 24 2011, 05:52 PM:name=BJHBnade_spammer)--><div class='quotetop'>QUOTE (BJHBnade_spammer @ Aug 24 2011, 05:52 PM) <a href="index.php?act=findpost&pid=1871015"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->im having problems with the ns2updater it keeps crashing i hope this helps
[NS2Update] DEBUG Checking for server update... Traceback (most recent call last): File "console.py", line 55, in <module> File "ns2update.pyc", line 168, in think File "urllib2.pyc", line 126, in urlopen File "urllib2.pyc", line 392, in open File "urllib2.pyc", line 410, in _open File "urllib2.pyc", line 370, in _call_chain File "urllib2.pyc", line 1186, in http_open File "urllib2.pyc", line 1157, in do_open File "httplib.pyc", line 1013, in getresponse File "httplib.pyc", line 402, in begin File "httplib.pyc", line 366, in _read_status httplib.BadStatusLine: '' thats what it is giving me when it freezes and im not sure what it is doing when it crashes are there logs for the ns2updater that i can look at some where?<!--QuoteEnd--></div><!--QuoteEEnd-->
There's a ns2update.log file that may help. Does this happen every time you start up, or intermittently? Can you reach this website from the machine running the server: <a href="http://ns2update.devicenull.org/ns2update/ns2version.txt" target="_blank">http://ns2update.devicenull.org/ns2update/ns2version.txt</a> ?
ok here is something i found could this of caused it?
08-24 17:06 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:07 root CRITICAL Server has died, restarting! 08-24 17:07 root INFO Server started, pid 5004 08-24 17:07 root DEBUG Logging to 2011.08.24.1707.log 08-24 17:07 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:08 root CRITICAL Server has died, restarting! 08-24 17:08 root INFO Server started, pid 3636 08-24 17:08 root DEBUG Logging to 2011.08.24.1708.log 08-24 17:08 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0 08-24 17:09 root CRITICAL Server has died, restarting! 08-24 17:09 root INFO Server started, pid 5016 08-24 17:09 root DEBUG Logging to 2011.08.24.1709.log 08-24 17:09 root DEBUG CPU usage: 99, memory: 9 MB, players: 0 tickrate: 0 08-24 17:10 root CRITICAL Server has died, restarting! 08-24 17:10 root INFO Server started, pid 4768 08-24 17:10 root DEBUG Logging to 2011.08.24.1710.log 08-24 17:10 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:11 root DEBUG Checking for server update... 08-24 17:11 root CRITICAL Server has died, restarting! 08-24 17:11 root INFO Server started, pid 3388 08-24 17:11 root DEBUG Logging to 2011.08.24.1711.log 08-24 17:11 root DEBUG CPU usage: 95, memory: 9 MB, players: 0 tickrate: 0 08-24 17:12 root CRITICAL Server has died, restarting! 08-24 17:12 root INFO Server started, pid 6088 08-24 17:12 root DEBUG Logging to 2011.08.24.1712.log 08-24 17:12 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:13 root CRITICAL Server has died, restarting! 08-24 17:13 root INFO Server started, pid 3276 08-24 17:13 root DEBUG Logging to 2011.08.24.1713.log 08-24 17:13 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:14 root CRITICAL Server has died, restarting! 08-24 17:14 root INFO Server started, pid 4284 08-24 17:14 root DEBUG Logging to 2011.08.24.1714.log 08-24 17:14 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:15 root CRITICAL Server has died, restarting! 08-24 17:15 root INFO Server started, pid 3152 08-24 17:15 root DEBUG Logging to 2011.08.24.1715.log 08-24 17:15 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0 08-24 17:16 root DEBUG Checking for server update... 08-24 17:16 root CRITICAL Server has died, restarting! 08-24 17:16 root INFO Server started, pid 1484 08-24 17:16 root DEBUG Logging to 2011.08.24.1716.log 08-24 17:16 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0 08-24 17:17 root CRITICAL Server has died, restarting! 08-24 17:17 root INFO Server started, pid 4256 08-24 17:17 root DEBUG Logging to 2011.08.24.1717.log 08-24 17:17 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0 08-24 17:18 root CRITICAL Server has died, restarting! 08-24 17:18 root INFO Server started, pid 5896 08-24 17:18 root DEBUG Logging to 2011.08.24.1718.log 08-24 17:18 root DEBUG CPU usage: 99, memory: 9 MB, players: 0 tickrate: 0 08-24 17:19 root CRITICAL Server has died, restarting! 08-24 17:19 root INFO Server started, pid 3616 08-24 17:19 root DEBUG Logging to 2011.08.24.1719.log 08-24 17:19 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0 08-24 17:20 root CRITICAL Server has died, restarting! 08-24 17:20 root INFO Server started, pid 2412
i dont know what could of caused this i think this was what happened a few times when it crashed when i first started it but also crashed a few times more than an hour after i had started it also
*** attempt to put segment in horiz list twice *** attempt to put segment in horiz list twice Setting breakpad minidump AppID = 4920 [NS2Update] DEBUG CPU usage: 6, memory: 614 MB, players: 0 tickrate: 26 *** attempt to put segment in horiz list twice *** attempt to put segment in horiz list twice
this has been flooding nsdupdate.exe what does it mean?
devicenullJoin Date: 2003-04-30Member: 15967Members, NS2 Playtester, Squad Five Blue
<!--quoteo(post=1871755:date=Aug 28 2011, 07:19 PM:name=BJHBnade_spammer)--><div class='quotetop'>QUOTE (BJHBnade_spammer @ Aug 28 2011, 07:19 PM) <a href="index.php?act=findpost&pid=1871755"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->ok here is something i found could this of caused it?
08-24 17:06 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:07 root CRITICAL Server has died, restarting! 08-24 17:07 root INFO Server started, pid 5004 08-24 17:07 root DEBUG Logging to 2011.08.24.1707.log 08-24 17:07 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:08 root CRITICAL Server has died, restarting! 08-24 17:08 root INFO Server started, pid 3636 08-24 17:08 root DEBUG Logging to 2011.08.24.1708.log 08-24 17:08 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0 08-24 17:09 root CRITICAL Server has died, restarting! 08-24 17:09 root INFO Server started, pid 5016 08-24 17:09 root DEBUG Logging to 2011.08.24.1709.log 08-24 17:09 root DEBUG CPU usage: 99, memory: 9 MB, players: 0 tickrate: 0 08-24 17:10 root CRITICAL Server has died, restarting! 08-24 17:10 root INFO Server started, pid 4768 08-24 17:10 root DEBUG Logging to 2011.08.24.1710.log 08-24 17:10 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:11 root DEBUG Checking for server update... 08-24 17:11 root CRITICAL Server has died, restarting! 08-24 17:11 root INFO Server started, pid 3388 08-24 17:11 root DEBUG Logging to 2011.08.24.1711.log 08-24 17:11 root DEBUG CPU usage: 95, memory: 9 MB, players: 0 tickrate: 0 08-24 17:12 root CRITICAL Server has died, restarting! 08-24 17:12 root INFO Server started, pid 6088 08-24 17:12 root DEBUG Logging to 2011.08.24.1712.log 08-24 17:12 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:13 root CRITICAL Server has died, restarting! 08-24 17:13 root INFO Server started, pid 3276 08-24 17:13 root DEBUG Logging to 2011.08.24.1713.log 08-24 17:13 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:14 root CRITICAL Server has died, restarting! 08-24 17:14 root INFO Server started, pid 4284 08-24 17:14 root DEBUG Logging to 2011.08.24.1714.log 08-24 17:14 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0 08-24 17:15 root CRITICAL Server has died, restarting! 08-24 17:15 root INFO Server started, pid 3152 08-24 17:15 root DEBUG Logging to 2011.08.24.1715.log 08-24 17:15 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0 08-24 17:16 root DEBUG Checking for server update... 08-24 17:16 root CRITICAL Server has died, restarting! 08-24 17:16 root INFO Server started, pid 1484 08-24 17:16 root DEBUG Logging to 2011.08.24.1716.log 08-24 17:16 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0 08-24 17:17 root CRITICAL Server has died, restarting! 08-24 17:17 root INFO Server started, pid 4256 08-24 17:17 root DEBUG Logging to 2011.08.24.1717.log 08-24 17:17 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0 08-24 17:18 root CRITICAL Server has died, restarting! 08-24 17:18 root INFO Server started, pid 5896 08-24 17:18 root DEBUG Logging to 2011.08.24.1718.log 08-24 17:18 root DEBUG CPU usage: 99, memory: 9 MB, players: 0 tickrate: 0 08-24 17:19 root CRITICAL Server has died, restarting! 08-24 17:19 root INFO Server started, pid 3616 08-24 17:19 root DEBUG Logging to 2011.08.24.1719.log 08-24 17:19 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0 08-24 17:20 root CRITICAL Server has died, restarting! 08-24 17:20 root INFO Server started, pid 2412
i dont know what could of caused this i think this was what happened a few times when it crashed when i first started it but also crashed a few times more than an hour after i had started it also<!--QuoteEnd--></div><!--QuoteEEnd-->
Does your server run correctly if you start it outside ns2update? I've seen that happen when a ports in use or something and the server can't start up correctly.
<!--quoteo(post=1872155:date=Aug 30 2011, 05:37 PM:name=BJHBnade_spammer)--><div class='quotetop'>QUOTE (BJHBnade_spammer @ Aug 30 2011, 05:37 PM) <a href="index.php?act=findpost&pid=1872155"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->for some reason i just started getting this
*** attempt to put segment in horiz list twice *** attempt to put segment in horiz list twice Setting breakpad minidump AppID = 4920 [NS2Update] DEBUG CPU usage: 6, memory: 614 MB, players: 0 tickrate: 26 *** attempt to put segment in horiz list twice *** attempt to put segment in horiz list twice
this has been flooding nsdupdate.exe what does it mean?<!--QuoteEnd--></div><!--QuoteEEnd-->
That error comes from NS2, and I have no idea what it means.
Comments
thanks, next time I'll RTFM slowly
If anyone has decent looking graphs produced, please feel free to post them here. I haven't had a chance to update my server to produce graphs, because it's always full.
Note that you may see this error when your server starts up:
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->[NS2Update] DEBUG [Errno 10054] An existing connection was forcibly closed by the remote host<!--QuoteEnd--></div><!--QuoteEEnd-->
That error does not effect anything, and will be removed in the next release. All this indicates is that the tool was unable to query the server (which is normal when it is starting up)
You've sold me, i'll start using this asap.
<a href="http://img813.imageshack.us/i/ns2server.png/" target="_blank"><img src="http://img813.imageshack.us/img813/8834/ns2server.png" border="0" class="linked-image" /></a>
<a href="http://img813.imageshack.us/i/ns2server.png/" target="_blank"><img src="http://img813.imageshack.us/img813/8834/ns2server.png" border="0" class="linked-image" /></a><!--QuoteEnd--></div><!--QuoteEEnd-->
That was a bug, players would only be detected if --restartwhenempty was used. I have corrected it now.
<img src="http://www.epic-empires.co.uk:8081/ns2server.png" border="0" class="linked-image" />
<img src="http://dl.dropbox.com/u/2078961/ns2server.png" border="0" class="linked-image" />
Looks like I need to change the color of either tickrate or players, they are hard to tell apart.
1. NS2 frequently gets broken in some silent way. Tickrate drops to 0 or packets sent drop to 0 but process stays alive. I'm not sure if a lot of it can be detected without reimplementing full connection to the server (not just info/players packets). In almost all cases where server tickrate stays around 1 for longer than 5-10 seconds server should be restarted.
2. I get "server.exe has caused an error" window but it just stays there. Server doesn't get restarted and window is hanging there, waiting for me to click on close. I was looking around in Windows 2008 options searching for way to make this window use default option but I haven't found it.
3. I had config with map set to summit. Then I changed map to tram and server just didn't want to start at all. It only happened when launching through ns2update.
1. NS2 frequently gets broken in some silent way. Tickrate drops to 0 or packets sent drop to 0 but process stays alive. I'm not sure if a lot of it can be detected without reimplementing full connection to the server (not just info/players packets). In almost all cases where server tickrate stays around 1 for longer than 5-10 seconds server should be restarted.<!--QuoteEnd--></div><!--QuoteEEnd-->
Does the server show as full at that point (in the browser or hlsw or graph)? If not, use --restartwhenempty. I can probably detect a low tickrate for awhile and restart the server, but I'm worried about false positives with that.
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->2. I get "server.exe has caused an error" window but it just stays there. Server doesn't get restarted and window is hanging there, waiting for me to click on close. I was looking around in Windows 2008 options searching for way to make this window use default option but I haven't found it.<!--QuoteEnd--></div><!--QuoteEEnd-->
Interesting. Does the server scan as being up or down when this is happening? I'm currently only detecting crashes through the process actually exiting, which it doesn't do by default when that error occurs. I'd suggest this: <a href="http://www.zhacks.com/2010/04/10/disable-application-error-memory-could-not-be-read-popup/" target="_blank">http://www.zhacks.com/2010/04/10/disable-a...-be-read-popup/</a> . After you do that, autorestart should work correctly. I'll add a link to that in the readme, because I keep having to dig up the link.
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->3. I had config with map set to summit. Then I changed map to tram and server just didn't want to start at all. It only happened when launching through ns2update.<!--QuoteEnd--></div><!--QuoteEEnd-->
Can you give me both the server and ns2update logs from when this is happening?
Of course you can also get false positives with heartbeats, but 3 consecutive missed heartbeats is probably a good threshold...
I guess this would be easier in Linux with process signals and pipes but I guess this could work in Windows too (I think there's similar stuff in Windows...) ^.^
Of course you can also get false positives with heartbeats, but 3 consecutive missed heartbeats is probably a good threshold...
I guess this would be easier in Linux with process signals and pipes but I guess this could work in Windows too (I think there's similar stuff in Windows...) ^.^<!--QuoteEnd--></div><!--QuoteEEnd-->
I don't want to depend on unstable software to tell me whether it thinks it works or not. Ideally I would just have some reserved slot and mocked client connecting every N seconds testing whether stuff works. Realistic version of it is checking whether server.exe is running, if it answers A2S packets, if reported tickrate is around 1 and if server is empty.
I had situations where server tickrate according to ns2update was high, players were still on but in reality server didn't send any updates to clients. It's important to detect it early and restart within 5-15 seconds and not minutes later after server is totally empty for good.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->*** attempt to put segment in horiz list twice<!--c2--></div><!--ec2-->
What is this ?
I have this line too :
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->QObject::startTimer: timers cannot be started from another thread<!--c2--></div><!--ec2-->
I'm running two ns2update on the same dedicated server.
Is that the server-console? Cause that's probably related to NS2-GmOvrmind as it uses Qt, while ns2update I believe does not.
If it is GmOvrmind, I suppose you could ignore it as I've started writing it from scratch and am not fixing issues present in the current version.
For the time being my gaming pc and dedicated box are on the same network with the dedicated box assigned to the DMZ on the router. Could someone confirm if this testing environment will work? Or do I need to have the server on another network.
I am running B183 with NSGmOvermind and ns2update.exe
Here are my config and logs:
ns2update.exe
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->[NS2Update] DEBUG Command line args: -file C:\NS2Server\server.xml -game C:\N
S2Server\NS2GmOvrmind --restartwhenempty -ip 81.129.191.148 -port 27016 -lan 0
[NS2Update] INFO Detected server IP as 81.129.191.148:27017
[NS2Update] INFO Server will be automatically restarted when empty
[NS2Update] INFO NSGmOvermind detected, tickrate stats are available
[NS2Update] DEBUG NS2GmOvermind query: 81.129.191.148:27018
[NS2Update] DEBUG Checking for server update...
[NS2Update] INFO Server is out of date: current: 0 desired: 24
[NS2Update] INFO Performing inital server update
[NS2Update] INFO Starting server update
Checking bootstrapper version ...
Updating Installation
Checking/Installing 'Natural Selection 2 - Dedicated Server' version 24
HLDS installation up to date
[NS2Update] INFO Server update complete!
[NS2Update] INFO Server started, pid 988
[NS2Update] DEBUG Logging to 2011.08.08.1714.log
[NS2Update] DEBUG CPU usage: 100, memory: 10 MB, players: 0 tickrate: 0
Setting breakpad minidump AppID = 4920
[NS2Update] DEBUG CPU usage: 6, memory: 549 MB, players: 0 tickrate: 0<!--c2--></div><!--ec2-->
My ns2server.bat file (in same directory as ns2update.exe)
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Start /wait ns2update.exe -file "C:\NS2Server\server.xml" -game "C:\NS2Server\NS2GmOvrmind" --restartwhenempty -ip 81.129.191.148 -port 27016 -lan 0<!--c2--></div><!--ec2-->
My server.xml
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><options>
<lanGame>false</lanGame>
<mapName>ns2_summit</mapName>
<password></password>
<port>27016</port>
<serverName>Testing NS2</serverName>
<address>81.129.191.148</address>
<playerLimit>14</playerLimit>
</options><!--c2--></div><!--ec2-->
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Start /wait ns2update.exe -file server.xml -game NS2GmOvrmind --restartwhenempty -ip 81.129.191.148 -port 27016<!--c2--></div><!--ec2-->
Is there anything that could be causing 100% cpu usage with 1 player online?
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->[NS2Update] INFO Server update complete!
[NS2Update] INFO Server started, pid 3012
[NS2Update] DEBUG Logging to 2011.08.08.1730.log
[NS2Update] DEBUG CPU usage: 100, memory: 10 MB, players: 0 tickrate: 0
Setting breakpad minidump AppID = 4920
[NS2Update] DEBUG CPU usage: 9, memory: 548 MB, players: 0 tickrate: 0
[NS2Update] DEBUG CPU usage: 100, memory: 544 MB, players: 1 tickrate: 0
[NS2Update] DEBUG CPU usage: 100, memory: 545 MB, players: 1 tickrate: 0
[NS2Update] DEBUG CPU usage: 100, memory: 545 MB, players: 1 tickrate: 0
[NS2Update] DEBUG Checking for server update...
[NS2Update] DEBUG CPU usage: 98, memory: 545 MB, players: 1 tickrate: 0<!--c2--></div><!--ec2-->
In-game the tick rate is 30
"NS2 Update Detected. Shutting down server in 1 minute"
"NS2 Update Detected. Shutting down server in 30 seconds"
"NS2 Update Detected. Server Shutting Down..."
"NS2 Update Detected. Shutting down server in 1 minute"
"NS2 Update Detected. Shutting down server in 30 seconds"
"NS2 Update Detected. Server Shutting Down..."<!--QuoteEnd--></div><!--QuoteEEnd-->
NS2 currently lacks decent rcon support. This is probably possible to do, but it would require some custom lua running on the server. I've been trying to avoid that as much as possible.
<!--quoteo(post=1870058:date=Aug 19 2011, 01:09 PM:name=player)--><div class='quotetop'>QUOTE (player @ Aug 19 2011, 01:09 PM) <a href="index.php?act=findpost&pid=1870058"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I've noticed there's some RCon-code in there devicenull, probably from an earlier incarnation of said code, but if you get that work you'll be able to properly interact with the server (run shutdown\changelevel-commands, and indeed send a message into the server like aeroripper suggested). RCon-support is pretty shoddy in GmOm v10, but I intend to have a complete array of commands available in the new version.<!--QuoteEnd--></div><!--QuoteEEnd-->
I'm guessing you are referring to the code in SRCDS.py. If so, that's not really meant to work with NS2, it's just part of the python code I grabbed so I didn't have to re-implement server querying myself.
[NS2Update] DEBUG Checking for server update...
Traceback (most recent call last):
File "console.py", line 55, in <module>
File "ns2update.pyc", line 168, in think
File "urllib2.pyc", line 126, in urlopen
File "urllib2.pyc", line 392, in open
File "urllib2.pyc", line 410, in _open
File "urllib2.pyc", line 370, in _call_chain
File "urllib2.pyc", line 1186, in http_open
File "urllib2.pyc", line 1157, in do_open
File "httplib.pyc", line 1013, in getresponse
File "httplib.pyc", line 402, in begin
File "httplib.pyc", line 366, in _read_status
httplib.BadStatusLine: ''
thats what it is giving me when it freezes and im not sure what it is doing when it crashes are there logs for the ns2updater that i can look at some where?
[NS2Update] DEBUG Checking for server update...
Traceback (most recent call last):
File "console.py", line 55, in <module>
File "ns2update.pyc", line 168, in think
File "urllib2.pyc", line 126, in urlopen
File "urllib2.pyc", line 392, in open
File "urllib2.pyc", line 410, in _open
File "urllib2.pyc", line 370, in _call_chain
File "urllib2.pyc", line 1186, in http_open
File "urllib2.pyc", line 1157, in do_open
File "httplib.pyc", line 1013, in getresponse
File "httplib.pyc", line 402, in begin
File "httplib.pyc", line 366, in _read_status
httplib.BadStatusLine: ''
thats what it is giving me when it freezes and im not sure what it is doing when it crashes are there logs for the ns2updater that i can look at some where?<!--QuoteEnd--></div><!--QuoteEEnd-->
There's a ns2update.log file that may help. Does this happen every time you start up, or intermittently? Can you reach this website from the machine running the server: <a href="http://ns2update.devicenull.org/ns2update/ns2version.txt" target="_blank">http://ns2update.devicenull.org/ns2update/ns2version.txt</a> ?
yes i can get to that link on the computer running it
08-24 17:06 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:07 root CRITICAL Server has died, restarting!
08-24 17:07 root INFO Server started, pid 5004
08-24 17:07 root DEBUG Logging to 2011.08.24.1707.log
08-24 17:07 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:08 root CRITICAL Server has died, restarting!
08-24 17:08 root INFO Server started, pid 3636
08-24 17:08 root DEBUG Logging to 2011.08.24.1708.log
08-24 17:08 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0
08-24 17:09 root CRITICAL Server has died, restarting!
08-24 17:09 root INFO Server started, pid 5016
08-24 17:09 root DEBUG Logging to 2011.08.24.1709.log
08-24 17:09 root DEBUG CPU usage: 99, memory: 9 MB, players: 0 tickrate: 0
08-24 17:10 root CRITICAL Server has died, restarting!
08-24 17:10 root INFO Server started, pid 4768
08-24 17:10 root DEBUG Logging to 2011.08.24.1710.log
08-24 17:10 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:11 root DEBUG Checking for server update...
08-24 17:11 root CRITICAL Server has died, restarting!
08-24 17:11 root INFO Server started, pid 3388
08-24 17:11 root DEBUG Logging to 2011.08.24.1711.log
08-24 17:11 root DEBUG CPU usage: 95, memory: 9 MB, players: 0 tickrate: 0
08-24 17:12 root CRITICAL Server has died, restarting!
08-24 17:12 root INFO Server started, pid 6088
08-24 17:12 root DEBUG Logging to 2011.08.24.1712.log
08-24 17:12 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:13 root CRITICAL Server has died, restarting!
08-24 17:13 root INFO Server started, pid 3276
08-24 17:13 root DEBUG Logging to 2011.08.24.1713.log
08-24 17:13 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:14 root CRITICAL Server has died, restarting!
08-24 17:14 root INFO Server started, pid 4284
08-24 17:14 root DEBUG Logging to 2011.08.24.1714.log
08-24 17:14 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:15 root CRITICAL Server has died, restarting!
08-24 17:15 root INFO Server started, pid 3152
08-24 17:15 root DEBUG Logging to 2011.08.24.1715.log
08-24 17:15 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0
08-24 17:16 root DEBUG Checking for server update...
08-24 17:16 root CRITICAL Server has died, restarting!
08-24 17:16 root INFO Server started, pid 1484
08-24 17:16 root DEBUG Logging to 2011.08.24.1716.log
08-24 17:16 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0
08-24 17:17 root CRITICAL Server has died, restarting!
08-24 17:17 root INFO Server started, pid 4256
08-24 17:17 root DEBUG Logging to 2011.08.24.1717.log
08-24 17:17 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0
08-24 17:18 root CRITICAL Server has died, restarting!
08-24 17:18 root INFO Server started, pid 5896
08-24 17:18 root DEBUG Logging to 2011.08.24.1718.log
08-24 17:18 root DEBUG CPU usage: 99, memory: 9 MB, players: 0 tickrate: 0
08-24 17:19 root CRITICAL Server has died, restarting!
08-24 17:19 root INFO Server started, pid 3616
08-24 17:19 root DEBUG Logging to 2011.08.24.1719.log
08-24 17:19 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0
08-24 17:20 root CRITICAL Server has died, restarting!
08-24 17:20 root INFO Server started, pid 2412
i dont know what could of caused this i think this was what happened a few times when it crashed when i first started it but also crashed a few times more than an hour after i had started it also
*** attempt to put segment in horiz list twice
*** attempt to put segment in horiz list twice
Setting breakpad minidump AppID = 4920
[NS2Update] DEBUG CPU usage: 6, memory: 614 MB, players: 0 tickrate: 26
*** attempt to put segment in horiz list twice
*** attempt to put segment in horiz list twice
this has been flooding nsdupdate.exe what does it mean?
08-24 17:06 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:07 root CRITICAL Server has died, restarting!
08-24 17:07 root INFO Server started, pid 5004
08-24 17:07 root DEBUG Logging to 2011.08.24.1707.log
08-24 17:07 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:08 root CRITICAL Server has died, restarting!
08-24 17:08 root INFO Server started, pid 3636
08-24 17:08 root DEBUG Logging to 2011.08.24.1708.log
08-24 17:08 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0
08-24 17:09 root CRITICAL Server has died, restarting!
08-24 17:09 root INFO Server started, pid 5016
08-24 17:09 root DEBUG Logging to 2011.08.24.1709.log
08-24 17:09 root DEBUG CPU usage: 99, memory: 9 MB, players: 0 tickrate: 0
08-24 17:10 root CRITICAL Server has died, restarting!
08-24 17:10 root INFO Server started, pid 4768
08-24 17:10 root DEBUG Logging to 2011.08.24.1710.log
08-24 17:10 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:11 root DEBUG Checking for server update...
08-24 17:11 root CRITICAL Server has died, restarting!
08-24 17:11 root INFO Server started, pid 3388
08-24 17:11 root DEBUG Logging to 2011.08.24.1711.log
08-24 17:11 root DEBUG CPU usage: 95, memory: 9 MB, players: 0 tickrate: 0
08-24 17:12 root CRITICAL Server has died, restarting!
08-24 17:12 root INFO Server started, pid 6088
08-24 17:12 root DEBUG Logging to 2011.08.24.1712.log
08-24 17:12 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:13 root CRITICAL Server has died, restarting!
08-24 17:13 root INFO Server started, pid 3276
08-24 17:13 root DEBUG Logging to 2011.08.24.1713.log
08-24 17:13 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:14 root CRITICAL Server has died, restarting!
08-24 17:14 root INFO Server started, pid 4284
08-24 17:14 root DEBUG Logging to 2011.08.24.1714.log
08-24 17:14 root DEBUG CPU usage: 98, memory: 9 MB, players: 0 tickrate: 0
08-24 17:15 root CRITICAL Server has died, restarting!
08-24 17:15 root INFO Server started, pid 3152
08-24 17:15 root DEBUG Logging to 2011.08.24.1715.log
08-24 17:15 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0
08-24 17:16 root DEBUG Checking for server update...
08-24 17:16 root CRITICAL Server has died, restarting!
08-24 17:16 root INFO Server started, pid 1484
08-24 17:16 root DEBUG Logging to 2011.08.24.1716.log
08-24 17:16 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0
08-24 17:17 root CRITICAL Server has died, restarting!
08-24 17:17 root INFO Server started, pid 4256
08-24 17:17 root DEBUG Logging to 2011.08.24.1717.log
08-24 17:17 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0
08-24 17:18 root CRITICAL Server has died, restarting!
08-24 17:18 root INFO Server started, pid 5896
08-24 17:18 root DEBUG Logging to 2011.08.24.1718.log
08-24 17:18 root DEBUG CPU usage: 99, memory: 9 MB, players: 0 tickrate: 0
08-24 17:19 root CRITICAL Server has died, restarting!
08-24 17:19 root INFO Server started, pid 3616
08-24 17:19 root DEBUG Logging to 2011.08.24.1719.log
08-24 17:19 root DEBUG CPU usage: 100, memory: 9 MB, players: 0 tickrate: 0
08-24 17:20 root CRITICAL Server has died, restarting!
08-24 17:20 root INFO Server started, pid 2412
i dont know what could of caused this i think this was what happened a few times when it crashed when i first started it but also crashed a few times more than an hour after i had started it also<!--QuoteEnd--></div><!--QuoteEEnd-->
Does your server run correctly if you start it outside ns2update? I've seen that happen when a ports in use or something and the server can't start up correctly.
<!--quoteo(post=1872155:date=Aug 30 2011, 05:37 PM:name=BJHBnade_spammer)--><div class='quotetop'>QUOTE (BJHBnade_spammer @ Aug 30 2011, 05:37 PM) <a href="index.php?act=findpost&pid=1872155"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->for some reason i just started getting this
*** attempt to put segment in horiz list twice
*** attempt to put segment in horiz list twice
Setting breakpad minidump AppID = 4920
[NS2Update] DEBUG CPU usage: 6, memory: 614 MB, players: 0 tickrate: 26
*** attempt to put segment in horiz list twice
*** attempt to put segment in horiz list twice
this has been flooding nsdupdate.exe what does it mean?<!--QuoteEnd--></div><!--QuoteEEnd-->
That error comes from NS2, and I have no idea what it means.