|
Installation Error "Proxy Error : The proxy server received an invalid response from an upstream server" |
Posted by Eric on Aug-10-2009 23:06 |
|
Hello,
My Config :
Server : Linux
Web Server : Apache 2.x
PHP Version 5.2.3
I have a probleme after installing ChartDirector. When i want to display a chart, the message bellow appear :
------------------------------------------
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /chart/cone.php.
Reason: Error reading from remote server
------------------------------------------
For information, i have modified the path extension in the php.ini (replacing relative path by a absolute path).
Have you an idea ?
Thanks.
Eric |
Re: Installation Error "Proxy Error : The proxy server received an invalid response from an upstream server" |
Posted by Peter Kwan on Aug-11-2009 01:04 |
|
Hi Eric,
It is possible your ChartDirector and Apache/PHP is working normally. The error can be produced by your proxy server. (It seems you are not accessing the web server directly, but through a proxy server.)
To diagnose the problem, please do not use the proxy server. Connect to the Apache/PHP directly. This can help to verify if the Apache/PHP/ChartDirector are working correctly.
If the Apache/PHP/ChartDirector are working correctly, then the proxy server has some errors. You would need to diagnose and trouble-shoot your proxy server.
From experience, some proxy server assumes PHP requests must be text/html. However, for charts, the PHP is producing image/png. When the proxy server receives image/png, it cannot handle this and generates the "invalid response" error. To solve the problem, you may need to configure the proxy server to handle PHP that outputs non-text/html correctly.
Hope this can help.
Regards
Peter Kwan |
Re: Installation Error "Proxy Error : The proxy server received an invalid response from an upstream server" |
Posted by Eric on Aug-11-2009 16:11 |
|
Hi Peter,
Thanks for your fast reply.
When i try to acces to the web page from another computer without a proxy, i have a blank page.
When i connect to the web server and execute wget http//localhost/.../simplepie.php :
---------------
--09:48:37-- http://localhost/xxx/chart/simplepie.php
=> `simplepie.php.1'
R?solution de localhost... x.x.x.x
Connexion vers localhost|x.x.x.x|:80...connect?.
requ?te HTTP transmise, en attente de la r?ponse...Aucune donn?e re?ue.
Nouvel essai.
--09:48:38-- http://localhost/xxx/chart/simplepie.php
(essai: 2) => `simplepie.php.1'
Connexion vers localhost|x.x.x.x|:80...connect?.
requ?te HTTP transmise, en attente de la r?ponse...Aucune donn?e re?ue.
Nouvel essai.
--09:48:41-- http://localhost/xxx/chart/simplepie.php
(essai: 3) => `simplepie.php.1'
Connexion vers localhost|x.x.x.x|:80...connect?.
requ?te HTTP transmise, en attente de la r?ponse...Aucune donn?e re?ue.
Nouvel essai.
--09:48:44-- http://localhost/xxx/chart/simplepie.php
(essai: 4) => `simplepie.php.1'
Connexion vers localhost|x.x.x.x|:80...connect?.
requ?te HTTP transmise, en attente de la r?ponse...Aucune donn?e re?ue.
Nouvel essai.
-----------
it's strange because the wget make several retry... (with another file, no problem).
I modified the file simplepie.php :
If i add exit(); just before the include("phpchart...") -> OK
If i add exit(); just after the include("phpchart...") -> several retry !
The probleme comes from the file phpchartdirector. Why this file make the webserver retry the web call ?
Have you an idea ?
Eric |
Re: Installation Error "Proxy Error : The proxy server received an invalid response from an upstream server" |
Posted by Peter Kwan on Aug-12-2009 00:39 |
|
Hi Eric,
There may be some errors when the server attempts to load ChartDirector. It is probably due to installation issues. I suspect your PHP is configured to not returning any error message to the browsers, so you just see a blank page. (Some PHP production servers may intentionally disable error messages to avoid the users from seeing them.) The wget is confused because of the lack of response from the server (not even an error response), so it keeps retrying.
Please check your PHP system to see if it is configured not to return error messages. (Use phpinfo, and check the "display_errors" and "error_reporting" settings.) If it does not return error messages, please configure it to return error messages, so you can see the error messages. Alternatively, you may try to look for the error messages in your PHP error log file, and/or Apache error log file.
You may also want to check your phpinfo to see if it is actually using your "php.ini". (There can be multiple "php.ini" in your system, and the PHP may not be using the one that you have modified.) Also, please check if the PHP extension directory has really been changed. (Some PHP systems may require you to restart the web server if you modify "php.ini".)
If you need further help, would you mind to inform me your "phpinfo", and also the exact directory that you have installed ChartDirector to, and also the exact ChartDirector OS edition you are using? (There are two Linux OS editions for ChartDirector, one for Linux (i386) and one for Linux (x86_64).)
Regards
Peter Kwan |
Re: Installation Error "Proxy Error : The proxy server received an invalid response from an upstream server" |
Posted by Eric on Aug-12-2009 15:30 |
|
Hello,
Thanks for your reply.
- My php config displays error message.
- I'm using the correct php.ini.
- I've downloaded the correct chartdirector file (linux 32)
I have to give up this solution.
Thanks a lot.
Eric |
|