killing repo on the filesystem crashes rhodecode's main view

Issue #163 resolved
Thomas Waldmann created an issue

If you rm -rf a repo on the filesystem, after next rhodecode start this will happen:

{{{ URL: http://localhost:5000/ File '/home/tw/w/rhodecode/env/lib/python2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/evalexception.py', line 431 in respond app_iter = self.application(environ, detect_start_response) File '/home/tw/w/rhodecode/rhodecode/lib/middleware/simplegit.py', line 103 in call return self.application(environ, start_response) File '/home/tw/w/rhodecode/rhodecode/lib/middleware/simplehg.py', line 70 in call return self.application(environ, start_response) File '/home/tw/w/rhodecode/env/lib/python2.6/site-packages/Beaker-1.5.4-py2.6.egg/beaker/middleware.py', line 152 in call return self.wrap_app(environ, session_start_response) File '/home/tw/w/rhodecode/env/lib/python2.6/site-packages/Routes-1.12.3-py2.6.egg/routes/middleware.py', line 131 in call response = self.app(environ, start_response) File '/home/tw/w/rhodecode/env/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/wsgiapp.py', line 107 in call response = self.dispatch(controller, environ, start_response) File '/home/tw/w/rhodecode/env/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/wsgiapp.py', line 312 in dispatch return controller(environ, start_response) File '/home/tw/w/rhodecode/rhodecode/lib/base.py', line 45 in call return WSGIController.call(self, environ, start_response) File '/home/tw/w/rhodecode/env/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/controllers/core.py', line 211 in call response = self._dispatch_call() File '/home/tw/w/rhodecode/env/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/controllers/core.py', line 162 in _dispatch_call response = self._inspect_call(func) File '/home/tw/w/rhodecode/env/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/controllers/core.py', line 105 in _inspect_call result = self._perform_call(func, args) File '/home/tw/w/rhodecode/env/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/controllers/core.py', line 57 in _perform_call return func(**args) File '/home/tw/w/rhodecode/rhodecode/controllers/home.py', line 64 in index reverse=False) File '/home/tw/w/rhodecode/rhodecode/model/scm.py', line 145 in get_repos last_change = repo.last_change AttributeError: 'NoneType' object has no attribute 'last_change' }}}

Workaround: recreate repo at same place

Comments (2)

  1. Log in to comment