Raised This Month: $79 Target: $400
 19% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
heavyisgps
Member
Join Date: Aug 2018
Old 03-15-2020 , 17:51   GeoLite2-City working on and off then suddenly not working. [Solved]
Reply With Quote #1

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
[email protected]:~/scripts/GeoLiteCity$ ^C
SOLVED:
I had input the API key wrong, I had it in <> and not just as pure input, now it worked
__________________
Creator of the Hi GPS Balance mod for TF2.

www.higps.no

Last edited by heavyisgps; 04-07-2020 at 05:43.
heavyisgps is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 03-15-2020 , 19:03   Re: GeoLite2-City working on and off then suddenly not working.
Reply With Quote #2

Quote:
Originally Posted by heavyisgps View Post
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
[email protected]:~/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 ***** 
__________________

Last edited by NomisCZ; 03-15-2020 at 19:03.
NomisCZ is offline
heavyisgps
Member
Join Date: Aug 2018
Old 03-16-2020 , 16:01   Re: GeoLite2-City working on and off then suddenly not working.
Reply With Quote #3

Quote:
Originally Posted by NomisCZ View Post
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.
__________________
Creator of the Hi GPS Balance mod for TF2.

www.higps.no

Last edited by heavyisgps; 03-16-2020 at 16:22.
heavyisgps is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 03-16-2020 , 17:41   Re: GeoLite2-City working on and off then suddenly not working.
Reply With Quote #4

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 View Post
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 is offline
heavyisgps
Member
Join Date: Aug 2018
Old 03-17-2020 , 09:24   Re: GeoLite2-City working on and off then suddenly not working.
Reply With Quote #5

Quote:
Originally Posted by NomisCZ View Post
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
__________________
Creator of the Hi GPS Balance mod for TF2.

www.higps.no

Last edited by heavyisgps; 03-17-2020 at 09:42.
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 09:54.


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