[tahoe-dev] [mm] Another FUSE interface

Ben Laurie ben at links.org
Thu May 1 01:09:32 PDT 2008


zooko wrote:
>> More alarmed by total failure of the web interface on your wiki  
>> example
>> (as already reported).
> 
> 
> Ben, I'm sorry I didn't write back to you about this sooner.
> 
> So I looked at my status page after downloading the wiki example and  
> getting a blank page.  It said:
> 
> Started  	Type  	Storage Index  	Helper?  	Total Size  	Progress  	 
> Status
> 07:09:41 29-Apr-2008  	retrieve  	4pemzvf2u4li5ro4z3yykhwiti  	No  	 
> 140  	100.0%  	Done
> 07:05:40 29-Apr-2008 	download 	(None) 	No 	0 	100.0% 	Done
> 
> The first is the directory, and the second is the immutable file  
> linked from that directory.  It says that the immutable file's size  
> is 0!
> 
> So I took the URL of my wiki:
> 
> http://tahoebs1.allmydata.com:8123/uri/URI%3ADIR2% 
> 3A5pg4nmduniy2va6zgzz4wewvoi% 
> 3Amsrwf7ty7aye4lcuheiu27b3fp6tjvvyvenz25cnficcjd7qudwq/wiki.html
> 
> and removed the "wiki.html" from the end, yielding:
> 
> http://tahoebs1.allmydata.com:8123/uri/URI%3ADIR2% 
> 3A5pg4nmduniy2va6zgzz4wewvoi% 
> 3Amsrwf7ty7aye4lcuheiu27b3fp6tjvvyvenz25cnficcjd7qudwq
> 
> which also agrees that "wiki.html" is a zero-length file.
> 
> Okay, so someone, possibly me, overwrote the wiki with a zero-length  
> file.
> 
> Here is a new one, and this time I'm publishing the read-only cap to  
> it and keeping the read-write cap to myself so that if anyone erases  
> it we'll know who to blame:
> 
> http://tahoebs1.allmydata.com:8123/uri/URI%3ADIR2-RO% 
> 3Apgj2oefhipe2uzulz7kyvyfcbe% 
> 3A7xoalidet7oignxsnhra77ez7qxh6ro5humhumncabv4cghdkc2q/wiki.html

Its a drag that these URLs do not survive email very well!

> If you want your very own decentralized wiki, simply copy that file  
> and upload it to a Tahoe grid.

So, once more, I try to list the directory, and I get:

$ bin/tahoe ls 
--dir-cap=URI:DIR2-RO:pgj2oefhipe2uzulz7kyvyfcbe:7xoalidet7oignxsnhra77ez7qxh6ro5humhumncabv4cghdkc2q
http://127.0.0.1:8124/uri/URI%3ADIR2-RO%3Apgj2oefhipe2uzulz7kyvyfcbe%3A7xoalidet7oignxsnhra77ez7qxh6ro5humhumncabv4cghdkc2q/?t=json
Traceback (most recent call last):
   File "/disk1.1/usr/home/ben/darcs-work/tahoe/support/bin/tahoe", line 
8, in <module>
     load_entry_point('allmydata-tahoe==1.0.0-r2514', 'console_scripts', 
'tahoe')()
   File 
"/disk1.1/usr/home/ben/darcs-work/tahoe/src/allmydata/scripts/runner.py", 
line 77, in run
     rc = runner(sys.argv[1:])
   File 
"/disk1.1/usr/home/ben/darcs-work/tahoe/src/allmydata/scripts/runner.py", 
line 66, in runner
     rc = cli.dispatch[command](so, stdout, stderr)
   File 
"/disk1.1/usr/home/ben/darcs-work/tahoe/src/allmydata/scripts/cli.py", 
line 145, in list
     stdout, stderr)
   File 
"/disk1.1/usr/home/ben/darcs-work/tahoe/src/allmydata/scripts/tahoe_ls.py", 
line 15, in list
     parsed = simplejson.loads(data)
   File 
"/disk1.1/usr/home/ben/darcs-work/tahoe/support/lib/python2.5/site-packages/simplejson-1.7.3-py2.5-freebsd-6.3-STABLE-i386.egg/simplejson/__init__.py", 
line 262, in loads
     return _default_decoder.decode(s)
   File 
"/disk1.1/usr/home/ben/darcs-work/tahoe/support/lib/python2.5/site-packages/simplejson-1.7.3-py2.5-freebsd-6.3-STABLE-i386.egg/simplejson/decoder.py", 
line 251, in decode
     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
   File 
"/disk1.1/usr/home/ben/darcs-work/tahoe/support/lib/python2.5/site-packages/simplejson-1.7.3-py2.5-freebsd-6.3-STABLE-i386.egg/simplejson/decoder.py", 
line 270, in raw_decode
     raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

-- 
http://www.apache-ssl.org/ben.html           http://www.links.org/

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff


More information about the tahoe-dev mailing list