3246: rbt is unable to complete request with https only server

ed***@netfl****** (Google Code) (Is this you? Claim this profile.)
david
david
Feb. 18, 2014
What version are you running? RBTools 0.5.7

What's the URL of the page containing the problem? N/A

What steps will reproduce the problem?
1. Set up a RB server listening only on https
2. Attempt to setup the repo using "rbt setup-repo"

What is the expected output? What do you see instead?

I expect to get a full connection; instead the error is:

CRITICAL:root:[Errno 61] Connection refused

What operating system are you using? What browser?

Using Mac OS X 10.9.2 to run rbt, connecting to web server running Ubuntu.

Please provide any additional information below.

Debug output suggests that rbt is initially using https, but then using http to get api info.

DEBUG:root:Running: git config --get remote.origin.url
DEBUG:root:repository info: Path: ssh://git@stash.corp.XXXXXXXX:7999/XXX/XXXXXXX.git, Base path: , Supports changesets: False
DEBUG:root:Making HTTP GET request to https://54.193.63.154/api/
DEBUG:root:Making HTTP GET request to http://54.193.63.154/api/info/
chipx86
#1 chipx86
This is usually caused by a configuration error on the server. While Apache is set for HTTPS, Review Board is not aware it should be using HTTPS.

Make sure that you have "https://..." in the Server field in the Admin UI -> General Settings.
  • +NeedInfo
#2 ed***@netfl****** (Google Code) (Is this you? Claim this profile.)
The general settings -> Site Settings -> Server is indeed set to "https://...".  Didn't make a diff, the rbt tool still switches from https://.../api/ to http://.../api/info/.
david
#3 david
You may also need to add this to your settings_local.py file:

https://docs.djangoproject.com/en/1.4/ref/settings/#secure-proxy-ssl-header
david
#4 david
  • -NeedInfo
    +PendingReview
  • +david
david
#5 david
Fixed in review board release-1.7.x (ac6f869). Thanks!
  • -PendingReview
    +Fixed