Giter Site home page Giter Site logo

Comments (13)

peter-gribanov avatar peter-gribanov commented on May 30, 2024 3

New release 1.2.0 with fixes for this problem has been published.
Need only change URL in configuration file for correct work a geoip2:update command.

from geoip2.

neverfan avatar neverfan commented on May 30, 2024 1

Hi! Easy way to fix it - just replace download link in config.

Follow this instruction:

  1. Sign up account for GeoIp2 on page:
    https://www.maxmind.com/en/geolite2/signup
  2. Login and generate licence key on page:
    https://www.maxmind.com/en/accounts/current/license-key
    Save your licence key.
  3. Open download page:
    https://www.maxmind.com/en/download_files
    Find your needed DB edition ID and copy value from first column
    image
  4. Open your config file with gpslab_geoip params and replace url param by next:
    https://download.maxmind.com/app/geoip_download?edition_id={edition_id}&license_key={license_key}&suffix=tar.gz
  • edition_id - character ID name from first column on download page
  • license_key - your saved licence key

from geoip2.

peter-gribanov avatar peter-gribanov commented on May 30, 2024 1

@Zizitto yes. The geoip2:update command is still works.
Need only change the URL in configuration like that:

gpslab_geoip:
    url: 'https://download.maxmind.com/app/geoip_download?edition_id={edition_id}&license_key={license_key}&suffix=tar.gz'

from geoip2.

peter-gribanov avatar peter-gribanov commented on May 30, 2024 1

In new release 2.0.0 you can simplify configure the download URL by configure only the license kay and edition id.

gpslab_geoip:
    # Your personal licence key
    license: 'XXXXXXXXXXXXXXXX'

    # Database edition ID
    edition: 'GeoLite2-City'

from geoip2.

peter-gribanov avatar peter-gribanov commented on May 30, 2024

Thanks for your report.

Yes, updating via bundle will stop working. To update the GeoIP database, you will have to use the geoipupdate utility.

I will be engaged in renewal of updating database through bundle.

from geoip2.

peter-gribanov avatar peter-gribanov commented on May 30, 2024

@neverfan you must also specify the suffix &suffix=tar.gz in the link, otherwise you will get error:

Invalid suffix

But anyway, thank you very much for this guide.

from geoip2.

neverfan avatar neverfan commented on May 30, 2024

@peter-gribanov oh, yes, forgot that, I fixed guide.

from geoip2.

Zizitto avatar Zizitto commented on May 30, 2024

Thanks for your report.

Yes, updating via bundle will stop working. To update the GeoIP database, you will have to use the geoipupdate utility.

I will be engaged in renewal of updating database through bundle.

we still can use geoip2:update command all you need is add valid URL as first argument, NO?

from geoip2.

ssammut avatar ssammut commented on May 30, 2024

hello ! isn't the compressor unable to extract tar.gz files? For what I've been experiencing the bundle is only extracting the gz leaving us with a tar file in the cache directory

file var/cache/dev/GeoLite2-City.mmdb
var/cache/dev/GeoLite2-City.mmdb: POSIX tar archive (GNU)

one you actually extract everthing you end up with a directory rather than just the mmdb file which means we would also need to move the mmdb file out of the directory

the directory contents is the following:

ls GeoLite2-City_20200114/
README.txt  
LICENSE.txt  
GeoLite2-City.mmdb  
COPYRIGHT.txt

from geoip2.

peter-gribanov avatar peter-gribanov commented on May 30, 2024

@ssammut Yes. Really. MaxMind changed the structure of the archive. I will fix it.

from geoip2.

peter-gribanov avatar peter-gribanov commented on May 30, 2024

@ssammut can you check now for the master branch?

from geoip2.

ssammut avatar ssammut commented on May 30, 2024

@peter-gribanov that was quick! thanks! tested master and works as expected. mmdb is located in var/cache/env.

thanks again

from geoip2.

st0at avatar st0at commented on May 30, 2024

Thank you people, you are awesome! Everything works like a charm.

from geoip2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.