Comments (13)
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.
Hi! Easy way to fix it - just replace download link in config.
Follow this instruction:
- Sign up account for
GeoIp2
on page:
https://www.maxmind.com/en/geolite2/signup - Login and generate licence key on page:
https://www.maxmind.com/en/accounts/current/license-key
Save your licence key. - Open download page:
https://www.maxmind.com/en/download_files
Find your needed DB editionID
and copy value from first column
- Open your config file with
gpslab_geoip
params and replaceurl
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 pagelicense_key
- your saved licence key
from geoip2.
@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.
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.
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.
@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.
@peter-gribanov oh, yes, forgot that, I fixed guide.
from geoip2.
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.
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.
@ssammut Yes. Really. MaxMind changed the structure of the archive. I will fix it.
from geoip2.
@ssammut can you check now for the master
branch?
from geoip2.
@peter-gribanov that was quick! thanks! tested master and works as expected. mmdb is located in var/cache/env.
thanks again
from geoip2.
Thank you people, you are awesome! Everything works like a charm.
from geoip2.
Related Issues (20)
- how to inject service in symfony 4? HOT 2
- PHPStan error HOT 1
- Need update Travis CI config
- got error after Upgrading a Patch Version 4.3.* branch HOT 1
- Need allow use a empty configuration
- SymfonyStyle is not supported in Symfony 2.3 - 2.6
- Need break support Symfony 2.6 and below HOT 1
- Enable auto-wiring HOT 3
- Issue with Symfony 4.4 integration - The file var/cache/dev/GeoLite2-City.mmdb does not exist or is not readable HOT 3
- Paid edition's of the database aren't allowed as "edition" value HOT 2
- DependencyInjection for ReaderFactory does not work in Symfony 5.2 HOT 3
- Issue with Symfony 4.4 integration - Resource temporarily unavailable HOT 6
- Unrecognized option "path" under "gpslab_geoip" HOT 1
- Usage of ASN database HOT 5
- Out of memory updating GeoLite2-City HOT 1
- no Command efined HOT 2
- Update will throw an UnexpectedValueException HOT 1
- How to use Service injection in Symfony 6 properly HOT 1
- Allow setting permissions on downloaded databases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoip2.