Proxy Server error
Added by Robert Sullivan almost 14 years ago
Hi,
I trolled the Forums for the below error. I am aware of a similar issue with Ruby and proxy server. In my case, it is PHP 5
Getting an annoying error on a issue submission. On submit, the below error page is returned. BUT! The info is still written to the DB. On refresh, it is ok. So more of an annoying behavior than a TRUE error. Any help would be greatly appreciated
START
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /redmine/projects/beca/issues/new.
Reason: Error reading from remote server
Apache/2.2.14 (Fedora) Server at redmine.imagistic.com Port 88
END
Best,
DJkHam
Replies (5)
RE: Proxy Server error
-
Added by Felix Schäfer almost 14 years ago
How is your redmine served, what is the configuration of the reverse proxy, how are you trying to interact with redmine, have you looked at your redmine and apache logs, does the error occur immediately or after some time has passed...?
RE: Proxy Server error
-
Added by Robert Sullivan almost 14 years ago
Hi Felix,
See below.
START
Mongrel server – “ruby /opt/redmine-0.9.3/script/server mongrel -e production”
(issue also occurred with webrick)
Apache proxy configuration:
ProxyPass /redmine http://localhost:3000
ProxyPassReverse /redmine http://localhost:3000
<!--This is Intended to put redmine on a subURL with no “port” redmine paths have been altered to recognize this location as the location – this is the last line in the httpd.conf file – thereby existing outside all directory and other location based restrictions.-->
<!--Redmine Ruby setting related to this-->
“environment.rb”
Redmine::Utils::relative_url_root = "/redmine"
<!--This error occurs immediately after POST’ing data to the server usually inside a tracker – the POST data gets through most of the time, but the response (presumably directing users to the tracker issue page with a note about a complete update – and the updated data inline) never occurs.
Error logs for this are very generic and don’t seem to indicate anything substantial. (request 2 of 3 is likely the occurrence of the proxy error)-->
Processing IssuesController#show (for 192.168.0.100 at 2010-10-11 09:19:20) [GET]
Parameters: {"action"=>"show", "id"=>"361", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml
Completed in 229ms (View: 167, DB: 15) | 200 OK [http://redmine.imagistic.com/issues/361]
Processing IssuesController#edit (for 192.168.0.100 at 2010-10-11 09:19:34) [POST]
Parameters: {"time_entry"=>{"comments"=>"", "activity_id"=>"", "hours"=>""}, "commit"=>"Submit", "action"=>"edit", "authentici… [more post data]
Redirected to http://redmine.imagistic.com/redmine/issues/361
Completed in 139ms (DB: 19) | 302 Found [http://redmine.imagistic.com/issues/361/edit]
Processing IssuesController#show (for 192.168.0.100 at 2010-10-11 09:19:34) [GET]
Parameters: {"action"=>"show", "id"=>"361", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml
Completed in 244ms (View: 177, DB: 16) | 200 OK [http://redmine.imagistic.com/issues/361]
END
RE: Proxy Server error
-
Added by Felix Schäfer almost 14 years ago
Please use the < pre> < /pre>
tags (without the extra spaces of course) in the future for better legibility of pasted configuration/log file contents.
Robert Sullivan wrote:
Redirected to http://redmine.imagistic.com/redmine/issues/361
Completed in 139ms (DB: 19) | 302 Found [http://redmine.imagistic.com/issues/361/edit]
There's a discrepancy here, one URL is with /redmine
, the other not. I think you need to tell mongrel about the suburi, or there is another error somewhere.
RE: Proxy Server error
-
Added by Felix Schäfer almost 14 years ago
Please use the < pre> < /pre>
tags (without the extra spaces of course) in the future for better legibility of pasted configuration/log file contents.
Robert Sullivan wrote:
Redirected to http://redmine.imagistic.com/redmine/issues/361
Completed in 139ms (DB: 19) | 302 Found [http://redmine.imagistic.com/issues/361/edit]
There's a discrepancy here, one URL is with /redmine
, the other not. I think you need to tell mongrel about the suburi, or there is another error somewhere.
RE: Proxy Server error
-
Added by Robert Sullivan almost 14 years ago
Felix Schäfer wrote:
Please use the
< pre> < /pre>
tags (without the extra spaces of course) in the future for better legibility of pasted configuration/log file contents.Robert Sullivan wrote:
Redirected to http://redmine.imagistic.com/redmine/issues/361
Completed in 139ms (DB: 19) | 302 Found [http://redmine.imagistic.com/issues/361/edit]There's a discrepancy here, one URL is with
/redmine
, the other not. I think you need to tell mongrel about the suburi, or there is another error somewhere.
Felix,
Thank you much for your help. We implemented what you suspected. And my bad on the
. ??...discrepancy here, one URL is with @/redmine@, the other not. I think you need to tell mongrel about the suburi, or there is another error somewhere.?? we told Mongrel about the suburi and.... so far so good. :). I am monitoring closely Best, DJKham