Running Archive.php behind Auth Required Proxy

I am using Piwik 1.9, tried 1.9.1 to resolve but it didn’t help and after troubleshooting I am fairly confident the issue is with our Proxy server, so my question is this…how can I pass a username/pw variable when running the archive.php script? We were recently moved to a proxy server that requries authorization, this has been causing problems in other areas with Plone Buildout, etc. But just noticing a similar type error when trying to run the archive.php script. Troubleshooting on my own, here is what I’m seeing:

ERROR: The Piwik URL http://servername/piwik/index.php does not seem to be pointing to a Piwik server. Response was ‘’.
PHP Fatal error: The Piwik URL http://servername/piwik/index.php does not seem to be pointing to a Piwik server. Response was ‘’. in /var/www/html/piwik/misc/cron/archive.php on line 561

Which is fairly similar to what some other’s have reported…but above this in the output I am also seeing:

[2012-11-02 16:33:38] [6ac351c9] Running as Super User: xxxadmin
[2012-11-02 16:33:40] [6ac351c9] ERROR: Got invalid response from API request: http://servername/piwik/index.php?module=API&method=API.getDefaultMetricTranslations&format=php&trigger=archivephp. Response was ’ Notification: Proxy Authorization Required

I also see this:

Authentication is required to access the Internet using this system. A valid user ID and password must be entered when prompted.

Any help on this would be much appreciated!

Got it…turns out it was quite simple.

I just had to set the following in my /etc/bashrc file: export no_proxy=localhost,servername,piwik_url

After that everything worked great! Hope this helps someone else out there…

Thanks for posting the solutoin I’m sure it will help other users! :slight_smile: