Closed slawa-dev closed 6 years ago
@s1awa thanks for the report. i've just added the extension to our white list in: https://github.com/piwik/piwik/pull/11081/files
Could you check if it works after updating the PR, since I haven't tested?
@mattab
The downloaded file is not a valid GeoIP database. Please re-check the URL or download the file manually.
There are more checks for downloaded GeoIP Databases.
INFO UserCountry[2016-12-26 01:22:59] [5fd6a] GeoIPAutoUpdater: successfully downloaded 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz'
INFO UserCountry[2016-12-26 01:23:00] [5fd6a] GeoIPAutoUpdater: Encountered PHP error when testing newly downloaded GeoIP database: 8: Undefined offset: -16776960 on line 1705 of /home/www/analytics/libs/MaxMindGeoIP/geoip.inc.
ERROR UserCountry[2016-12-26 01:23:00] [5fd6a] /home/www/analytics/plugins/UserCountry/GeoIPAutoUpdater.php(161): GeoIPAutoUpdater: failed to unzip '/home/www/analytics/misc/GeoIPCity.dat.mmdb.gz' after downloading 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz': The downloaded file is not a valid GeoIP database. Please re-check the URL or download the file manually.
#0 /home/www/analytics/plugins/UserCountry/GeoIPAutoUpdater.php(96): Piwik\Plugins\UserCountry\GeoIPAutoUpdater->downloadFile('loc', 'http://geolite....')
#1 [internal function]: Piwik\Plugins\UserCountry\GeoIPAutoUpdater->update(NULL)
#2 /home/www/analytics/core/Scheduler/Scheduler.php(227): call_user_func(Array, NULL)
#3 /home/www/analytics/core/Scheduler/Scheduler.php(124): Piwik\Scheduler\Scheduler->executeTask(Object(Piwik\Plugins\UserCountry\GeoIPAutoUpdater))
#4 /home/www/analytics/plugins/CoreAdminHome/API.php(58): Piwik\Scheduler\Scheduler->run()
#5 /home/www/analytics/core/CronArchive.php(536): Piwik\Plugins\CoreAdminHome\API->runScheduledTasks()
#6 /home/www/analytics/core/CronArchive.php(290): Piwik\CronArchive->runScheduledTasks()
#7 /home/www/analytics/core/Access.php(469): Piwik\CronArchive->Piwik\{closure}()
#8 /home/www/analytics/core/CronArchive.php(292): Piwik\Access::doAsSuperUser(Object(Closure))
#9 /home/www/analytics/plugins/CoreAdminHome/API.php(179): Piwik\CronArchive->main()
#10 [internal function]: Piwik\Plugins\CoreAdminHome\API->runCronArchiving()
#11 /home/www/analytics/core/API/Proxy.php(219): call_user_func_array(Array, Array)
#12 /home/www/analytics/core/API/Request.php(236): Piwik\API\Proxy->call('\\Piwik\\Plugins\\...', 'runCronArchivin...', Array)
#13 /home/www/analytics/plugins/API/Controller.php(40): Piwik\API\Request->process()
#14 [internal function]: Piwik\Plugins\API\Controller->index()
#15 /home/www/analytics/core/FrontController.php(518): call_user_func_array(Array, Array)
#16 /home/www/analytics/core/FrontController.php(122): Piwik\FrontController->doDispatch('API', false, Array)
#17 /home/www/analytics/core/dispatch.php(34): Piwik\FrontController->dispatch()
#18 /home/www/analytics/index.php(27): require_once('/home/www/anal...')
#19 /home/www/analytics/misc/cron/archive.php(70): require_once('/home/www/anal...')
#20 {main}
INFO CoreAdminHome[2016-12-26 01:23:00] [5fd6a] Scheduler: finished. Time elapsed: 0.803s
@mattab GeoIP2 Plugin is buggy atm. So the fix might work when the plugin is fixed.
Matomo 3.5.0 now includes a GeoIp2 plugin. This fully support the new mmdb format.
Error: Encountered unsupported archive type 'mmdb.gz'
MaxMind geoip2 uses new format for goip database with .mmdb file ending. e.g. GeoLite2-City.mmdb http://dev.maxmind.com/geoip/geoip2/geolite2/
The download url for the file is: http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
cron/archive.php generates an error when auto updating.