2095: Cannot submit a bug using post-review

apsof*****@gmai***** (Google Code) (Is this you? Claim this profile.)
May 11, 2011
What version are you running?
RBTools 0.3.2


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

What steps will reproduce the problem?
1.  post-review -d

What is the expected output? What do you see instead?
It looks like it is not picking up the full path to my server
root_resource = self.api_get('api/')

What operating system are you using? What browser?
Ubuntu linux

Please provide any additional information below.
Note that I did have this working at one point.   I cannot tell if the reviewboard server has changed (though my IT guy assures me it has not).  I can certainly access the site with a web browser.

It almost seems like post-review forgot where my server is located.  I cannot figure out how to clear any cookies or cache that it might have

Here is the full Debug trace

>>> RBTools 0.3.2
>>> Home = /home/andyp
>>> svn info
>>> diff --version
>>> repository info: Path: https://svn.XXX.com:10025/svn2, Base path: /myproject/myfolder, Supports changesets: False
>>> svn propget reviewboard:url /home/andyp/myproject/(removed)/myfolder
>>> HTTP GETting api/

Traceback (most recent call last):
  File "/usr/local/bin/post-review", line 9, in <module>
    load_entry_point('RBTools==0.3.2', 'console_scripts', 'post-review')()
  File "/usr/local/lib/python2.6/dist-packages/RBTools-0.3.2-py2.6.egg/rbtools/postreview.py", line 3741, in main
    server.check_api_version()
  File "/usr/local/lib/python2.6/dist-packages/RBTools-0.3.2-py2.6.egg/rbtools/postreview.py", line 433, in check_api_version
    root_resource = self.api_get('api/')
  File "/usr/local/lib/python2.6/dist-packages/RBTools-0.3.2-py2.6.egg/rbtools/postreview.py", line 876, in api_get
    return self.process_json(self.http_get(path))
  File "/usr/local/lib/python2.6/dist-packages/RBTools-0.3.2-py2.6.egg/rbtools/postreview.py", line 846, in http_get
    rsp = urllib2.urlopen(url).read()
  File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.6/urllib2.py", line 391, in open
    response = self._open(req, data)
  File "/usr/lib/python2.6/urllib2.py", line 409, in _open
    '_open', req)
  File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 1161, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.6/urllib2.py", line 1136, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>
chipx86
#1 chipx86
If you execute that propget command, what do you see?

It sounds like it did change, or that the server isn't running anymore.
  • +NeedInfo
  • -Type-Defect
    +Type-Support
#2 apsof*****@gmai***** (Google Code) (Is this you? Claim this profile.)
1. $ svn propget reviewboard:url /home/andyp/myproject/(removed)/myfolder

Returns the correct URL
http://reviewboard.mycompany.com


2. The server is running -- I can get to it via the web browser.  Note that I am outside of the firewall... are there any non-standard ports that need to be opened?
#3 apsof*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Additional information:
I tried the following

1) Removed any propsets that might have been lurking 
svn propdel reviewboard:url -R

2) Tried to post a review using the commandline arguments
post-review --server=http://reviewboard.mycompany.com

Same result as before.
chipx86
#4 chipx86
Just port 80. If you can reach it in a web browser, post-review should work.

Are you behind a proxy at all?
#5 apsof*****@gmai***** (Google Code) (Is this you? Claim this profile.)
I am not behind a proxy.   "Connection refused" should mean that it at least contacted the server?

Note that I can connect to the web page using telnet (I'm not a html wiz so I don't know what I should be asking for, but here is proof that I can get to the page)

$ telnet reviewboard.mycompany.com 80
Trying XX.XX.XX.XX...
Connected to reviewboard.mycompany.com.
Escape character is '^]'.
get /index.html
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>get to /index.html not supported.<br />
</p>
<hr>
<address>Apache/2.2.16 (Ubuntu) Server at localhost.localdomain Port 80</address>
</body></html>
Connection closed by foreign host.
#6 apsof*****@gmai***** (Google Code) (Is this you? Claim this profile.)
It is working again.  The only thing I did was take a system update from the Update Manager.   

I still don't know what was wrong, but you can close this item.
david
#7 david
Thanks.
  • -NeedInfo
    +SetupIssue