Update from 1.2.3 to 1.3.2 shows error on summary page

Issue #381 resolved
Former user created an issue

Hi,

if I try to show the summary of a repository I get an 500 Internal Server Error. Heres the log to this request:

{{{ #!log 2012-03-02 10:00:36.175 INFO [rhodecode.lib.base] Request to /MyProject/summary time: 0.161s Error - <type 'exceptions.KeyError'>: 'key_length' URL: http://myrhodecode/HeatingGuru/summary File '/home/webadminservice/python-venv/rhodecode/lib/python2.6/site-packages/WebError-0.10.2-py2.6.egg/weberror/errormiddleware.py', line 162 in call app_iter = self.application(environ, sr_checker) File '/home/webadminservice/python-venv/rhodecode/lib/python2.6/site-packages/Beaker-1.6.2-py2.6.egg/beaker/middleware.py', line 155 in call return self.wrap_app(environ, session_start_response) File '/home/webadminservice/python-venv/rhodecode/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/webadminservice/python-venv/rhodecode/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/webadminservice/python-venv/rhodecode/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/webadminservice/python-venv/rhodecode/lib/python2.6/site-packages/RhodeCode-1.3.2-py2.6.egg/rhodecode/lib/base.py', line 150 in call return WSGIController.call(self, environ, start_response) File '/home/webadminservice/python-venv/rhodecode/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/webadminservice/python-venv/rhodecode/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/webadminservice/python-venv/rhodecode/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/webadminservice/python-venv/rhodecode/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/webadminservice/python-venv/rhodecode/lib/python2.6/site-packages/RhodeCode-1.3.2-py2.6.egg/rhodecode/controllers/summary.py', line 178 in index c.readme_data, c.readme_file = self.get_readme_data(c.rhodecode_repo) File '/home/webadminservice/python-venv/rhodecode/lib/python2.6/site-packages/RhodeCode-1.3.2-py2.6.egg/rhodecode/controllers/summary.py', line 212 in get_readme_data region_invalidate(_get_readme_from_cache, None, key) File '/home/webadminservice/python-venv/rhodecode/lib/python2.6/site-packages/Beaker-1.6.2-py2.6.egg/beaker/cache.py', line 257 in region_invalidate _cache_decorator_invalidate(cache, region['key_length'], args) KeyError: 'key_length'

CGI Variables

CONTENT_LENGTH: '0' CONTENT_TYPE: '; charset="utf-8"' HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8' HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.3' HTTP_ACCEPT_ENCODING: 'gzip,deflate,sdch' HTTP_ACCEPT_LANGUAGE: 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4' HTTP_CACHE_CONTROL: 'max-age=0' HTTP_CONNECTION: 'Keep-Alive' HTTP_COOKIE: 'rhodecode=431b787473ed91e96c205c6efba4db56768913435475637bdc2c4162be13ca28315e3fb4' HTTP_HOST: 'myrhodecode' HTTP_REFERER: 'http://myrhodecode/' HTTP_USER_AGENT: 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Ubuntu/11.10 Chromium/17.0.963.56 Chrome/17.0.963.56 Safari/535.11' HTTP_VIA: '1.1 myrhodecode' HTTP_X_FORWARDED_FOR: '10.42.193.12' HTTP_X_FORWARDED_HOST: 'myrhodecode' HTTP_X_FORWARDED_SERVER: 'myrhodecode' PATH_INFO: '/HeatingGuru/summary' REMOTE_ADDR: '127.0.0.1' REQUEST_METHOD: 'GET' SERVER_NAME: '127.0.0.1' SERVER_PORT: '5000' SERVER_PROTOCOL: 'HTTP/1.1'

WSGI Variables

application: <beaker.middleware.SessionMiddleware object at 0x4943790> beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x4943790>> beaker.session: {'rhodecode_user': {'username': u'uklawitter', 'is_authenticated': True, 'user_id': 3}, '_accessed_time': 1330679226.6833091, '_creation_time': 1330678830.061347} paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at 0x2b13c10> paste.registry: <paste.registry.Registry object at 0x493da90> paste.throw_errors: True pylons.action_method: <bound method SummaryController.index of <rhodecode.controllers.summary.SummaryController object at 0x54aab10>> pylons.controller: <rhodecode.controllers.summary.SummaryController object at 0x54aab10> pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'} pylons.pylons: <pylons.util.PylonsContext object at 0x54aa1d0> pylons.routes_dict: {'action': u'index', 'controller': u'summary', 'repo_name': u'HeatingGuru'} routes.cached_hostinfo: {'host': 'myrhodecode', 'protocol': 'http'} routes.route: <routes.route.Route object at 0x456a850> routes.url: <routes.util.URLGenerator object at 0x54aa950> webob._parsed_query_vars: (GET([]), '') webob.adhoc_attrs: {'user': <AuthUser('id:3:uklawitter|True')>, 'language': 'en-us'} wsgi process: 'Multithreaded' wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x54aa950>, {'action': u'index', 'controller': u'summary', 'repo_name': u'HeatingGuru'}) }}}

Comments (3)

  1. Marcin Kuzminski repo owner

    Please read the upgrade docs, you're missing some variables (key_length) in .ini file after upgrade, check/diff your ini with the current stable ones.

  2. Former user Account Deleted

    Thank you! That helps ;)

    Didn't add the beaker.cache.super_short_term.key_length = 256 configuration...

  3. Log in to comment