#1376 new defect

CLI errors out due to absence of node.url — at Initial Version

Reported by: zooko Owned by:
Priority: major Milestone: soon
Component: code-frontend-cli Version: 1.8.2
Keywords: cli usability tahoe-* doc error Cc:
Launchpad Bug:

Description

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']

Change History (0)

Note: See TracTickets for help on using tickets.