[tahoe-lafs-trac-stream] [tahoe-lafs] #1376: CLI errors out due to absence of node.url

tahoe-lafs trac at tahoe-lafs.org
Fri Mar 11 09:05:05 PST 2011


#1376: CLI errors out due to absence of node.url
-----------------------------------+----------------------------------------
 Reporter:  zooko                  |           Owner:           
     Type:  defect                 |          Status:  new      
 Priority:  major                  |       Milestone:  undecided
Component:  code-frontend-cli      |         Version:  1.8.2    
 Keywords:  cli usability tahoe-*  |   Launchpad Bug:           
-----------------------------------+----------------------------------------
 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']
 }}}

-- 
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1376>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list