3306: server Erro page when click "Ship it!" behind proxy reverse
- SetupIssue
- Review Board
fr**@esss.****** (Google Code) (Is this you? Claim this profile.) | |
Oct. 30, 2014 |
What version are you running? 1.7.22 What's the URL of the page containing the problem? https://eden.esss.com.br/reviewboard/r/40693/# http://flinsvm012.fln.esss.com.br/reviewboard/api/review-requests/40693/reviews/draft/ What steps will reproduce the problem? 1. access reviewboard from external URL (will be redirect by apache proxy reverse to internal url) 2. chose a review 3. click on Ship It! What is the expected output? What do you see instead? The form for ship the review What operating system are you using? What browser? Centos 5 on external url and centos 6 on internal url, Chrome/Firefox Please provide any additional information below. When button ship it! is clicked appear a message "A server error occurred.Show Details Dismiss". In details have a blank page showing a internal URL Error Code: 0 Error Text: error Request URL: http://flinsvm012.fln.esss.com.br/reviewboard/api/review-requests/40693/last-update/ Request Data: (none) Response Data:
It's impossible to know what's going on without some more information. Can you include: a) the relevant parts of your apache configuration b) any relevant parts of the review board log c) any relevant parts of the apache logs d) some info from the network debug console in chrome and/or firefox
-
+ NeedInfo
Hi, all request on https://eden.esss.com.br/reviewboard in apache mod_proxy works, but "ship it"! httpd.conf in tag <VirtualHost> ProxyPass /reviewboard http://flinsvm012.fln.esss.com.br/reviewboard ProxyPassReverse /reviewboard http://flinsvm012.fln.esss.com.br/reviewboard RequestHeader set X-Forwarded-Protocol "https"
So you gave me the answer to (a) but not to (b), (c), or (d). Still waiting on those before I can help.
B) none relevant in reviewboard.log (nothing during Ship it!) C) accessing from eden.esss.com.br/reviewboard and clicking in Ship it! 10.0.0.1 - - [05/May/2014:10:26:55 +0000] "GET /reviewboard/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.1 - - [05/May/2014:10:26:55 +0000] "GET /reviewboard/dashboard/ HTTP/1.1" 200 3039 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.1 - - [05/May/2014:10:26:59 +0000] "GET /reviewboard/r/ HTTP/1.1" 200 5846 "https://eden.esss.com.br/reviewboard/dashboard/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.1 - - [05/May/2014:10:27:07 +0000] "GET /reviewboard/r/40781/ HTTP/1.1" 200 4676 "https://eden.esss.com.br/reviewboard/r/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.1 - - [05/May/2014:10:27:07 +0000] "GET /reviewboard/static/rb/images/review_box_top_bg.png HTTP/1.1" 200 134 "https://eden.esss.com.br/reviewboard/r/40781/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.1 - - [05/May/2014:10:27:07 +0000] "GET /reviewboard/static/rb/images/review_box_bottom_bg.png HTTP/1.1" 200 126 "https://eden.esss.com.br/reviewboard/r/40781/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.1 - - [05/May/2014:10:27:20 +0000] "GET /reviewboard/api/review-requests/40781/?api_format=json HTTP/1.1" 200 606 "https://eden.esss.com.br/reviewboard/r/40781/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.118 - - [05/May/2014:10:27:20 +0000] "GET /reviewboard/api/review-requests/40781/reviews/draft/?api_format=json HTTP/1.1" 401 70 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" C) accessing from internal 10.0.0.118 - - [05/May/2014:10:28:42 +0000] "GET /reviewboard/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.118 - - [05/May/2014:10:28:42 +0000] "GET /reviewboard/dashboard/ HTTP/1.1" 200 3039 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.118 - - [05/May/2014:10:28:59 +0000] "GET /reviewboard/r/ HTTP/1.1" 200 5846 "http://flinsvm012.fln.esss.com.br/reviewboard/dashboard/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.118 - - [05/May/2014:10:29:06 +0000] "GET /reviewboard/r/40781/ HTTP/1.1" 304 - "http://flinsvm012.fln.esss.com.br/reviewboard/r/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.118 - - [05/May/2014:10:29:22 +0000] "GET /reviewboard/api/review-requests/40781/?api_format=json HTTP/1.1" 200 606 "http://flinsvm012.fln.esss.com.br/reviewboard/r/40781/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.118 - - [05/May/2014:10:29:22 +0000] "GET /reviewboard/api/review-requests/40781/reviews/draft/?api_format=json HTTP/1.1" 404 70 "http://flinsvm012.fln.esss.com.br/reviewboard/r/40781/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.118 - - [05/May/2014:10:29:22 +0000] "POST /reviewboard/api/review-requests/40781/reviews/ HTTP/1.1" 201 344 "http://flinsvm012.fln.esss.com.br/reviewboard/r/40781/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" 10.0.0.118 - - [05/May/2014:10:29:23 +0000] "GET /reviewboard/r/40781/ HTTP/1.1" 200 4741 "http://flinsvm012.fln.esss.com.br/reviewboard/r/40781/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36" D) Last info in Network console from Chorme, before Ship it! from external ?api_format=json /reviewboard/api/review-requests/40781 GET 200 OK application/vnd.reviewboard.org.review-request+json jquery-1.8.2.min.js:2 Script 1.1 KB 2.1 KB 50 ms 49 ms 49 ms ?api_format=json flinsvm012.fln.esss.com.br/reviewboard/api/review-requests/40781/reviews/draft GET (canceled) jquery-1.8.2.min.js:2 Script 0 B 0 B 21 ms -
Unfortunately, we really don't know anything about reverse proxying using apache. I think you're on your own to debug this =/
-
- NeedInfo + SetupIssue
Thanks, We use many applications in the same way,like jira, confluence,stash, but just reviewboard in particular when will ship it! occur this problem. It's no possible that internal code of reviewboard, it submit to an internal absolute url and not relative? Thanks for advance
I put the address https external and all links inside review board work great, but when I click in "Ship IT!" the message "A server error occurred.Show Details Dismiss" apear on top.
Hi, I found the solution, based on a similar problem with tomcat, I discovered that Django have a parameter to use with Proxy Rever/Loadbalancer: the follow line must be inside conf/settings_local.py USE_X_FORWARDED_HOST = True Thanks for you help