Kallithea issues archive

Issue #171: WebApp Error: : 'PylonsConfig' object has no attribute '_push_object'

Reported by: Xel Unleashed
State: resolved
Created on: 2015-10-29 20:29
Updated on: 2015-11-11 21:29


At random times the following error occurs when accessing the web interface, we use uwsgi in an Ubuntu server 14.04 and kallithea 0.3.

Module weberror.errormiddleware:171 in __call__
>>  app_iter = self.application(environ, sr_checker)
Module kallithea.lib.middleware.sessionmiddleware:62 in __call__
>>  return self.wrap_app(environ, session_start_response)
Module routes.middleware:131 in __call__
>>  response = self.app(environ, start_response)
Module pylons.wsgiapp:94 in __call__
>>  self.setup_app_env(environ, start_response)
Module pylons.wsgiapp:211 in setup_app_env
>>  self.register_globals(environ)
Module pylons.wsgiapp:140 in register_globals
>>  registry.register(pylons.config, self.config)
Module paste.registry:319 in register
>>  stacked._push_object(obj)
AttributeError: 'PylonsConfig' object has no attribute '_push_object'
CGI Variables
CONTENT_TYPE    '; charset="utf-8"'
DOCUMENT_ROOT   '/home/scm/kallithea/kallithea/public'
HTTPS   'on'
HTTP_ACCEPT     'text/html,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.8'
HTTP_ACCEPT_ENCODING    'gzip, deflate'
HTTP_ACCEPT_LANGUAGE    'en-US,en;q=0.5'
HTTP_CONNECTION     'keep-alive'
HTTP_USER_AGENT     'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0'
REMOTE_PORT     '42022'
SERVER_PORT     '443'
UWSGI_SCHEME    'https'
WSGI Variables
application     <kallithea.lib.middleware.sessionmiddleware.SecureSessionMiddleware object at 0x7faa0dbffed0>
beaker.get_session  <bound method SecureSessionMiddleware._get_session of <kallithea.lib.middleware.sessionmiddleware.SecureSessionMiddleware object at 0x7faa0dbffed0>>
beaker.session  {'authuser': {'is_authenticated': True, 'is_external_auth': False, 'user_id': 2}, '_accessed_time': 1446148933.098275, '_creation_time': 1444248643.457105}
paste.registry  <paste.registry.Registry object at 0x7faa078dc3d0>
paste.throw_errors  True
pylons.environ_config   {'session': 'beaker.session', 'cache': 'beaker.cache'}
pylons.log_debug    True
pylons.pylons   <pylons.util.PylonsContext object at 0x7faa078dc190>
routes.route    <routes.route.Route object at 0x7faa0e3aadd0>
routes.url  <routes.util.URLGenerator object at 0x7faa078dccd0>
uwsgi.node  'DGSA-SCM'
uwsgi.version   ''
wsgi process    'Multiprocess'
wsgi.file_wrapper   <built-in function uwsgi_sendfile>
wsgiorg.routing_args    (<routes.util.URLGenerator object at 0x7faa078dccd0>, {'action': u'index', 'controller': u'home'})






Comment by Mads Kiilerich, on 2015-11-06 02:06

I don't know ... it could perhaps be some threading issue where uwsgi starts calling into the application before it is ready. It seems to be related to some hairy Pylons code.

FWIW, I haven't seen it with mod_wsgi.

Comment by Xel Unleashed, on 2015-11-06 22:06

I think it has something to do with an extension I made for sending e-mail notifications after a push.

Comment by Xel Unleashed, on 2015-11-11 21:28

Yes it seems pylons.config doesn't like the whole kallithea config.

Comment by Xel Unleashed, on 2015-11-11 21:29

Comment by Xel Unleashed, on 2015-11-11 21:29