Kallithea issues archive

Issue #47: make-index fails but works after several executions

Reported by: Sven R. Kunze
State: new
Created on: 2014-10-06 12:40
Updated on: 2014-10-06 12:40

Description

We run this several times iterating through several repositories. It worked as we approached the last repositories. So, our execution went like this:

It is basically not a problem, however it seems as the command simply cannot handle too many repositories and simply quits with that tracktrace:

(kallithea)kallithea@host:~> /home/kallithea/bin/paster make-index /home/kallithea/production.ini
2014-10-06 10:30:47.611 INFO  [kallithea.model] initializing db for postgresql://@/kallithea
2014-10-06 10:30:47.753 INFO  [kallithea.model.scm] scanning for repositories in /home/kallithea/repos
Traceback (most recent call last):
  File "/home/kallithea/bin/paster", line 8, in <module>
    load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
  File "/home/kallithea/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
  File "/home/kallithea/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/home/kallithea/lib/python2.7/site-packages/kallithea/lib/utils.py", line 760, in run
    return super(BasePasterCommand, self).run(args[1:])
  File "/home/kallithea/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
    result = self.command()
  File "/home/kallithea/lib/python2.7/site-packages/kallithea/lib/paster_commands/make_index.py", line 84, in command
    .run(full_index=self.options.full_index)
  File "/home/kallithea/lib/python2.7/site-packages/kallithea/lib/indexers/daemon.py", line 451, in run
    self.update_indexes()
  File "/home/kallithea/lib/python2.7/site-packages/kallithea/lib/indexers/daemon.py", line 444, in update_indexes
    self.update_changeset_index()
  File "/home/kallithea/lib/python2.7/site-packages/kallithea/lib/indexers/daemon.py", line 312, in update_changeset_index
    repo_name, repo, start_id)
  File "/home/kallithea/lib/python2.7/site-packages/kallithea/lib/indexers/daemon.py", line 230, in index_changesets
    for cs in cs_iter:
  File "/home/kallithea/lib/python2.7/site-packages/kallithea/lib/vcs/backends/base.py", line 1031, in __iter__
    yield self.repo.get_changeset(rev)
  File "/home/kallithea/lib/python2.7/site-packages/kallithea/lib/vcs/backends/git/repository.py", line 510, in get_changeset
    revision = self._get_revision(revision)
  File "/home/kallithea/lib/python2.7/site-packages/kallithea/lib/vcs/backends/git/repository.py", line 314, in _get_revision
    raise ChangesetDoesNotExistError(msg)
kallithea.lib.vcs.exceptions.ChangesetDoesNotExistError: Revision b9a6ef338e8b0d16b1013641585e8cdd2de40f09 does not exist for <GitRepository at /home/kallithea/repos/repo49>

Attachments

Comments