[tahoe-lafs-trac-stream] [tahoe-lafs] #1376: make user-oriented error message for absence of node.url

tahoe-lafs trac at tahoe-lafs.org
Tue Jan 21 20:50:26 UTC 2014


#1376: make user-oriented error message for absence of node.url
-----------------------------+---------------------------------------------
     Reporter:  zooko        |      Owner:
         Type:  defect       |     Status:  new
     Priority:  major        |  Milestone:  soon
    Component:  code-        |    Version:  1.8.2
  frontend-cli               |   Keywords:  cli usability tahoe-* doc error
   Resolution:               |
Launchpad Bug:               |
-----------------------------+---------------------------------------------

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

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

--

Comment (by daira):

 #2089 was a duplicate.

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1376#comment:6>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


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