I have a app in production that will throw the below error about 15 times a day. No one reports a problem, no issues seem to arise because of it, and I am unable to reproduce the error on my own or on my development machine.
Obviously you don't have enough information to help me, i get that but where should i start poking around to track this down? What might cause this kind of error in an intermittent way?
TIA,
Paul
WebApp Error: <class 'sqlalchemy.exc.InvalidRequestError'>: Instance '<MultiPack at 0x2476cc6c>' is not persisted
Module
weberror.errormiddleware:
162 in
__call__
<< __traceback_supplement__ = Supplement, self, environ
sr_checker = ResponseStartChecker(start_response)
app_iter = self.application(environ, sr_checker)
return self.make_catching_iter(app_iter, environ, sr_checker)
except: >> app_iter = self.application(environ, sr_checker)
Module
tg.configuration:
797 in
remover
<< def remover(environ, start_response):
try:
return app(environ, start_response)
finally:
log.debug("Removing DBSession from current thread") >> return app(environ, start_response)
Module
repoze.tm:
23 in
__call__
<< try:
result = self.application(environ, save_status_and_headers)
except:
self.abort() >> result = self.application(environ, save_status_and_headers)
Module
repoze.who.middleware:
107 in
__call__
<< wrapper = StartResponseWrapper(start_response)
app_iter = app(environ, wrapper.wrap_start_response)
# The challenge decider almost(?) always needs information from the >> app_iter = app(environ, wrapper.wrap_start_response)
Module
tw.core.middleware:
43 in
__call__
<< def __call__(self, environ, start_response):
return self.wsgi_app(environ, start_response)
def wsgi_app(self, environ, start_response): >> return self.wsgi_app(environ, start_response)
Module
tw.core.middleware:
68 in
wsgi_app
<< else:
# Pass request downstream
resp = req.get_response(self.application)
return resp(environ, start_response)
finally: >> resp = req.get_response(self.application)
Module webob.request:1053 in get_response
Module webob.request:1022 in call_application
Module
tw.core.resource_injector:
68 in
_injector
<< def _injector(environ, start_response):
req = Request(environ)
resp = req.get_response(app)
content_type = resp.headers.get('Content-Type','text/plain').lower()
if 'html' in content_type: >> resp = req.get_response(app)
Module webob.request:1053 in get_response
Module webob.request:1022 in call_application
Module
beaker.middleware:
73 in
__call__
<< self.cache_manager)
environ[self.environ_key] = self.cache_manager
return self.app(environ, start_response) >> return self.app(environ, start_response)
Module
beaker.middleware:
152 in
__call__
<< headers.append(('Set-cookie', cookie))
return start_response(status, headers, exc_info)
return self.wrap_app(environ, session_start_response)
def _get_session(self): >> return self.wrap_app(environ, session_start_response)
Module
routes.middleware:
131 in
__call__
<< r'\1', oldpath)
response = self.app(environ, start_response)
# Wrapped in try as in rare cases the attribute will be gone already >> response = self.app(environ, start_response)
Module
pylons.wsgiapp:
107 in
__call__
<<
controller = self.resolve(environ, start_response)
response = self.dispatch(controller, environ, start_response)
if 'paste.testing_variables' in environ and hasattr(response, >> response = self.dispatch(controller, environ, start_response)
Module
pylons.wsgiapp:
312 in
dispatch
<< if log_debug:
log.debug("Calling controller class with WSGI interface")
return controller(environ, start_response)
def load_test_env(self, environ): >> return controller(environ, start_response)
Module
pps.lib.base:
31 in
__call__
<< request.identity = request.environ.get('repoze.who.identity')
tmpl_context.identity = request.identity
return TGController.__call__(self, environ, start_response) >> return TGController.__call__(self, environ, start_response)
Module
pylons.controllers.core:
211 in
__call__
<< return response(environ, self.start_response)
response = self._dispatch_call()
if not start_response_called:
self.start_response = start_response >> response = self._dispatch_call()
Module
pylons.controllers.core:
162 in
_dispatch_call
<< req.environ['pylons.action_method'] = func
response = self._inspect_call(func)
else:
if log_debug: >> response = self._inspect_call(func)
Module
pylons.controllers.core:
105 in
_inspect_call
<< func.__name__, args)
try:
result = self._perform_call(func, args)
except HTTPException, httpe:
if log_debug: >> result = self._perform_call(func, args)
Module
tg.controllers.dispatcher:
254 in
_perform_call
<< self._setup_wsgi_script_name(url_path, remainder, params)
r = self._call(func, params, remainder=remainder)
if hasattr(controller, '__after__'): >> r = self._call(func, params, remainder=remainder)
Module
tg.controllers.decoratedcontroller:
116 in
_call
<< params, remainder = self._remove_argspec_params_from_params(controller, params, remainder)
output = controller(*remainder, **dict(params))
except formencode.api.Invalid, inv: >> output = controller(*remainder, **dict(params))
Module
pps.controllers.secure:
1217 in
mp_add_order
<< if status != 'OK':
if len(multipack.orders) < 1 :
DBSession.delete(multipack)
multipack = None
return dict(status=status,mp_id=mp_id) >> DBSession.delete(multipack)
Module
sqlalchemy.orm.scoping:
113 in
do
<< def instrument(name):
def do(self, *args, **kwargs):
return getattr(self.registry(), name)(*args, **kwargs)
return do
for meth in Session.public_methods: >> return getattr(self.registry(), name)(*args, **kwargs)
Module
sqlalchemy.orm.session:
1173 in
delete
<< raise sa_exc.InvalidRequestError(
"Instance '%s' is not persisted" %
mapperutil.state_str(state))
if state in self._deleted: >> mapperutil.state_str(state))