Re: Cannot run backup script
Toby Dickenson <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb.dirstorage |
|---|---|
| Message-ID | <[email protected]> |
On Friday 16 July 2004 12:49, Ed Leafe wrote:
> I'm now trying to automate making backups via a script that runs from
> a cron job that fires early every morning. But when it runs, either via
> cron or manually, I get the following error:
Can you share the script?
Which version are you using? This is one area that has changed dramatically
(to be easier) in the latest beta release.
> File "/usr/local/zope/2.7.1/lib/python/ZODB/lock_file.py", line 42,
> in lock_file
> fcntl.flock(file.fileno(), _flags)
> IOError: [Errno 11] Resource temporarily unavailable
snapshot.py uses a lock file to make sure that the storage really is in
snapshot mode, and to make sure that nothing takes the storage back out of
snapshot mode for as long as the backup is running.
Most likely, your storage is running and snapshot couldnt communicate with it
to put it into snapshot mode.
Alternatively, maybe something else is using currently snapshot mode...... I
added the retry mechanism to snapshot.py after seeing this error if my backup
cron job collides with the replication cron job.
> File "snapshot.py", line 108, in acquire
> lock_file(f)
The two lines of snapshot.py before this line are:
# Unexplained exceptions in the line below? Did you forget
# to apply the patch to ZEO mentioned in doc/install?
If thats not it, a misconfigured snapshot.conf seems most likely.
--
Toby Dickenson
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click