Re: [Zope] ZODB BTrees File Storage error on start up

2005-08-11 Thread Dieter Maurer
David Pratt wrote at 2005-8-10 22:07 -0300:
>Hi Dieter. It is rather strange for sure.  The warning has appeared 
>over the past couple of days. First day I removed what I thought might 
>be a bad CMFBTree folder since it was last thing I remember working 
>with from previous night to do with BTrees.  Then it appeared again - 
>first restart of the day - it never appeared again that day even after 
>a number of restarts. Received the error again this morning - first 
>restart of day.  This time cleared the Data.fs.index and restarted. 
>Again it did not appear again all day after a number of restarts. It 
>almost makes me wonder if it is somehow related to automated backup 
>since it appears consistently on the first restart of the day. Can this 
>make any sense?

No, it does not
But nevertheless, you see what you see?

"__basicnew__" is a class method. It must be there independent
on the concrete object.

If it were not there, then whether or not you see the error
may depend on whether or not the index file is present (you
should not see it when there is no index file; you may, if there is).

But, it should be there. If not, then the shared object
"BTrees/_fsBTree.{so,pyd}" must have been badly executed
(maybe because it is corrupt) -- but it would be surprising
that this shows up in such a harmless way (one would instead
expect a memory violation or bad opcode or something really nasty).

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZODB BTrees File Storage error on start up

2005-08-10 Thread David Pratt
Hi Dieter. It is rather strange for sure.  The warning has appeared 
over the past couple of days. First day I removed what I thought might 
be a bad CMFBTree folder since it was last thing I remember working 
with from previous night to do with BTrees.  Then it appeared again - 
first restart of the day - it never appeared again that day even after 
a number of restarts. Received the error again this morning - first 
restart of day.  This time cleared the Data.fs.index and restarted. 
Again it did not appear again all day after a number of restarts. It 
almost makes me wonder if it is somehow related to automated backup 
since it appears consistently on the first restart of the day. Can this 
make any sense? Like the index is getting corrupted from backup.


The only other thing that I can think of at the moment is that I had 
some nested CMFBTreeFolders that were not registered properly 
registered in the types tool yet inside a CMFSite instance. These were 
added programmatically with manage_add. I don't know if this could 
result in this error.  In any case, I am resolving the types tool 
registration issue tonight and will see what happens tomorrow am.


I am restarting this zope several times a day since I am developing on 
it. I have been adding and removing many BTree folders since I am in 
process of building a product that will use these quite a bit. I have 
been running tests then removing CMFBTreeFolders, updating product, 
restarting, rerunning with changes, etc


In any case I will examine fsBtree as you have suggested if I see 
warning again tomorrow in my log. This is a relatively new CMF1.5.2 and 
Zope2.8.0 instance and the only server I have this combination on at 
the moment.


Regards,
David

On Wednesday, August 10, 2005, at 06:37 PM, Dieter Maurer wrote:


David Pratt wrote at 2005-8-8 11:11 -0300:

I just began receiving this error this morning in one of my event logs
on start up. It looks serious.

2005-08-08T08:49:26 WARNING ZODB.FileStorage Failed to load database
index: exceptions.AttributeError: type object 
'BTrees._fsBTree.fsBTree'

has no attribute '__basicnew__'

Can someone advise a course of action and what may have happened to
generate such an error. I use CMFBTreeFolders extensively in CMF. Many
thanks.


Mysterious:

"BTrees._fsBTree.fsBTree" should have a '__basicnew__'
attribute (like all 'ExtensionClass'es).

Try to import "fsBTree" in an interactive Python interpreter
and check it.


--
Dieter


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZODB BTrees File Storage error on start up

2005-08-10 Thread Dieter Maurer
David Pratt wrote at 2005-8-8 11:11 -0300:
>I just began receiving this error this morning in one of my event logs 
>on start up. It looks serious.
>
>2005-08-08T08:49:26 WARNING ZODB.FileStorage Failed to load database 
>index: exceptions.AttributeError: type object 'BTrees._fsBTree.fsBTree' 
>has no attribute '__basicnew__'
>
>Can someone advise a course of action and what may have happened to 
>generate such an error. I use CMFBTreeFolders extensively in CMF. Many 
>thanks.

Mysterious:

"BTrees._fsBTree.fsBTree" should have a '__basicnew__'
attribute (like all 'ExtensionClass'es).

Try to import "fsBTree" in an interactive Python interpreter
and check it.


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZODB BTrees File Storage error on start up

2005-08-08 Thread David Pratt
Hi Chris. Thanks for your reply. It is a relatively new ZODB from a  
fresh 2.8.0  installed a week or so ago.


I went back over what I had been doing last evening with the site and  
it looks like something may have happened with a CMFBTree Folder  
instance - not sure exactly what at this point since there was no  
traceback.


I am adding nested CMFBTreeFolders (3 levels) as part of a product  
using manage_addProduct a statements like the following.  Is there  
anything wrong with this approach?


btree_url0_folder_obj.manage_addProduct['BTreeFolder2'].manage_addConten 
t(type='CMF BTree Folder', id=btree_url1_folder_id)


I removed the last instance I created last night and restarted and  
everything looks good again.  Not sure it there is some sort of bug  
lurking but will be keep a close watch for any repeat of this in future.


Thanks
David
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZODB BTrees File Storage error on start up

2005-08-08 Thread Chris McDonough
Hmm... not sure what causes this (did you upgrade ZODB versions?) but
you may try:

1. Shut down Zope (or ZEO if you use that).

2. find your Data.fs file

3. Delete the file beside it named Data.fs.index

4. Restart Zope (or ZEO).

See if the error goes away..  FileStorage builds an index of oid to file
position in this index.  It's transient, and will be rebuilt when the
process is restarted.

- C


On Mon, 2005-08-08 at 11:11 -0300, David Pratt wrote:
> I just began receiving this error this morning in one of my event logs 
> on start up. It looks serious.
> 
> 2005-08-08T08:49:26 WARNING ZODB.FileStorage Failed to load database 
> index: exceptions.AttributeError: type object 'BTrees._fsBTree.fsBTree' 
> has no attribute '__basicnew__'
> 
> Can someone advise a course of action and what may have happened to 
> generate such an error. I use CMFBTreeFolders extensively in CMF. Many 
> thanks.
> 
> Regards,
> David
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ZODB BTrees File Storage error on start up

2005-08-08 Thread David Pratt
I just began receiving this error this morning in one of my event logs 
on start up. It looks serious.


2005-08-08T08:49:26 WARNING ZODB.FileStorage Failed to load database 
index: exceptions.AttributeError: type object 'BTrees._fsBTree.fsBTree' 
has no attribute '__basicnew__'


Can someone advise a course of action and what may have happened to 
generate such an error. I use CMFBTreeFolders extensively in CMF. Many 
thanks.


Regards,
David
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )