On 26/03/12 11:36, Wayne Boucher wrote:
> Hello,
>
> Is there ever an error message about this (e.g. on the shell), or is it
> failing silently? We're not doing anything fancy with the writes, just
> the bog standard Python routines. I would think that about the only way
> we could deal with this is to check after the fact (by reading the file
> back in and checking that it ends ok).
Hello Wayne,
There is nothing fancy.
Luckily it never happened to me personally, so I cannot give you direct
informations. Normally I get called to people who have this problem and
then simply the project refuses to get load with a message referring to
missing tags in the xml files. In the best cases some simple sanitizing
of the xml files is enough, but normally to much is lost. So far nothing
has been reported during saving as I was told.
You are right, the most secure way would be to read in the complete
file, but I think only checking the end would be enough. Reading the
complete file in large projects would slow everything down
significantly. But as the file always end with the tag <!--End of Memops
Data--> it is easy to check, that the complete file was written.
Alternatively a line count would give an answer.
>
> The case that we had with Santhosh last week I think was probably down to
> a unicode problem, but I couldn't reproduce it myself (e.g. by sticking
> unicode characters in and saving it and loading it, repeatedly) and I
> don't know if NFS+LDAP would have any extra problems in that context (I
> can't see why this would).
I don't see any problems here either. Although unicode errors are also a
nice source of problems, e.g. registering with an umlaut in the name
will lead to an unsavable state of the project.
I really looked into our setup, but I can't find any correlation which
should lead to the problem.
justin
>
> Wayne
>
> On Mon, 26 Mar 2012, Justin Lecher wrote:
>
>> Hi,
>>
>> we have a serious problem here with saving the project.
>>
>> We are using an NFS+LDAP based setup with distributed logins and HOMEs.
>> From time to time when people save their project not all xml files a
>> wrote completely. Means the end of some of the files are missing. And
>> this results in a more or less unrecoverable situation, specially if
>> also the bak files are also affected.
>>
>> My question now, where is the source of this problem? Is there a problem
>> during the writing of the files from the python/ccpn side?
>> As we are never experiencing this kind of problem with any other
>> program, I would assume it to be a problem with ccpn rather then our
>> setup. But I really have no clue.
>>
>>
>> Thanks for any suggestion and if you need more information, just ask,
>>
>> justin
>>
>>
>> --
>> Justin Lecher
>> Institute of Complex Systems
>> ICS-6 Structural Biochemistry
>> Research Centre Juelich
>> 52425 Juelich, Germany
>> phone: +49 2461 61 2117
>>
>>
>>
--
Justin Lecher
Institute of Complex Systems
ICS-6 Structural Biochemistry
Research Centre Juelich
52425 Juelich, Germany
phone: +49 2461 61 2117
|