Re: [ZODB-Dev] Is this a bug ? [ZODB3-3.10.0b8]

2010-10-08 Thread steve
Hi,

On 10/07/2010 10:53 PM, Jim Fulton wrote:
> [...snip...]
> OK, I have no idea what the problem is.  It may be a ZODB bug, since,
> apparently, this
> showed up when you upgraded to ZODB 3.10.0b8, although I can't image
> what the bug
> could be.
>
> You're going to have to debug this, at least by whittling this down to a 
> example
> that someone who doesn't have your software can run.
>

Thanks for the nudge to debug this further. Turned out to be problem with the 
application. Somehow (I do not know yet know how or when) an object derived 
from 
OOBTree got corrupt. Corrupt in the sense that although looking up individual 
items from the OOBTree worked, when dereferencing the entire contents caused 
the 
traceback I posted (for example, even with a repr or in case of the traceback, 
when setstate() was being called while loading the object).

> Some suggestions:
>
> - Figure out what the class of the object is and what the value of state is.
>
> - Try creating an instance outside your app and passing that state to
> it to see if you get the same error.
>

Although the mapping has now been restored back to a sane state (by recreating 
another instance manually and replacing the original), I haven't yet figured 
out 
how it got to be in that state. I'll investigate further to see if there is a 
possibility of creating a reproducer. This might be a problem with karl's[1] 
CaseInsensitiveOOBTree (which is less likely since it is just a thin wrapper) 
or 
OOBTree.

Anyways, thanks and cheers,
steve

[1] http://karlproject.org/architecture.html

-- 
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Is this a bug ? [ZODB3-3.10.0b8]

2010-10-07 Thread Jim Fulton
On Thu, Oct 7, 2010 at 1:03 PM, steve  wrote:
> On 10/07/2010 10:29 PM, steve wrote:
>>
>> On 10/07/2010 10:26 PM, steve wrote:
>>>
>>>  Hi Jim,
>>>  On 10/07/2010 10:20 PM, Jim Fulton wrote:

  What versions of Python are you using on the clients and on the server?

>>>
>>>  Sorry should have mentioned:
>>>  Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40)
>>>  [GCC 4.3.2] on linux2
>>>
>> ...on both
>>
>
> ugh, I know this must be annoying but, I forgot to add, clients and servers
> are both x86_64 systems (amazon ec2 instances actually).

OK, I have no idea what the problem is.  It may be a ZODB bug, since,
apparently, this
showed up when you upgraded to ZODB 3.10.0b8, although I can't image
what the bug
could be.

You're going to have to debug this, at least by whittling this down to a example
that someone who doesn't have your software can run.

Some suggestions:

- Figure out what the class of the object is and what the value of state is.

- Try creating an instance outside your app and passing that state to
it to see if you get the same error.

Jim

-- 
Jim Fulton
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Is this a bug ? [ZODB3-3.10.0b8]

2010-10-07 Thread steve
On 10/07/2010 10:29 PM, steve wrote:
> On 10/07/2010 10:26 PM, steve wrote:
>>  Hi Jim,
>>  On 10/07/2010 10:20 PM, Jim Fulton wrote:
>>>   What versions of Python are you using on the clients and on the server?
>>>
>>
>>  Sorry should have mentioned:
>>  Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40)
>>  [GCC 4.3.2] on linux2
>>
> ...on both
>

ugh, I know this must be annoying but, I forgot to add, clients and servers are 
both x86_64 systems (amazon ec2 instances actually).

cheers,
- steve
-- 
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Is this a bug ? [ZODB3-3.10.0b8]

2010-10-07 Thread Jim Fulton
On Thu, Oct 7, 2010 at 12:56 PM, steve  wrote:
> Hi Jim,
> On 10/07/2010 10:20 PM, Jim Fulton wrote:
>>
>> What versions of Python are you using on the clients and on the server?
>>
>
> Sorry should have mentioned:
> Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40)
> [GCC 4.3.2] on linux2

This is on both the client (the repoze bfg app) and the server?

Jim

-- 
Jim Fulton
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Is this a bug ? [ZODB3-3.10.0b8]

2010-10-07 Thread steve
On 10/07/2010 10:26 PM, steve wrote:
> Hi Jim,
> On 10/07/2010 10:20 PM, Jim Fulton wrote:
>>  What versions of Python are you using on the clients and on the server?
>>
>
> Sorry should have mentioned:
> Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40)
> [GCC 4.3.2] on linux2
>
...on both

cheers,
- steve
-- 
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Is this a bug ? [ZODB3-3.10.0b8]

2010-10-07 Thread steve
Hi Jim,
On 10/07/2010 10:20 PM, Jim Fulton wrote:
> What versions of Python are you using on the clients and on the server?
>

Sorry should have mentioned:
Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40)
[GCC 4.3.2] on linux2

cheers,
- steve

[...snip...]

-- 
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Is this a bug ? [ZODB3-3.10.0b8]

2010-10-07 Thread Jim Fulton
What versions of Python are you using on the clients and on the server?

Jim

On Thu, Oct 7, 2010 at 12:38 PM, steve  wrote:
> Hi,
>
> We recently updated the zodb package to ZODB3-3.10.0b8 on our servers which
> serve a repoze.bfg application with a ZODB backned. Since then some methods
> which worked before the update have been failing with traces similar to this:
>
> (also at http://pastebin.com/aPKwBQp6 , in case that is easier to read)
>
>
>    File "/home/ideo/oproj/src/oproj/oproj/views/userhandling.py", line 393, in
> delete_user
>      profiles.remove(username)
>    File
> "/home/ideo/oproj/eggs/repoze.folder-0.4-py2.5.egg/repoze/folder/__init__.py",
> line 210, in remove
>      objectEventNotify(ObjectWillBeRemovedEvent(other, self, name))
>    File
> "/home/ideo/oproj/eggs/zope.component-3.6.0-py2.5.egg/zope/component/event.py",
> line 33, in objectEventNotify
>      adapters = zope.component.subscribers((event.object, event), None)
>    File
> "/home/ideo/oproj/eggs/zope.component-3.6.0-py2.5.egg/zope/component/_api.py",
> line 138, in subscribers
>      return sitemanager.subscribers(objects, interface)
>    File
> "/home/ideo/oproj/eggs/zope.component-3.6.0-py2.5.egg/zope/component/registry.py",
> line 315, in subscribers
>      return self.adapters.subscribers(objects, provided)
>    File
> "/home/ideo/oproj/eggs/zope.interface-3.5.1-py2.5-linux-x86_64.egg/zope/interface/adapter.py",
> line 535, in subscribers
>      subscription(*objects)
>    File "/home/ideo/oproj/src/karl/karl/models/subscribers.py", line 166, in
> profile_removed
>      _remove_email(parent, name)
>    File "/home/ideo/oproj/src/karl/karl/models/subscribers.py", line 153, in
> _remove_email
>      filtered = [x for x in mapping.items() if x[1] != name]
>    File
> "/home/ideo/oproj/eggs/ZODB3-3.10.0b8-py2.5-linux-x86_64.egg/ZODB/Connection.py",
>  line
> 859, in setstate
>      self._setstate(obj)
>    File
> "/home/ideo/oproj/eggs/ZODB3-3.10.0b8-py2.5-linux-x86_64.egg/ZODB/Connection.py",
>  line
> 913, in _setstate
>      self._reader.setGhostState(obj, p)
>    File
> "/home/ideo/oproj/eggs/ZODB3-3.10.0b8-py2.5-linux-x86_64.egg/ZODB/serialize.py",
> line 613, in setGhostState
>      obj.__setstate__(state)
>  SystemError: new style getargs format but argument is not a tuple
>
>
> I just wanted to confirm whether this is something to do with the app or a 
> ZODB
> bug. Any pointer/help would is appreciated.
>
> cheers,
> - steve
> --
> random spiel: http://lonetwin.net/
> what i'm stumbling into: http://lonetwin.stumbleupon.com/
> ___
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
>
> ZODB-Dev mailing list  -  zodb-...@zope.org
> https://mail.zope.org/mailman/listinfo/zodb-dev
>



-- 
Jim Fulton
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev