Skip to content
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

Error in geoIP auto updater #4805

Closed
imoullet opened this issue Mar 4, 2014 · 4 comments
Closed

Error in geoIP auto updater #4805

imoullet opened this issue Mar 4, 2014 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@imoullet
Copy link

imoullet commented Mar 4, 2014

Runnning piwik 2.1 RC9

I run the auto-archive script via the command :
/usr/bin/php /var/www/html/piwik/misc/cron/archive.php --url=http://w3stat.unil.ch/piwik/ > /home/cmoullet/log/archive.out 2>&1

via the crontab every 2 hours

At the end of the output I have the following error message for the scheduled task :

GeoIPAutoUpdater.update,ERROR: GeoIPAutoUpdater: failed to download ' http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz' to '/var/www/html/piwik/misc/GeoIPCity.dat.dat.gz': curl_exec: Protocol http not supported or disabled in libcurl

I do not understand since I checked via phpinfo ( see forum http://forum.piwik.org/read.php?2,111922,112320#msg-112320) that the http protocol is enabled in my php libcurl

Furthermore, why does it try to save the geoIP data as "/var/www/html/piwik/misc/GeoIPCity.dat.dat.gz" with doubled dat and not simply GeoIPCity.dat.gz??

For information, the command line :

curl http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz > /tmp/geoip.dat.gz

works perfectly ..

So I think there is no problem with my curl or php installation but rather in the archive.php script or subscript responsible for the automatic upload of geoIP (GeoIPAutoUpdater).

Thanks to help me

@mattab
Copy link
Member

mattab commented Mar 11, 2014

The error is : curl_exec: Protocol http not supported or disabled in libcurl

this is PHP or curl config issue (do a search http://startpage.com/ maybe)

@imoullet
Copy link
Author

I DON T think so. .since as I told you the command line :

curl http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz > /tmp/geoip.dat.gz

works perfectly ..!!!!!

And the fact that it tries to save to /var/www/html/piwik/misc/GeoIPCity.dat.dat.gz with doubled dat ( see error message)

GeoIPAutoUpdater.update,ERROR: GeoIPAutoUpdater: failed to download ' http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz' to '/var/www/html/piwik/misc/GeoIPCity.dat.dat.gz': curl_exec: Protocol http not supported or disabled in libcurl

has nothing to do with libcurl !! But indeed with archive.php ..

Thanks to reconsider my question and read all the checks I made before opening this ticket which I think to be directly related to piwik archive.php code

@mattab
Copy link
Member

mattab commented Mar 12, 2014

it's possible that "curl" on command line works but not the PHP curl which is different.

see https://php.net/manual/en/curl.installation.php

unfortunately the error indicates a curl configuration problem not a piwik bug

Cheers

@imoullet
Copy link
Author

OK I will try to find the error by myself for that curl problem although I do not understand since both in command line and PHP the protocols are enabled for libcurl and my installation is conform to the php manual (!!) . BUT please is it possible to correct the fact the archive.php wants to download the file to GeoLiteCity.dat.dat.gz instead of GeoLiteCity.dat.gz !! I do not think that is a problem of my installation, is it ???

@imoullet imoullet added this to the 2.2.1 - Piwik 2.2.1 milestone Jul 8, 2014
@mattab mattab added the wontfix label Aug 3, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants