Intermittent ForbiddenAttribute errors

Bug #640132 reported by Anthony Lenton
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical SSO provider
Invalid
High
Unassigned
lazr.restful
Triaged
Low
Unassigned

Bug Description

On different occasions we've seen this error when accessing a lazr.restful api (working with Apache+modwsgi+Django):

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/zope/publisher/publish.py", line 134, in publish
    result = publication.callObject(request, obj)
  File "/usr/lib/python2.6/dist-packages/lazr/restful/publisher.py", line 170, in callObject
    WebServicePublicationMixin, self).callObject(request, object)
  File "/usr/lib/python2.6/dist-packages/lazr/restful/simple.py", line 106, in callObject
    return mapply(ob, request.getPositionalArguments(), request)
  File "/usr/lib/python2.6/dist-packages/zope/publisher/publish.py", line 109, in mapply
    return debug_call(obj, args)
  File "/usr/lib/python2.6/dist-packages/zope/publisher/publish.py", line 115, in debug_call
    return obj(*args)
ForbiddenAttribute: ('__call__', <lazr.restful._resource.CollectionResource object at 0x7f330e6ea550>)

We haven't been able to diagnose exactly what causes it. The errors are intermittent, and sometimes go away with just restarting Apache.

lazr.restful version lucid's packaged 0.9.11.

Revision history for this message
Gary Poster (gary) wrote :

I gave some code to ISD to try and diagnose this. Until that gives us some data back, I'm going to triage this as low.

Changed in lazr.restful:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Łukasz Czyżykowski (lukasz-czyzykowski) wrote :

Recently I've spotted this problem when trying to investigate problems with logging using ssh tunnel (bug #566677). It was when trying to access admin pages, not the API.

Changed in canonical-identity-provider:
status: New → Confirmed
Tom Haddon (mthaddon)
tags: added: canonical-losa-isd
Changed in canonical-identity-provider:
importance: Undecided → High
Revision history for this message
Stuart Metcalfe (stuartmetcalfe) wrote :

This got quite serious today and caused availability issues for what seems like a large number of users. An apache restart fixed it for now and we haven't yet been able to diagnose it but code to get full traceback from API errors should make it in to the current release so we can get more details next time it happens.

Revision history for this message
Stuart Metcalfe (stuartmetcalfe) wrote :

This issue went away when we dropped lazr.restful from our dependencies

Changed in canonical-identity-provider:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.