urllib2.URLError: <urlopen error [Errno -2] Name or service not known> from post-review

3,379 views
Skip to first unread message

Barry

unread,
Mar 4, 2011, 8:44:35 PM3/4/11
to reviewboard
I am attempting to setup reviewboard for use by our development team.
I am running reviewboard 1.5.4 on a Centos 5 platform. The code
repository is subversion, running on FreeBSD 6.4-RELEASE-p8. My
desktop is running Ubuntu 10.04, with Subversion command-line client,
version 1.6.6, Python 2.6 and RBTools 0.3.2.

After making a minor change to a .py file I attempted to run post-
review and got this response:


barryc@OREMUT2-1RJ1TF1:~/cloud/trunk/test/qatest$ post-review
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 -2] Name or service not known>


Any ideas on the problem? Thanks in advance for any help.

Barry

Christian Hammond

unread,
Mar 5, 2011, 3:27:58 AM3/5/11
to revie...@googlegroups.com, Barry
This indicates that it's unable to look up whatever host it's trying to access (the Review Board host, specifically). You can run with -d (debug) and then ping the host it's trying to access to begin diagnosing this.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com



--
Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to reviewboard...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en

Barry

unread,
Mar 14, 2011, 2:07:23 PM3/14/11
to reviewboard
We finally tracked down the problem: Review Board did not like the
trailing slash (/) on the repository base path. Once we removed that,
everything worked.

Thanks for your help.

Barry Carroll
Software QA Engineer
e-mail: barry.g...@gmail.com
phone: 801-437-7463
cell: 541-915-5981


On Mar 5, 2:27 am, Christian Hammond <chip...@chipx86.com> wrote:
> This indicates that it's unable to look up whatever host it's trying to
> access (the Review Board host, specifically). You can run with -d (debug)
> and then ping the host it's trying to access to begin diagnosing this.
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board -http://www.reviewboard.org
> VMware, Inc. -http://www.vmware.com
> > Happy user? Let us know athttp://www.reviewboard.org/users/
Reply all
Reply to author
Forward
0 new messages