We got the following error running paster reindex:
Traceback (most recent call last):
File "/var/local/env-allura/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
File "/var/local/env-allura/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 84, in run
invoke(command, command_name, options, args[1:])
File "/var/local/env-allura/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 123, in invoke
exit_code = runner.run(args)
File "/var/local/env-allura/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 218, in run
result = self.command()
File "/var/local/allura/Allura/allura/command/show_models.py", line 65, in command
allura.tasks.index_tasks.add_artifacts(ref_ids)
File "/var/local/allura/Allura/allura/tasks/index_tasks.py", line 32, in add_artifacts
raise CompoundError(*exceptions)
allura.lib.exceptions.CompoundError: ((<type 'exceptions.AttributeError'>, AttributeError("'NoneType' object has no attribute 'url'",), <traceback object at 0x12a1a3b0>), (<type 'exceptions.AttributeError'>, AttributeError("'NoneType' object has no attribute 'url'",), <traceback object at 0x12a28290>), (<type 'exceptions.AttributeError'>, AttributeError("'NoneType' object has no attribute 'url'",), <traceback object at 0x12a349e0>), (<type 'exceptions.AttributeError'>, AttributeError("'NoneType' object has no attribute 'url'",), <traceback object at 0x12a34e18>))
Apparently this is caused by the artifacts which errored having their tools deleted. We should log and continue when this happens during a reindex.