Can't view recent change sets

Issue #858 resolved
DaveW created an issue

We're running rhodecode 1.7.1 on ubuntu 10.04, so python 2.6, mercurial 2.6.2 with gunicorn 0.17.4. After running rhodecode for a while, it starts not being able to see recent changesets:

2013-06-15 01:07:22.815 ERROR [rhodecode.controllers.changeset] Traceback (most recent call last):
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/rhodecode/controllers/changeset.py", line 196, in _index
    rev_ranges = [c.rhodecode_repo.get_changeset(revision)]
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/rhodecode/lib/vcs/backends/hg/repository.py", line 458, in get_changeset
    revision = self._get_revision(revision)
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/rhodecode/lib/vcs/backends/hg/repository.py", line 424, in _get_revision
    % (revision))
ChangesetDoesNotExistError: Revision 9c5d0317725b50df3becd16e572ce84722336b25 does not exist for this repository

This happened to us previously on rhodecode 1.6.0 but wasn't happening on prior versions to 1.6.0 at all.

I've invalidated the cache for all repos from admin settings. This helped a bit, but if I reload a page that was previously wasn't able to show me the changeset, it works for a couple of refreshes, but not all. So its like not all the gunicorn workers have had their cache invalidated or something? The only way to completely invalidate the cache seems to be restarting rhodecode.

Comments (5)

  1. DaveW reporter

    So I've updated my production.ini with instance_id = * after seeing this in a clean copy of production.ini in the gunicorn section

    ## number of process workers. You must set `instance_id = *` when this option
    ## is set to more than one worker
    
  2. Log in to comment