Re: Can't get into snapshot, was Re: Backup aborted - why? (dirstor 1.1.9)

Toby Dickenson <[email protected]>
Newsgroups gmane.comp.web.zope.zodb.dirstorage
Message-ID <[email protected]>
On Tuesday 28 December 2004 21:07, Paul Winkler wrote:

> Aaaand now that that's taken care of, and I've restarted
> the ZEO server and confirmed that it leaves snapshot mode
> after startup, I can no longer get into snapshot mode :-(
> 
> Here's the error:
> Traceback (most recent call last):
>   File "snapshot.py", line 260, in ?
>     main()
>   File "snapshot.py", line 61, in main
>     s.acquire()
>   File "snapshot.py", line 108, in acquire
>     lock_file(f)
>   File "/zope/Zope-2.7.3-0-SoftwareHome/lib/python/ZODB/lock_file.py", line 
42, in lock_file
>     fcntl.flock(file.fileno(), _flags)
> IOError: [Errno 11] Resource temporarily unavailable

Something has locked the file misc/sublock. On linux 'lsof' will tell you 
what. 

But this is strange.... The only call to lock_file in acquire in snapshot.py 
is inside an exception handler for IOError. It should be converting this 
exception to a DirectoryStorageError('could not lock storage directory')

That line is commented # Forget to patch ZEO? See doc/install and 
http://dirstorage.sourceforge.net/install.html.
That patch is only for older ZEO versions, and your log indicates that the 
remote method call is getting through. Maybe there is some other version 
incompatibility here.

> Here's the server log since the restart... is that PROBLEM line 
> something to worry about?

This one?...

> 2004-12-28T15:46:10 PROBLEM(100) DirectoryStorage shutdown without snapshot

It normally puts the storage into snapshot mode when shutting down. This 
message indicates that it tried and failed. 

On startup there is no message "Engaging in snapshot mode", so that file lock 
had definitely been released at that point.


That gives you plenty of strange things for further debugging. Sorry I cant be 
of more direct help.

-- 
Toby Dickenson

____________________

Important Notice:

This email and any attachments are confidential and may contain trade secrets or be legally privileged. If you have received this email in error you must not use, rely upon, disclose, copy or distribute the contents. Please reply to the sender so that proper delivery can be arranged and delete the email from your computer.
Gemini Data Loggers monitor incoming and outgoing email to ensure satisfactory customer service, maintain company security and prevent abuse of their email system. However, any views expressed in this email are not necessarily those of Gemini and Gemini cannot be held responsible for the content.
Gemini makes best efforts to ensure emails are virus free; however you are advised to carry out your own checks. Gemini does not accept responsibility for any damage resulting from email viruses.
____________________



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.