Raised This Month: $91 Target: $400
 22% 

[Solved] Daemon does not gather data or send it to the webpage for viewing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
heavyisgps
Member
Join Date: Aug 2018
Old 08-20-2019 , 21:19   [Solved] Daemon does not gather data or send it to the webpage for viewing
Reply With Quote #1

Hi,

The Daemon now works on our windows and linux machines, however the result from them both, even when using both external and local databases and site hosting is the same.

The daemon does not receive or transmit data.

This is what the command window outputs

Code:
2019-08-21 01:59:05:                       - CONFIG: Reading database config...
2019-08-21 01:59:05:                       - CONFIG: I have found the following server configs in database:
2019-08-21 01:59:05:                       - S_CONFIG: 192.168.0.186:27017
2019-08-21 01:59:05:                       - ERROR: GeoIP method set to binary file lookup but .//GeoLiteCity/GeoLite2-City.mmdb NOT FOUND
2019-08-21 01:59:05:                       - HLSTATSX: HLstatsX:CE 1.6.19 starting...
2019-08-21 01:59:05:                       - UDP: Opening UDP listen socket on port 27500 ... ok
2019-08-21 01:59:05:                       - HLSTATSX: Tracking Trend of the stats are enabled
2019-08-21 01:59:05:                       - HLSTATSX: Maximum Skill Change on all servers are 25 points
2019-08-21 01:59:05:                       - HLSTATSX: Minimum Skill Change on all servers are 2 points
2019-08-21 01:59:05:                       - HLSTATSX: Minimum Players Kills on all servers are 50 kills
2019-08-21 01:59:05:                       - HLSTATSX: Players chat logging is enabled
2019-08-21 01:59:05:                       - HLSTATSX: Broadcasting public chat is disabled
2019-08-21 01:59:05:                       - HLSTATSX: Event queue size is set to 10
2019-08-21 01:59:05:                       - HLSTATSX: HLstatsX:CE is now running (Normal mode, debug level 1)
2019-08-21 02:01:03:                       - HLSTATSX: No data since 120 seconds
2019-08-21 02:03:03:                       - HLSTATSX: No data since 120 seconds
2019-08-21 02:04:07:                       - HLSTATSX: Insert new server trend timestamp
2019-08-21 02:05:03:                       - HLSTATSX: No data since 120 seconds
2019-08-21 02:07:03:                       - HLSTATSX: No data since 120 seconds
2019-08-21 02:09:03:                       - HLSTATSX: No data since 120 seconds
2019-08-21 02:09:07:                       - HLSTATSX: Insert new server trend timestamp
I've added the TF2 server via the webpage, it does not manage to load any of the information.

I'm not entirely sure how to config the logaddress_add , but I've tried on both the listening port as well as the game port.

When attempting to reload the daemon from the webpage, this works on Linux, but not on windows,

On my windows xampp setup it throws this error

Code:
Sending Command to HLstatsX: CE Daemon at testy:27500  
Fatal error: Uncaught Error: Call to undefined function socket_create() in D:\xampp\htdocs\stats\pages\admintasks\tools_perlcontrol.php:76 Stack trace: #0 D:\xampp\htdocs\stats\pages\admin.php(1079): include() #1 D:\xampp\htdocs\stats\hlstats.php(224): include('D:\\xampp\\htdocs...') #2 {main} thrown in D:\xampp\htdocs\stats\pages\admintasks\tools_perlcontrol.php on line 76
I've tried with both 7 and 5 versions of PHP and while it doesn't throw the exact same error, it throws an error non the less.

Currently the webpage displays the server we've added, but no other information than that.
BUG: Join server button adds wrong port to servers, sets it to 27015 even when it's added as 27017

Is the daemon supposed to grab the information from the servers it loads from the webpage?
If I add multiple servers that all run HLStats plugin on sourcemod, will it be able to grab that information?

Any suggestions on where to troubleshoot / configure from here?

The server has Hlstats, api and api_example plugin running along with the superlogs.

EDIT: I have tried to set the logaddress IP and port to that of the local server, but nothing changes, firewalls are turned off.

Last edited by heavyisgps; 08-21-2019 at 19:17.
heavyisgps is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: $this->Czech_Republic
Old 08-21-2019 , 16:52   Re: [TF2] Daemon does not gather data or send it to the webpage for viewing [Linux &
Reply With Quote #2

Hi,
you need to use public server IP, so 192.168.0.186 is not valid.
PHP Code:
2019-08-21 01:59:05:                       - S_CONFIG192.168.0.186:27017 
Add this to server.cfg and restart server/change map:
PHP Code:
log on
logaddress_add 
<daemon_ip>:<port> (eglogaddress_add xxx.xxx.xxx.xxx:27500
Add server to HLStatsX (in admin):
HTML Code:
Server IP Address: <PUBLIC_SERVER_IP> (if you don't know it, type status to server console)
Server Port: <270XX>
Server Name: My Test Server
Public Address: <PUBLIC_SERVER_IP/HOSTNAME>:<PORT>
Admin Mod: Sourcemod
Now restart/reload daemon.

---

PHP Code:
Sending Command to HLstatsXCE Daemon at testy:27500 &#8212; 
Fatal errorUncaught ErrorCall to undefined function socket_create() in D:\xampp\htdocs\stats\pages\admintasks\tools_perlcontrol.php:76 Stack trace#0 D:\xampp\htdocs\stats\pages\admin.php(1079): include() #1 D:\xampp\htdocs\stats\hlstats.php(224): include('D:\\xampp\\htdocs...') #2 {main} thrown in D:\xampp\htdocs\stats\pages\admintasks\tools_perlcontrol.php on line 76 
It's problem with XAMPP configuration: https://stackoverflow.com/questions/...-socket-create

I don't recommend using XAMPP for production.
And if you're using the latest version of HLStatsX from my repo, use PHP 7.x.

---

Brief scheme of Daemon:
(LOG ON)
SERVER (27015) -> DAEMON (27500) --> |
(RCON) DB (3306)
SERVER (27015) <- DAEMON (27500) <-- |
__________________



Steam: NomisCZ

Last edited by NomisCZ; 08-21-2019 at 16:55.
NomisCZ is offline
heavyisgps
Member
Join Date: Aug 2018
Old 08-21-2019 , 19:17   Re: [TF2] Daemon does not gather data or send it to the webpage for viewing [Linux &
Reply With Quote #3

Hi, there was some issues when I ran everything on one machine, as the public IP wasn't accepted in the daemon, however when I used my official servers I got the daemon working on windows, as it was the logging part that wasn't set up on the servers.

Thanks for the great help.

Now to troubleshoot why building a sentry as engineer gives no points, but destroying your own gives you 4 as if you destroyed another engineers building
heavyisgps is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:07.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode