Indexing problem. IndexError: list index out of range

131 views
Skip to first unread message

Marcelo Bissaro

unread,
Jul 30, 2013, 10:14:39 AM7/30/13
to rhod...@googlegroups.com

 Hello all,
 
 I'm using Rhodecode 1.6.0 (with celery and mysql) and I can't run make-index
 
 I've tried a full index (adding -f parameter to command line bellow) and a incremental index, but both are failling with the same error (the incremental is failling faster).

 All my log levels inside production.ini are set to DEBUG. There is a log file for indexing proccess? If yes, where can I found it? I would like to discover what repository is giving the error, to narrow down the issue.
 
 The folder data/index has some files (one of them with 53mb size).

 Can it be related to encoding? Web interface has no problem to show special characters like ç, ã, á, à, etc... Anyway:


git@hostname:~/rhodecode$ grep default_encoding production.ini
default_encoding = utf8

git@hostname:~/rhodecode$ uname -a
Linux hostname 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

git@hostname:~/rhodecode$ /l/disk0/git/venv/bin/paster make-index /l/disk0/git/rhodecode/production.ini
2013-07-30 10:54:16.283 INFO  [rhodecode.model] initializing db for mysql://user:XXXXX@hostname/databasename
2013-07-30 10:54:16.428 INFO  [rhodecode.model.scm] scanning for repositories in /l/disk0/git/repos
Traceback (most recent call last):
  File "/l/disk0/git/venv/bin/paster", line 9, in <module>
    load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
  File "/l/disk0/git/venv/local/lib/python2.7/site-packages/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
  File "/l/disk0/git/venv/local/lib/python2.7/site-packages/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/l/disk0/git/venv/lib/python2.7/site-packages/rhodecode/lib/utils.py", line 697, in run
    return super(BasePasterCommand, self).run(args[1:])
  File "/l/disk0/git/venv/local/lib/python2.7/site-packages/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 238, in run
    result = self.command()
  File "/l/disk0/git/venv/lib/python2.7/site-packages/rhodecode/lib/indexers/__init__.py", line 138, in command
    .run(full_index=self.options.full_index)
  File "/l/disk0/git/venv/lib/python2.7/site-packages/rhodecode/lib/indexers/daemon.py", line 416, in run
    self.update_indexes()
  File "/l/disk0/git/venv/lib/python2.7/site-packages/rhodecode/lib/indexers/daemon.py", line 408, in update_indexes
    self.update_file_index()
  File "/l/disk0/git/venv/lib/python2.7/site-packages/rhodecode/lib/indexers/daemon.py", line 355, in update_file_index
    i, iwc = self.add_doc(writer, path, repo, repo_name)
  File "/l/disk0/git/venv/lib/python2.7/site-packages/rhodecode/lib/indexers/daemon.py", line 169, in add_doc
    modtime=self.get_node_mtime(node),
  File "/l/disk0/git/venv/lib/python2.7/site-packages/rhodecode/lib/indexers/daemon.py", line 135, in get_node_mtime
    return mktime(node.last_changeset.date.timetuple())
  File "/l/disk0/git/venv/lib/python2.7/site-packages/rhodecode/lib/vcs/utils/lazy.py", line 40, in __get__
    value = self._func(obj)
  File "/l/disk0/git/venv/lib/python2.7/site-packages/rhodecode/lib/vcs/nodes.py", line 315, in last_changeset
    return self.changeset.get_file_changeset(self.path)
  File "/l/disk0/git/venv/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/git/changeset.py", line 281, in get_file_changeset
    return self.get_file_history(path, limit=1)[0]
IndexError: list index out of range
git@hostname:~/rhodecode$

Tks,
Marcelo

Marcin Kuzminski

unread,
Aug 22, 2013, 6:59:38 AM8/22/13
to rhod...@googlegroups.com
HI,

sorry for so late response, could you somehow give us a repo that is causing this problem ?

Thanks !

Marcin Kuzminski


--
You received this message because you are subscribed to the Google Groups "rhodecode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhodecode+...@googlegroups.com.
To post to this group, send email to rhod...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Marcelo Bissaro

unread,
Aug 22, 2013, 9:31:34 AM8/22/13
to rhod...@googlegroups.com

 Hi Marcin,
 
 I figured out the root cause of this problem, after adding some 'echos' inside some rhodecode's python files... The problem happens when it founds a filename that contains some strange characters like "{{" and "!"

 Yes, I known it is weird. But you can see it by yourself on Yocto project, on github:

https://github.com/gandaman/poky/tree/master/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux

 If you clone this repo locally, you will be able to reproduce the error. 
 
 I fixed the problem for now, by removing this repo from my index-list. It is not important for me to have it indexed, so it is not an urgent fix for me anymore. You can fix it at your time.

Regards,
Marcelo







Marcelo Bissaro

unread,
Aug 22, 2013, 10:08:14 AM8/22/13
to rhod...@googlegroups.com

 Adding some more info: If I try to open this path on rhodecode web interface, it fails as well. I got ERROR: 500


Marcelo


Reply all
Reply to author
Forward
0 new messages