Getting "The file ...... could not be found in the repository" with mercurial repository confugured with ssh
I am using Review Board 2.0.7 with mercurial repository configured with ssh. I created a new review request and uploaded the diff and parent diff for a committed changeset. But I get the following error: There was an error displaying this diff. The file 'kvstore/src/oracle/kv/util/PingCollector.java' (r5c2b44f746e4) could not be found in the repository This may be a bug in the software, a temporary outage, or an issue with the format of your diff. Please try again, and if you still have trouble,contact support. Clicking on "Details" gives the following: Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/views.py", line 265, in get response = renderer.render_to_response(request) File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/renderers.py", line 56, in render_to_response return HttpResponse(self.render_to_string(request)) File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/renderers.py", line 74, in render_to_string large_data=True) File "/usr/lib/python2.6/site-packages/Djblets-0.8.20-py2.6.egg/djblets/cache/backend.py", line 111, in cache_memoize data = lookup_callable() File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/renderers.py", line 73, in lambda: self.render_to_string_uncached(request), File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/renderers.py", line 87, in render_to_string_uncached request=request) File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/diffutils.py", line 420, in populate_diff_chunks chunks = generator.get_chunks() File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/chunk_generator.py", line 156, in get_chunks large_data=True) File "/usr/lib/python2.6/site-packages/Djblets-0.8.20-py2.6.egg/djblets/cache/backend.py", line 111, in cache_memoize data = lookup_callable() File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/chunk_generator.py", line 155, in lambda: list(self._get_chunks_uncached()), File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/chunk_generator.py", line 162, in _get_chunks_uncached old = get_original_file(self.filediff, self.request, encoding_list) File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/diffutils.py", line 198, in get_original_file request=request) File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/scmtools/models.py", line 344, in get_file large_data=True)[0] File "/usr/lib/python2.6/site-packages/Djblets-0.8.20-py2.6.egg/djblets/cache/backend.py", line 111, in cache_memoize data = lookup_callable() File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/scmtools/models.py", line 343, in request)], File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/scmtools/models.py", line 531, in _get_file_uncached base_commit_id=base_commit_id) File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/scmtools/hg.py", line 48, in get_file base_commit_id=base_commit_id) File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/scmtools/hg.py", line 266, in cat_file raise FileNotFoundError(path, rev) FileNotFoundError: The file 'kvstore/src/oracle/kv/util/PingCollector.java' (r5c2b44f746e4) could not be found in the repository -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Getting "The file ...... could not be found in the repository" with mercurial repository confugured with ssh
Thanks David. Sure will upgrade to the latest release and check if it works. On Friday, January 15, 2016 at 9:28:36 PM UTC+5:30, David Trowbridge wrote: > > 2.0.7 is pretty old at this point. Is it possible to see if this still > fails with the latest 2.0.x release? > > -David > > On Fri, Jan 15, 2016 at 8:04 AM Ashutosh Naik <ashutos...@gmail.com > > wrote: > >> I am using Review Board 2.0.7 with mercurial repository configured with >> ssh. I created a new review request and uploaded the diff and parent diff >> for a committed changeset. But I get the following error: >> >> There was an error displaying this diff. >> >> The file 'kvstore/src/oracle/kv/util/PingCollector.java' (r5c2b44f746e4) >> could not be found in the repository >> >> This may be a bug in the software, a temporary outage, or an issue with >> the format of your diff. >> >> Please try again, and if you still have trouble,contact support. >> >> Clicking on "Details" gives the following: >> >> Traceback (most recent call last): >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/views.py", >> >> line 265, in get >> response = renderer.render_to_response(request) >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/renderers.py", >> >> line 56, in render_to_response >> return HttpResponse(self.render_to_string(request)) >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/renderers.py", >> >> line 74, in render_to_string >> large_data=True) >> File >> "/usr/lib/python2.6/site-packages/Djblets-0.8.20-py2.6.egg/djblets/cache/backend.py", >> >> line 111, in cache_memoize >> data = lookup_callable() >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/renderers.py", >> >> line 73, in >> lambda: self.render_to_string_uncached(request), >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/renderers.py", >> >> line 87, in render_to_string_uncached >> request=request) >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/diffutils.py", >> >> line 420, in populate_diff_chunks >> chunks = generator.get_chunks() >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/chunk_generator.py", >> >> line 156, in get_chunks >> large_data=True) >> File >> "/usr/lib/python2.6/site-packages/Djblets-0.8.20-py2.6.egg/djblets/cache/backend.py", >> >> line 111, in cache_memoize >> data = lookup_callable() >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/chunk_generator.py", >> >> line 155, in >> lambda: list(self._get_chunks_uncached()), >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/chunk_generator.py", >> >> line 162, in _get_chunks_uncached >> old = get_original_file(self.filediff, self.request, encoding_list) >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/diffviewer/diffutils.py", >> >> line 198, in get_original_file >> request=request) >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/scmtools/models.py", >> >> line 344, in get_file >> large_data=True)[0] >> File >> "/usr/lib/python2.6/site-packages/Djblets-0.8.20-py2.6.egg/djblets/cache/backend.py", >> >> line 111, in cache_memoize >> data = lookup_callable() >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/scmtools/models.py", >> >> line 343, in >> request)], >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/scmtools/models.py", >> >> line 531, in _get_file_uncached >> base_commit_id=base_commit_id) >> File >> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.17-py2.6.egg/reviewboard/scmtools/hg.py", >> >> line 48, in get_file >> base_commit_id=base_commit_id) >> File >>
rbt setup-repo fails with pkg_resources.DistributionNotFound: rbtools
I have installed RBTools version 0.7.5. > rbt --version RBTools 0.7.5 The command "rbt setup-repo" fails with the following: > rbt setup-repo Traceback (most recent call last): File "/usr/bin/rbt", line 11, in sys.exit(main()) File "/usr/lib/python2.6/site-packages/rbtools/commands/main.py", line 108, in main command_name) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 307, in get_entry_info return get_distribution(dist).get_entry_info(group, name) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 292, in get_distribution if isinstance(dist,Requirement): dist = get_provider(dist) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 176, in get_provider return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0] File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: rbtools I confirmed that rbtools exists in /usr/lib/python2.6/site-packages/rbtools: > ls /usr/lib/python2.6/site-packages/rbtools/ api commands hooks__init__.pyc tests.py utils clients helpers __init__.pytesting tests.pyc Also tried setting PYTHONPATH to /usr/lib/python2.6/site-packages/rbtools or /usr/lib/python2.6/site-packages or /usr/lib/python2.6 but still getting the same. -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.