[tahoe-dev] How to use non-default NODEDIR with Tahoe CLI?
Brian Warner
warner-tahoe at allmydata.com
Mon Feb 2 19:05:30 PST 2009
[oops, let's see if I can actually type something before hitting Send
this time..]
On Tue, 3 Feb 2009 13:44:12 +1100
Andrej Falout <andrej at falout.org> wrote:
> Thanks Brian,
>
> does not seem to work here:
>
> andrej at polar:~> tahoe ls --node-directory ~/.tahoe-allmydata.com
> line 137, in get_alias
> return aliases[default], path
> KeyError: 'tahoe'
Ah, we should probably improve that error message. What happened is that you
told Tahoe to list your "default alias" (i.e. your "tahoe:" alias), but did
first tell it what that alias is supposed to point to. The aliases file lives
in the node-directory. So you were probably expecting this command to list
the directory that is referenced by e.g.:
grep "tahoe:" ~/.tahoe/private/aliases
but you don't yet have a ~/.tahoe-allmydata.com/private/aliases file, or that
file doesn't have a "tahoe:" line in it.
See the "tahoe create-alias" command for a quick way to create a new
directory and record it in the private/aliases file, or "tahoe set-alias" and
"tahoe list-aliases" to manipulate that file (or simply edit private/aliases
directly).
If you know the dircap's URI, you can use that explicitly, instead of using
an alias:
tahoe ls --node-directory ~/.tahoe-allmydata.com URI:DIR2:....
hope that helps,
-Brian
More information about the tahoe-dev
mailing list