﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
1376	make user-oriented error message for absence of node.url	zooko		"I created a basedir with {{{tahoe create-client ${BASEDIR}}}}, then started the client with {{{tahoe start ${BASEDIR}}}, then ran {{{tahoe mkdir -d ${BASEDIR}}}}, and it did this:
{{{
$ tahoe mkdir -d .
Traceback (most recent call last):
  File ""/Users/zooko/playground/tahoe-lafs/dw/support/bin/tahoe"", line 9, in <module>   
    load_entry_point('allmydata-tahoe==1.8.2-r5006', 'console_scripts', 'tahoe')()
  File ""/Users/zooko/playground/tahoe-lafs/dw/src/allmydata/scripts/runner.py"", line 113, in run
    rc = runner(sys.argv[1:], install_node_control=install_node_control)
  File ""/Users/zooko/playground/tahoe-lafs/dw/src/allmydata/scripts/runner.py"", line 67, in runner
    config.parseOptions(argv)
  File ""/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/usage.py"", line 231, in parseOptions
    self.subOptions.parseOptions(rest)
  File ""/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/usage.py"", line 241, in parseOptions
    self.postOptions()
  File ""/Users/zooko/playground/tahoe-lafs/dw/src/allmydata/scripts/cli.py"", line 42, in postOptions
    self['node-url'] = open(node_url_file, ""r"").read().strip()
IOError: [Errno 2] No such file or directory: u'/Users/zooko/tmp/d/tmp_create/node.url' 
}}}
There is no {{{node.url}}} file present. The usage information from {{{tahoe mkdir --help}}} makes it sound like the {{{node.url}}} file is not necessary if the actual Tahoe-LAFS gateway is there:
{{{
  -d, --node-directory=   Specify which Tahoe node directory should be used. The
                          directory should either contain a full Tahoe node, or
                          a file named node.url that points to some other Tahoe
                          node. It should also contain a file named
                          'private/aliases' which contains the mapping from
                          alias name to root dirnode URI. [default:
                          '/Users/zooko/.tahoe']
}}}"	defect	new	major	soon	code-frontend-cli	1.8.2		cli usability tahoe-* doc error		
