[Zope] Recovering zope data

Michel Pelletier michel@digicool.com
Thu, 3 Jun 1999 23:19:14 -0400


> -----Original Message-----
> From: Corey Ralph [mailto:corey@net-tech.com.au]
> Sent: Thursday, June 03, 1999 10:46 PM
> To: zope@zope.org
> Subject: [Zope] Recovering zope data
> 
> 
> i have just had a power outage and lost a fair amount of work 
> on a test server.
> As it isn't a production server, it had no UPS. 
> 
> Zope won't load, it gives me:
> 

<snip>

> ImportError: ('DatabaseError', 'Corrupted data record at 1156286')
> 
> Has anyone had any experience with this kind of thing?  Is 
> there any chance I
> can fix it?
> 

Yes, you can truncate your data file at byte position 1156286, and you
will be able to load your database again, however, you will have lost
data.  Zope never writes incomplete records to the database, but
'written to file' does not imply 'written to disk' as just about every
OS there is buffers reads and writes in memory (Linux and other unicies
are especially agressive about buffering). 

-Michel

> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>