Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Error: Unable to retrieve GeoLite2

Discussion in 'Security' started by jeffschips, Jun 13, 2019.

  1. jeffschips

    jeffschips Well-Known Member

    Joined:
    Jun 5, 2016
    Messages:
    63
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    new york
    cPanel Access Level:
    Root Administrator
    In my attempt to see if MaxMind files are referenced in the /etc/csf directory, I ran the command:

    more * | grep maxmind

    and receive the following error messages. I don't really know what they mean but I need to confirm if, indeed, maxmind databases are being retrieved and used by csf firewall so my cc_deny can work.

    I don't know where the maxmind databases are stored.

    more * | grep maxmind

    # Details: Sample List of High Risk IP Addresses | MaxMind
    MAXMIND|86400|0|Sample List of High Risk IP Addresses | MaxMind
    # Details: Sample List of High Risk IP Addresses | MaxMind
    #MAXMIND|86400|0|Sample List of High Risk IP Addresses | MaxMind
    logfile("CC: Retrieving GeoLite2 CSV Country database [http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip]");
    my ($status, $text) = $urlget->urlget("http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip","/var/lib/csf/Geo/GeoLite2-Country-CSV.zip");
    logfile("CC Error: Unable to retrieve GeoLite2 CSV Country database [http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip] - $text");
    logfile("CC: Retrieving GeoLite2 CSV ASN database [http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN-CSV.zip]");
    ($status, $text) = $urlget->urlget("http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN-CSV.zip","/var/lib/csf/Geo/GeoLite2-ASN-CSV.zip");
    logfile("CC Error: Unable to retrieve GeoLite2 CSV ASN database [http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN-CSV.zip] - $text");
    logfile("CCL: Retrieving GeoLite2 ASN database [http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN-CSV.zip]");
    ($status, $text) = $urlget->urlget("http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN-CSV.zip","/var/lib/csf/Geo/GeoLite2-ASN-CSV.zip");
    logfile("CCL: Retrieving GeoLite2 City database [http://geolite.maxmind.com/download/geoip/database/GeoLite2-City-CSV.zip]");
    ($status, $text) = $urlget->urlget("http://geolite.maxmind.com/download/geoip/database/GeoLite2-City-CSV.zip","/var/lib/csf/Geo/GeoLite2-City-CSV.zip");
    logfile("CCL: Retrieving GeoLite2 City database [http://geolite.maxmind.com/download/geoip/database/GeoLite2-City-CSV.zip]");
    ($status, $text) = $urlget->urlget("http://geolite.maxmind.com/download/geoip/database/GeoLite2-City-CSV.zip","/var/lib/csf/Geo/GeoLite2-City-CSV.zip");
    logfile("CCL: Retrieving GeoLite2 Country database [http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip]");
    ($status, $text) = $urlget->urlget("http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip","/var/lib/csf/Geo/GeoLite2-Country-CSV.zip");
    logfile("CCL Error: Unable to retrieve GeoLite2 City database [http://geolite.maxmind.com/download/geoip/database/GeoLite2-City-CSV.zip] - $text");
    logfile("CCL Error: Unable to retrieve GeoLite2 Country database [http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip] - $text");
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,459
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    jeffschips likes this.
  3. jeffschips

    jeffschips Well-Known Member

    Joined:
    Jun 5, 2016
    Messages:
    63
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    new york
    cPanel Access Level:
    Root Administrator
    Well done! Thank you! That's were they were hiding indeed!
     
    cPanelLauren likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice