Re: Recovering from disk errors
Ed Leafe <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb.dirstorage |
|---|---|
| Message-ID | <[email protected]> |
On Jul 4, 2004, at 5:29 AM, Toby Dickenson wrote:
> You will need that file in the future if you want to run checkds when
> Zope is
> running, but it wont help you now that you want to run checkds before
> setting
> up Zope. What you need now is:
>
> http://dirstorage.sourceforge.net/FAQ.html#csnap
> "Can I force the storage into snapshot mode from the command line?"
>
> Use the script listed there, then run
> python snapshot.py /usr/zopestorage - python checkds.py
> as before.
Zope is not running (it can't!). If I run 'python checkds.py", I get:
ERROR: Run this tool under snapshot.py
Looking at the code for checkds.py, it expects the enviromental
variable 'SNAPSHOT_VERSION' to be set, or it will throw the above
error. So it doesn't look like this script can be run outside of
snapshot.py - or am I missing something?
When I run under snapshot.py using the command you gave above, I still
get the following:
failed to open /usr/zopestorage/config/snapshot.conf
SnapshotError: directory is not a snapshot
So as it stands now, I have to run under snapshot, and it won't do
that unless I have a snapshot.conf
> That file is only needed if you want to run tools such as replica,
> backup, or
> checkds, while the storage is live. If you always shut the storage down
> cleanly before running those tools then it is ok for that file to be
> missing
> (although you will get a warning) or empty.
Since I had a disk crash, no, it was not a very clean shutdown.
> http URL ACCESS
>
> URL
> The URL of a DirectoryStorageToolkit instance in a Zope server.
> ACCESS
> The name of a file which contains username and password of a Zope
> user authorized to use that DirectoryStorageToolkit
>
>
> for example, my file contains the one line:
> http http://localhost:5080/DSToolkit ../../../access
OK, maybe this should be obvious, but I have a few questions about
this:
a) is the :5080 something specific to DirectoryStorage, or is that the
port you typically run Zope on?
b) if it is your Zope port, how is this supposed to work if Zope can't
run?
c) You list a relative path for your 'access' file, but what is it
relative to?
d) How are the username and password formatted in that file?
e) is the password plain text or encrypted (using what)?
___/
/
__/
/
____/
Ed Leafe
http://leafe.com/
http://dabodev.com/
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com