The sidebar on https://sourceforge.net/p/allura/git/ isn't loading currently. This is the exception. I think it's when a repo is forked and then the fork is deleted.
17:15:54,745 ERROR [allura.lib.repository] Error calling exceptionless(sidebar_menu) 'NoneType' object has no attribute 'url' Traceback (most recent call last): File "/var/local/allura/Allura/allura/lib/decorators.py", line 148, in inner return fun(*args, **kwargs) File "/var/local/allura/Allura/allura/lib/repository.py", line 147, in sidebar_menu repo_path_parts = f.url().strip('/').split('/') File "/var/local/allura/Allura/allura/model/repository.py", line 247, in url return self.app_config.url() AttributeError: 'NoneType' object has no attribute 'url'
The problem was indeed caused by a fork of Allura that had been deleted. Normally deleting a fork should not be a problem, but in this case, the app_config for the tool was deleted, but the
git-repository
document was not. No idea how that happened, but that's what we need to figure out. I'm hesitant to mask the error by checking ifapp_config is None
inrepo.url()
.In the meantime, I've corrected the problem in prod by asking siteops to remove the offending
git-repository
document from mongo.