[ZODB-Dev] How to move fs files between directories?
Ammar Hakim
ammarhakim777 at yahoo.com
Fri Jan 21 15:30:40 EST 2005
Hello All,
I just started using ZODB a couple of days ago. I
converted an application using SQLITE to now use ZODB.
Everything works great!
The problem I have is that I am not able to copy the
fs file to some other location on the same machine. If
I do so and try to open it, say from the python
prompt, I get the execption IOError: [Errno 11]
Resource temporarily unavailable.
Is there some special way to copy the fs file or does
the database need to be closed in a special way when
the application shuts down? I am attaching a stack
trace below.
Cheers,
Ammar
File
"/usr/lib/python2.3/site-packages/ZODB/config.py",
line 52, in databaseFromURL
return databaseFromConfig(config.database)
File
"/usr/lib/python2.3/site-packages/ZODB/config.py",
line 55, in databaseFromConfig
return section.open()
File
"/usr/lib/python2.3/site-packages/ZODB/config.py",
line 97, in open
storage = section.storage.open()
File
"/usr/lib/python2.3/site-packages/ZODB/config.py",
line 133, in open
quota=self.config.quota)
File
"/usr/lib/python2.3/site-packages/ZODB/FileStorage/FileStorage.py",
line 120, in __init__
self._lock_file = LockFile(file_name + '.lock')
File
"/usr/lib/python2.3/site-packages/ZODB/lock_file.py",
line 63, in __init__
lock_file(self._fp)
File
"/usr/lib/python2.3/site-packages/ZODB/lock_file.py",
line 42, in lock_file
fcntl.flock(file.fileno(), _flags)
IOError: [Errno 11] Resource temporarily unavailable
__________________________________
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250
More information about the ZODB-Dev
mailing list