Posting because might be useful for other users.

On IRC it has been stated that the issue is related to
http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Multiple_Python_Sub_Interpreters
and that it can be fixed that way.

On Tue, Nov 15, 2011 at 4:44 AM, Sam Collinson <[email protected]> wrote:
> I have been getting the following error sporadically since deploying
> my application with apache and mod_wsgi. I did not once get the error
> in my development environment.
>
> Module weberror.errormiddleware:162 in __call__
>>>  app_iter = self.application(environ, sr_checker)
> Module ming.orm.middleware:16 in __call__
>>>  result = self.app(environ, start_response)
> Module repoze.who.middleware:69 in __call__
>>>  auth_ids = self.authenticate(environ, classification, ids)
> Module repoze.who.middleware:201 in authenticate
>>>  userid = plugin.authenticate(environ, identity)
> Module tgming.auth:18 in authenticate
>>>  user = self.user_class.query.get(user_name=identity.get('login', None))
> Module ming.orm.mapper:227 in get
>>>  return self.find(kwargs).first()
> Module ming.orm.ormsession:302 in first
>>>  return self.next()
> Module ming.orm.ormsession:255 in next
>>>  doc = self.ming_cursor.next()
> Module ming.base:61 in next
>>>  strip_extra=self._strip_extra)
> Module ming.metadata:324 in make
>>>  return cls.m.make(data, allow_extra=allow_extra, strip_extra=strip_extra)
> Module ming.metadata:238 in make
>>>  data, allow_extra=allow_extra, strip_extra=strip_extra)
> Module ming.schema:329 in validate
>>>  return super(Document, self).validate(value, **kw)
> Module ming.schema:229 in validate
>>>  return self._validate(value, **kw)
> Module ming.schema:349 in _validate
>>>  result.update(super(Document, self)._validate(d, allow_extra, strip_extra))
> Module ming.schema:297 in _validate
>>>  raise Invalid(msg, d, None, error_dict=error_dict)
> Invalid: <class 'ming.metadata.Document<tg_user>'>: _id:xxx is not a
> bson.ObjectId
>
> (I have obfuscated the _id however it is the valid ObjectId of the
> User I am trying to login as)
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TurboGears" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/turbogears?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to