@imoullet opened this Issue on March 4th 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 commented on March 11th 2014 Owner

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 commented on March 11th 2014

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 commented on March 12th 2014 Owner

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 commented on March 12th 2014

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 ???

This Issue was closed on March 12th 2014
Powered by GitHub Issue Mirror