New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When misc/GeoLiteCity.dat file is missing, this can break Piwik #8489
Comments
It breaks Tracker too! eg. Looking on the server, the file does not actually exist.
I'm wondering why Piwik tries to load the file when it does not even exist, maybe this is the bug? |
FYI: to workaround this issue I had to re-download the geoip database:
|
I tried to reproduce by removing the file Do you still have that corrupt file? Tried |
unfortunately we cannot reproduce the issue yet. If you experience this issue, please comment here! |
Again got the issue today. Demo.piwik.org is down, error log shows:
the file is that is being opened does not even exist:
It's worrying that when this file is not even there, Piwik is broken in this way. let's investigate! |
I investigated and couldn't reproduce that time. Maybe someone else can |
Do we have mod_geoip for apache on demo.piwik.org? Maybe it crashes if the configured GeoIPDBFile is not found? |
Yes
Maybe indeed, if you can reproduce let us know! |
Haven't installed mod_geoip yet, but I'll try to reproduce later...
|
I've just installed mod_geoip on my development box. Removing or corrupting does produce the " Error while opening data file" but everything is still working - no segfault. |
Apache 2.2
|
I am having this exact issue. Running a Piwik install without problems, followed the steps in the FAQ for installing Geolocation via PECL, and now the config page for geolocation won't load and that segmentation fault shows up in the log. I haven't really been able to find out more about this and the workaround of redownloading the database didn't work for me, but I'll be happy to do anything that may help you debug this. Interestingly when I comment out the geoip.custom_directory directive in php.ini, everything works again and PECL geolocation works as well. The config page says the directive is empty but I suppose Piwik found the way to the database file on its own. |
The GeoIPCity.dat was renamed by the system to GeoIPCity.dat.broken, and geotracking stopped working, I don't know when. My Piwik-installation worked fine, though. I restored a fresh copy of GeoIPCity.dat to the |
I got the below error by mail, and the location no longer works. Also, GeoIPCity.dat in the /misc folder has been renamed to GeoIPCity.dat.broken ...
|
@sgiehl Maybe you have a chance to look into this issue? we also experience it on demo2, it would be awesome to address it in our LTS 👍 |
I've retried to reproduce, but I'm not able to reproduce the segfault. Maybe it only occurs with a special combinations of os/php/pecl versions. We maybe should try to reduce to possibility that those files are even missing. If I've seen that correctly, the GeoIPUpdater tries to download and update those files. If a downloaded file doesn't work it will be renambed to |
Same issue for me. If I have a GeoIPCity.dat located in the misc directory, it breaks Piwik. If not, Piwik runs. Ubuntu 16.04, Matomo 3.3.0, php7, geoip1.1.1 |
refs #13957 |
I will close this issue now. GeoIP was deprecated by maxmind, and thus using the Pecl extension doesn't make much sense anymore, as it doesn't support GeoIP2 databases. |
Right now, demo.piwik.org shows "This connection was reset" error. It's completely broken and not accessible. Looking at errors logs we can see continuously these errors added:
Suggested solution:
The text was updated successfully, but these errors were encountered: