AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   GeoLite2-City working on and off then suddenly not working. [Solved] (https://forums.alliedmods.net/showthread.php?t=322100)

heavyisgps 03-15-2020 17:51

GeoLite2-City working on and off then suddenly not working. [Solved]
 
Hi,

I've always had issues getting countries to show up when using the daemon on linux.

I recently re-installed the GeoLite2-City and it worked for a bit. Then it would stop working, and then I would have to restart the daemon to get it to work again, but now it's not working at all and nothing has changed to my knowledge of the setup or the environment.

When I try to run the updated install_binary.sh on linxux (which I did already and was successful)

It gives this error

Code:

zip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
[->] Moving GeoLite2-City.mmdb file to /home/tf2server/scripts/GeoLiteCity
mv: cannot stat './GeoLite2-City_*/GeoLite2-City.mmdb': No such file or directory
rm: cannot remove './GeoLite2-City_*': No such file or directory
[✓] Done
tf2serv@000:~/scripts/GeoLiteCity$ ^C

SOLVED:
I had input the API key wrong, I had it in <> and not just as pure input, now it worked

NomisCZ 03-15-2020 19:03

Re: GeoLite2-City working on and off then suddenly not working.
 
Quote:

Originally Posted by heavyisgps (Post 2687113)
Hi,

I've always had issues getting countries to show up when using the daemon on linux.

I recently re-installed the GeoLite2-City and it worked for a bit. Then it would stop working, and then I would have to restart the daemon to get it to work again, but now it's not working at all and nothing has changed to my knowledge of the setup or the environment.

When I try to run the updated install_binary.sh on linxux (which I did already and was successful)

It gives this error

Code:

zip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
[->] Moving GeoLite2-City.mmdb file to /home/tf2server/scripts/GeoLiteCity
mv: cannot stat './GeoLite2-City_*/GeoLite2-City.mmdb': No such file or directory
rm: cannot remove './GeoLite2-City_*': No such file or directory
[✓] Done
tf2serv@000:~/scripts/GeoLiteCity$ ^C


Hello,
please check you API key (if is valid). I recently tried the script and it works fine.
https://github.com/NomisCZ/hlstatsx-...2-installation
https://www.maxmind.com/en/accounts/current/license-key

PHP Code:

# For support and installation notes visit http://www.hlxcommunity.com

API_KEY="<YOUR_API_KEY>"

# ***** NOTHING TO CONFIGURE BELOW HERE ***** 


heavyisgps 03-16-2020 16:01

Re: GeoLite2-City working on and off then suddenly not working.
 
Quote:

Originally Posted by NomisCZ (Post 2687119)
Hello,
please check you API key (if is valid). I recently tried the script and it works fine.
https://github.com/NomisCZ/hlstatsx-...2-installation
https://www.maxmind.com/en/accounts/current/license-key

PHP Code:

# For support and installation notes visit http://www.hlxcommunity.com

API_KEY="<YOUR_API_KEY>"

# ***** NOTHING TO CONFIGURE BELOW HERE ***** 


Hi, I've recently ran the script and it was fine, nothing changed and now it's not working.

I tried all the different API keys, even got the fresh geolite city files from the github and the error still remains the same.

EDIT:

I had to re-install the GEO IP module for perl and get it working again, however the install_binary thing still doesn't work and gives the error. No idea what's happening there.

It would be nice if it was specified what type of license we need in the documentation, as I had to try with all the different ones.

NomisCZ 03-16-2020 17:41

Re: GeoLite2-City working on and off then suddenly not working.
 
Hmm ...

There is only one type of api key.

Try to download this eg. with your web browser (replace $API_KEY)
https://github.com/NomisCZ/hlstatsx-..._binary.sh#L41

Quote:

Originally Posted by heavyisgps (Post 2687243)
Hi, I've recently ran the script and it was fine, nothing changed and now it's not working.

I tried all the different API keys, even got the fresh geolite city files from the github and the error still remains the same.

EDIT:

I had to re-install the GEO IP module for perl and get it working again, however the install_binary thing still doesn't work and gives the error. No idea what's happening there.

It would be nice if it was specified what type of license we need in the documentation, as I had to try with all the different ones.


heavyisgps 03-17-2020 09:24

Re: GeoLite2-City working on and off then suddenly not working.
 
Quote:

Originally Posted by NomisCZ (Post 2687259)
Hmm ...

There is only one type of api key.

Try to download this eg. with your web browser (replace $API_KEY)
https://github.com/NomisCZ/hlstatsx-..._binary.sh#L41

That's what we've done, when registering for API keys, there are updated or non updated versions to pick from.

In addition to the install_binary.sh not working and giving the error, also the GEOIP2 Perl module keeps uninstalling itself on the linux setup after a while. So I'm not sure what really is the issue here

Quote:

Test Summary Report
-------------------
t/GeoIP2/WebService/Client.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=15, Tests=484, 6 wallclock secs ( 0.14 usr 0.04 sys + 5.06 cusr 0.46 csys = 5.70 CPU)
Result: FAIL
Failed 1/15 test programs. 0/484 subtests failed.
Makefile:1030: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 2
MAXMIND/GeoIP2-2.006002.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MAXMIND/GeoIP2-2.006002.tar.gz
Failed during this command:
MAXMIND/GeoIP2-2.006002.tar.gz : make_test NO
Also get this when trying to install the GEO IP module


All times are GMT -4. The time now is 00:32.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.