PDA

View Full Version : Not showing correct amount of players online.


nicwillu
08-05-2013, 09:01
Hello :)

I have a small problem with hlstatsx on Garry's Mod. I have 2 servers, the servers status page does not show the correct amount of players online on the servers. It can say 3/16 when there's actually 9/16 on the servers, why is this happening? It does eventually (sometimes) show the correct amount, but it takes time, if there are 9 players online, it can first show 3, and then 5, and the finally 9, it increases over time basically. This happens on my CSS server as well.

The logs doesn't indicate any problems I believe, this is straight after a couple of players joined.
2013-08-05 14:48:03: 192.168.10.101:27015 - MYSQL: Flushing player updates to database...
2013-08-05 14:48:03: 192.168.10.101:27015 - MYSQL: Flushing player updates to database is complete.
2013-08-05 14:48:03: 192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.101": "status"
2013-08-05 14:48:03: 192.168.10.101:27015 - E020: BAD DATA: rcon from "192.168.10.101:56088": command ""
2013-08-05 14:48:03: 192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.101": "sv_visiblemaxplayers"

I don't see why it fails to update the player count. My daemon runs fine, it regularly sends "rcon" commands to the server, "stats", "status" etc.

Why is this happening? :/

EDIT: I can add that I am unable to restart my daemon! I have read that a restart of the daemon can solve the problem I have above. Server runs on a windows computer. Whenever I try to stop it using 'net stop hlxceserv', it says "The HLXCCEServ service could not be stopped." A computer restart must be done if I want to restart it, what is wrong?

jonnzus
08-06-2013, 11:47
I have this kind of problem too.
http://i.share.pho.to/b82ac6cb_o.png

XAFAfterShock
08-07-2013, 13:42
Hello :)

I have a small problem with hlstatsx on Garry's Mod. I have 2 servers, the servers status page does not show the correct amount of players online on the servers. It can say 3/16 when there's actually 9/16 on the servers, why is this happening? It does eventually (sometimes) show the correct amount, but it takes time, if there are 9 players online, it can first show 3, and then 5, and the finally 9, it increases over time basically. This happens on my CSS server as well.

The logs doesn't indicate any problems I believe, this is straight after a couple of players joined.
2013-08-05 14:48:03: 192.168.10.101:27015 - MYSQL: Flushing player updates to database...
2013-08-05 14:48:03: 192.168.10.101:27015 - MYSQL: Flushing player updates to database is complete.
2013-08-05 14:48:03: 192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.101": "status"
2013-08-05 14:48:03: 192.168.10.101:27015 - E020: BAD DATA: rcon from "192.168.10.101:56088": command ""
2013-08-05 14:48:03: 192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.101": "sv_visiblemaxplayers"I don't see why it fails to update the player count. My daemon runs fine, it regularly sends "rcon" commands to the server, "stats", "status" etc.

Why is this happening? :/

EDIT: I can add that I am unable to restart my daemon! I have read that a restart of the daemon can solve the problem I have above. Server runs on a windows computer. Whenever I try to stop it using 'net stop hlxceserv', it says "The HLXCCEServ service could not be stopped." A computer restart must be done if I want to restart it, what is wrong?


I'm not sure about the player count not showing correctly but as for restarting the daemon you pretty much have to kill it manually by either stopping it in the hlstatsx admin section or in the task manager, there is no stopping or restarting it on windows machines.

nicwillu
08-08-2013, 08:48
I'm not sure about the player count not showing correctly but as for restarting the daemon you pretty much have to kill it manually by either stopping it in the hlstatsx admin section or in the task manager, there is no stopping or restarting it on windows machines.

There is no process for it, it runs as a service, no processes show up when I right click it and choose "Go to Process", so I can not kill it. I just followed the HLXCEServ windows guide. Stopping via webinterface seems to fail as well, It keeps getting stuck on
Sending Command to HLstatsX: CE Daemon at localhost:27500
whenever I try choose "Reload" or "Shut down the daemon".

Earlier, few months back, I remember the daemon ran in it's own cmd window which I could just shutdown when I wanted to restart it, but now there isn't, have there been any updates to it or something? It seems impossible to shutdown the daemon without restarting the PC :/

XAFAfterShock
08-08-2013, 09:04
link me the guide you used since there are a few different ones, do you have port 27500 port forwarded to the machine running the daemon? thats the only thing I can think of that would cause admin panel to not stop the daemon

nicwillu
08-08-2013, 09:39
link me the guide you used since there are a few different ones, do you have port 27500 port forwarded to the machine running the daemon? thats the only thing I can think of that would cause admin panel to not stop the daemon

I'm running DMZ, it doesn't even work when I do it on the server computer.

I used this guide: https://bitbucket.org/psychonic/hlstatsxce/wiki/HLXCEServ

XAFAfterShock
08-08-2013, 10:29
thats basically the guide I used, if you go in your task manager and under processes and having the show processes from all users checked and your not seeing HLXCEServ.exe listed then the daemon isn't running. go to administrative tools then services and find HLXCEServ and right click then properties and go to the log on tab and make sure local system account is checked. I think that is the main issue I was having in getting the service to run correctly.

nicwillu
08-08-2013, 13:01
thats basically the guide I used, if you go in your task manager and under processes and having the show processes from all users checked and your not seeing HLXCEServ.exe listed then the daemon isn't running. go to administrative tools then services and find HLXCEServ and right click then properties and go to the log on tab and make sure local system account is checked. I think that is the main issue I was having in getting the service to run correctly.

Oh wow, I never thought about checking the box to show processes from all users <.< Now I see it. Thanks! I also did the local systemuser thing, let's hope it solves the playercount problem I have.

XAFAfterShock
08-08-2013, 14:52
you did have the correct paths setup in the HLXCEServ.exe.config before you installed the service correct? if you found the daemon in the task manager that means its running so I'm not sure changing anything in the service properties will make a diff or not. What do your hlstats logs show at the begining? do they look like this?

2013-08-08 09:18:23: - MYSQL: Connecting to MySQL database 'hlstatsx' on 'localhost' as user 'hlstatsx' ... connected ok
2013-08-08 09:18:23: - CONFIG: Reading database config...
2013-08-08 09:18:23: - CONFIG: I have found the following server configs in database:
2013-08-08 09:18:23: - S_CONFIG: 192.168.1.5:27015
2013-08-08 09:18:25: - HLSTATSX: HLstatsX:CE 1.6.19 starting...
2013-08-08 09:18:25: - UDP: Opening UDP listen socket on port 27500 ... ok

nicwillu
08-08-2013, 15:18
you did have the correct paths setup in the HLXCEServ.exe.config before you installed the service correct? if you found the daemon in the task manager that means its running so I'm not sure changing anything in the service properties will make a diff or not. What do your hlstats logs show at the begining? do they look like this?

2013-08-08 09:18:23: - MYSQL: Connecting to MySQL database 'hlstatsx' on 'localhost' as user 'hlstatsx' ... connected ok
2013-08-08 09:18:23: - CONFIG: Reading database config...
2013-08-08 09:18:23: - CONFIG: I have found the following server configs in database:
2013-08-08 09:18:23: - S_CONFIG: 192.168.1.5:27015
2013-08-08 09:18:25: - HLSTATSX: HLstatsX:CE 1.6.19 starting...
2013-08-08 09:18:25: - UDP: Opening UDP listen socket on port 27500 ... ok

Yes, the config file is configured. Now I have a new problem, the HLXCEServ stops right away, when I start it. I've tried uinstalling and installing the service, and restarting it, it's a no-go :/ This is what I get

2013-08-08 19:27:39: - MYSQL: Connecting to MySQL database 'gamepanel' on 'localhost' as user 'gamepanel' ... connected ok
2013-08-08 19:27:39: - CONFIG: Reading database config...
2013-08-08 19:27:39: - CONFIG: I have found the following server configs in database:
2013-08-08 19:27:39: - S_CONFIG: 192.168.10.101:27015
2013-08-08 19:27:39: - S_CONFIG: 192.168.10.101:27017
2013-08-08 19:27:39: - S_CONFIG: 192.168.10.101:27016
2013-08-08 19:27:39: - HLSTATSX: HLstatsX:CE 1.6.19 starting...

Can't setup UDP socket on port 27500: Only one usage of each socket address (protocol/network address/port) is normally permitted.

EDIT:
I figured out I had to kill the perl.exe processes as well to have it hlxceserv start, since they were using those ports, and now it runs fine with no errors in logs except this:


2013-08-08 21:16:53: 192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.107": "status"
2013-08-08 21:16:59: 192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.107": "status"
2013-08-08 21:17:04: 192.168.10.101:27015 - E020: (IGNORED) OK Rcon from "192.168.10.107": "status"

After all this, it still shows the wrong player count, or least it takes a few min before it shows the correct number of players.

Are these errors normal...? Is this the reason why hlstats fails to update the player count like it should?

XAFAfterShock
08-08-2013, 22:53
I have the ignored things in my logs too, I believe its because I have ignore rcon commands set in my hlstats config. another thing is srcds buffers the logs so its not realtime, you can change this buy using sv_logflush, here is how I have my logging otions in the server.cfg

I have sv_logfile 0 because I don't need too locations logging the same info and logflush disables buffering so stats are in real time but it adds to the server load slightly but hasn't been noticeable

//Server logging
logaddress_add 192.168.1.5:27500
sv_logbans "1"
sv_logecho "1"
sv_logfile "0"
sv_log_onefile "1"
sv_logflush "1"
log on