[Zope-dev] Data.fs & ZEO

2001-07-03 Thread Priya Ramkumar

Hi

I have installed Zope version 2.3.3 & ZEO1.0. I would like to copy the
Data.fs from my previous zope installation which is 2.2.4 to the new one. I
copied the Data.fs, Data.fs.lock, Data.fs.tmp & Data.fs.old from the old
Zope to the "var" directory in the "Instance_home" directory. I start Zope
from the "Instance_home" by invoking "zctl.py". After I copied the Data.fs
files to the new Zope, I get the following error.

 File
/export/usr/local/Zope3/Zope_software_home/lib/python/ZEO/ClientCache.py, l
ine 325, in update
  File
/export/usr/local/Zope3/Zope_software_home/lib/python/ZEO/ClientCache.py, l
ine 401, in _store
TypeError: __add__ nor __radd__ defined for these operands

--
2001-07-04T04:01:45 INFO(0) ZEO Server Close 136753056
--
2001-07-04T04:01:45 PROBLEM(100) zdaemon zdaemon: Wed Jul  4 06:01:45 2001:
The ki
d, 75464, died on me.

Can anyone please tell me what could be the problem? I am using python
version1.5.2.

Thanks for any help.

Priya


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Data.fs lost?? ideas?

2001-06-29 Thread Chris Withers

Chris Keyes wrote:
> 
>  Restart
> 
>  Realised file was 1.6meg not 700

Data.fs is question was of one of our FreeZope servers :-(
Wgh...

Anyone got any ideas what could have happened or what we should start looking
for?

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Data.fs lost?? ideas?

2001-06-29 Thread Chris Keyes

In an attempt to upgrade the Zope from 2.3.1b1 to 2.3.2 we encountered a
problem.

All the data in out Data.fs file was lost so it had to be restored from a
backup.

Any ideas as to what the problem may have been???

Procedure

Stopped the Zope instance

Changed the Zope instance home and port

Restarted
 Came back to prompt quickly
 Logs were empty when checked

Enabled Debug
 Restarted
 Logs show Data.fs is locked
 Made sure Zope was stopped
 Killed the process that had the file locked (kill -9)

 Restart

 Realised file was 1.6meg not 700

Ideas guys??

Cheers Chris Keyes
 Andy Dawkins


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Data.fs

2000-08-20 Thread Toby Dickenson

On Sat, 19 Aug 2000 14:17:51 -0400 (EDT), Chris McDonough
<[EMAIL PROTECTED]> wrote:

>> Surely this raises some data integrity issues if you copy in 
>> mid-transaction?  Or does an incomplete transaction at the end of the db 
>> just get thrown out, and the design of the db assure that only the end of 
>> the file gets updated?
>
>An incomplete transaction at the end of Data.fs gets ignored and
>is subsequently overwritten by the next new transaction.  Data is always
>appended to the file.

.except during an 'Undo', when one byte is rewritten in the middle
of the file.

Toby Dickenson
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Data.fs

2000-08-19 Thread Chris McDonough

> Surely this raises some data integrity issues if you copy in 
> mid-transaction?  Or does an incomplete transaction at the end of the db 
> just get thrown out, and the design of the db assure that only the end of 
> the file gets updated?

An incomplete transaction at the end of Data.fs gets ignored and
is subsequently overwritten by the next new transaction.  Data is always
appended to the file.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Data.fs

2000-08-19 Thread Ross Boylan

At 12:41 PM 8/18/2000, Dieter Maurer wrote:
>Andre Schubert writes:
>
>  > and can i backup the Data.fs when Zope is running. 
>Yes. Just copy it.
>
>
>
>Dieter

Surely this raises some data integrity issues if you copy in 
mid-transaction?  Or does an incomplete transaction at the end of the db 
just get thrown out, and the design of the db assure that only the end of 
the file gets updated?


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Data.fs

2000-08-18 Thread Dieter Maurer

Andre Schubert writes:
 > I'am using Zope 2.1.6 and my Data.fs is going corrupted 
 > My Questions are: is there a way to delete the last transaction from
 > Data.fs,
There is a product "tranalyze" (or "tranalyzer", "tranalyse", "tranalyser")
that allows you to analyse and fix your Data.fs.

Zope 2.2 contains an "ZODB.fsrecover" which is able to fix a
corrupted "Data.fs".
 > and can i backup the Data.fs when Zope is running. 
Yes. Just copy it.



Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Data.fs

2000-08-17 Thread R. David Murray

On Thu, 17 Aug 2000, Andre Schubert wrote:
> My Questions are: is there a way to delete the last transaction from

One answer: use tranalyzer to find the offset of the start of the
last transaction and truncate the file there.

> Data.fs, and can i backup the Data.fs when Zope is running. Is the

Yes.

> backup of Data.fs inconsitent when i make the backup at the same time a
> user writes to it?

No.  If the last transaction in Data.fs s incomplete, Zope will ignore it on
startup.

--RDM


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Data.fs

2000-08-17 Thread Andre Schubert

Hi,

I'am using Zope 2.1.6 and my Data.fs is going corrupted and i don't have
found a way for backup this file.
My Questions are: is there a way to delete the last transaction from
Data.fs, and can i backup the Data.fs when Zope is running. Is the
backup of Data.fs inconsitent when i make the backup at the same time a
user writes to it?
I want to a backup Data.fs twice a day. so i want to have 14 data.fs
files every week. On this way i can find out when the error occurs and i
can restore an older version of  Data.fs.

as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Data.fs corruption (reproducable)

2000-05-29 Thread Dr. Peer Griebel

FYI: I managed to solve the problem. I simply took the third parameter
out of the parameter list and initialized the variable inside the
function:

def FormatPreis( v, n=2, thou=regex.compile(
   "\([0-9]\)\([0-9][0-9][0-9]\([,.]\|$\)\)").search)

becomes

def FormatPreis( v, n=2 )

The new code is a little bit less efficient. But this doesn't hurt us.

Special thanks to Pavlos Christoforou <[EMAIL PROTECTED]>!

-- 
connection reset by
  Peer

___
Dr. Peer Griebel  Tel. +49 7581 4831 23
Geschäftsführer   Fax. +49 7581 4831 11
Knoll Informationssysteme GmbH   http://www.knoll-is.de
Dreiköniggasse 17   mailto:[EMAIL PROTECTED]
88348 Saulgauprivat: mailto:[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )