http proxying can break webapi and leak capabilities (manifests as JSON decoding error in CLI tests) #1253

Closed
opened 2010-11-09 21:43:19 +00:00 by davidsarah · 22 comments
davidsarah commented 2010-11-09 21:43:19 +00:00
Owner

On tahoe-dev, Yonggang Wen and Jimmy Tang reported errors with r4803 (nearly current trunk) in the following tests:

  Ln
    test_ln_with_nonexistent_alias
    test_ln_without_alias
  Mv
    test_mv_behavior
    test_mv_with_nonexistent_alias
    test_mv_without_alias
  SystemTest
    test_filesystem

For example:

[ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias

Traceback (most recent call last):
[...twisted and runner stack entries snipped...]
  File
"/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py",
line 509, in ln
    rc = tahoe_mv.mv(options, mode="link")
  File
"/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py",
line 32, in mv
    nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line
384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line
402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line
420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1
column 0 (char 0)

Other tests with errors also go through [line 32 of tahoe_mv.py]source:src/allmydata/scripts/tahoe_mv.py@4803#L32.

It's not clear yet whether simplejson is failing to decode valid JSON, or whether the gateway is producing JSON that is not strictly valid.

[On tahoe-dev](http://tahoe-lafs.org/pipermail/tahoe-dev/2010-November/005572.html), Yonggang Wen and Jimmy Tang reported errors with r4803 (nearly current trunk) in the following tests: ``` Ln test_ln_with_nonexistent_alias test_ln_without_alias Mv test_mv_behavior test_mv_with_nonexistent_alias test_mv_without_alias SystemTest test_filesystem ``` For example: ``` [ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias Traceback (most recent call last): [...twisted and runner stack entries snipped...] File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln rc = tahoe_mv.mv(options, mode="link") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 32, in mv nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) ``` Other tests with errors also go through [line 32 of tahoe_mv.py]source:src/allmydata/scripts/tahoe_mv.py@4803#L32. It's not clear yet whether simplejson is failing to decode valid JSON, or whether the gateway is producing JSON that is not strictly valid.
tahoe-lafs added the
code-frontend-cli
major
defect
1.8.0
labels 2010-11-09 21:43:19 +00:00
tahoe-lafs added this to the 1.8.1 milestone 2010-11-09 21:43:19 +00:00
jcftang commented 2010-11-09 22:13:04 +00:00
Author
Owner
As requested by David-Sarah on the mailing list

Version and path information...

1|jtang@x00:~/sandbox/allmydata-tahoe-1.8.0-r4803 $ ./bin/tahoe --version-and-path
allmydata-tahoe: 1.8.0-r4803 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src), foolscap: 0.5.1 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/foolscap-0.5.1-py2.6.egg), pycryptopp: 0.5.25 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pycryptopp-0.5.25-py2.6-macosx-10.6-universal.egg), zfec: 1.4.7-r361 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/zfec-1.4.7_r361-py2.6-macosx-10.6-universal.egg), Twisted: 8.2.0 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), Nevow: 0.10.0 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/Nevow-0.10.0-py2.6.egg), zope.interface: 3.5.1 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), python: 2.6.1 (/usr/bin/python), platform: Darwin-10.4.0-i386-64bit (None), sqlite: 3.6.12 (unknown), simplejson: 2.1.2 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/simplejson-2.1.2-py2.6-macosx-10.6-universal.egg), argparse: 1.1 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/argparse-1.1-py2.6.egg), pycrypto: 2.3 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pycrypto-2.3-py2.6-macosx-10.6-universal.egg), pyOpenSSL: 0.7 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), pyutil: 1.7.12 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pyutil-1.7.12-py2.6.egg), zbase32: 1.1.2 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/zbase32-1.1.2-py2.6.egg), setuptools: 0.6c9 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), pyasn1: 0.0.11a (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pyasn1-0.0.11a-py2.6.egg), pysqlite: 2.4.1 (/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6)

modified /Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py by changing line 32 to:

    print repr(data); nodetype, attrs = simplejson.loads(data)

I then did a python setup.py build and re-ran the tests as instructed. I've copied and pasted anything that failed with an ERROR below

  Ln
    test_ln_with_nonexistent_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56478/uri/URI%3ADIR2%3Ax4hxl27neryqpr7d6djcjfnlze%3A5hpb37l2mwfnzqrrgdbgmj6xaw3mlb225tifft7mz65a4dluvfia/from?">http://127.0.0.1:56478/uri/URI%3ADIR2%3Ax4hxl27neryqpr7d6djcjfnlze%3A5hpb37l2mwfnzqrrgdbgmj6xaw3mlb225tifft7mz65a4dluvfia/from?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:18 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                 [ERROR]
    test_ln_without_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56482/uri/URI%3ADIR2%3Aobass4lyms5yfudex32l4cytra%3A46oia2riunpahps3bspwofwlid64gqihfygngfulh33cuclqyiya/from?">http://127.0.0.1:56482/uri/URI%3ADIR2%3Aobass4lyms5yfudex32l4cytra%3A46oia2riunpahps3bspwofwlid64gqihfygngfulh33cuclqyiya/from?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:19 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                          [ERROR]
  Mv
    test_mv_behavior ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?">http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                               [ERROR]
    test_mv_with_nonexistent_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56505/uri/URI%3ADIR2%3Aarnggtsue3l3v36xy7j6cgkbum%3Av7ymzrpg7lnlrmohfytg3vwa6zpzvwtomcdqkbqukx4iryrya7tq/afile?">http://127.0.0.1:56505/uri/URI%3ADIR2%3Aarnggtsue3l3v36xy7j6cgkbum%3Av7ymzrpg7lnlrmohfytg3vwa6zpzvwtomcdqkbqukx4iryrya7tq/afile?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                 [ERROR]
    test_mv_without_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56509/uri/URI%3ADIR2%3Ax3q34zigp4pnqjyr4oeg5zxqiq%3Akbfrukaeqld4dsnskbzf7oqk772gjel2siztmiio6h4l37jg3ara/afile?">http://127.0.0.1:56509/uri/URI%3ADIR2%3Ax3q34zigp4pnqjyr4oeg5zxqiq%3Akbfrukaeqld4dsnskbzf7oqk772gjel2siztmiio6h4l37jg3ara/afile?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:23 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                          [ERROR]
allmydata.test.test_system
  SystemTest
    test_filesystem ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:57270/uri/URI%3ADIR2%3Atrewrecp3fyucy3noidnya4tl4%3Ah5mmrlbxf2r2ywcuvjrp46gq65nqmvjrcr7lt2rbrkjfnvt6hj4a/tahoe-file-stdin?">http://127.0.0.1:57270/uri/URI%3ADIR2%3Atrewrecp3fyucy3noidnya4tl4%3Ah5mmrlbxf2r2ywcuvjrp46gq65nqmvjrcr7lt2rbrkjfnvt6hj4a/tahoe-file-stdin?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time.  Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:41:33 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
                                                [ERROR]
===============================================================================
[FAIL]: allmydata.test.test_client.Basic.test_reserved_4

Traceback (most recent call last):
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/test_client.py", line 122, in test_reserved_4
    78*1000*1000*1000)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/common_util.py", line 32, in failUnlessReallyEqual
    self.failUnlessEqual(type(a), type(b), msg="a :: %r, b :: %r, %r" % (a, b, msg))
twisted.trial.unittest.FailTest: a :: 78000000000, b :: 78000000000L, None
not equal:
a = <type 'int'>
b = <type 'long'>

===============================================================================
[ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln
    rc = tahoe_mv.mv(options, mode="link")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Ln.test_ln_without_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln
    rc = tahoe_mv.mv(options, mode="link")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_behavior

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_with_nonexistent_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_without_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_system.SystemTest.test_filesystem

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)

``` As requested by David-Sarah on the mailing list Version and path information... 1|jtang@x00:~/sandbox/allmydata-tahoe-1.8.0-r4803 $ ./bin/tahoe --version-and-path allmydata-tahoe: 1.8.0-r4803 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src), foolscap: 0.5.1 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/foolscap-0.5.1-py2.6.egg), pycryptopp: 0.5.25 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pycryptopp-0.5.25-py2.6-macosx-10.6-universal.egg), zfec: 1.4.7-r361 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/zfec-1.4.7_r361-py2.6-macosx-10.6-universal.egg), Twisted: 8.2.0 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), Nevow: 0.10.0 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/Nevow-0.10.0-py2.6.egg), zope.interface: 3.5.1 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), python: 2.6.1 (/usr/bin/python), platform: Darwin-10.4.0-i386-64bit (None), sqlite: 3.6.12 (unknown), simplejson: 2.1.2 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/simplejson-2.1.2-py2.6-macosx-10.6-universal.egg), argparse: 1.1 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/argparse-1.1-py2.6.egg), pycrypto: 2.3 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pycrypto-2.3-py2.6-macosx-10.6-universal.egg), pyOpenSSL: 0.7 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), pyutil: 1.7.12 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pyutil-1.7.12-py2.6.egg), zbase32: 1.1.2 (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/zbase32-1.1.2-py2.6.egg), setuptools: 0.6c9 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python), pyasn1: 0.0.11a (/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/support/lib/python2.6/site-packages/pyasn1-0.0.11a-py2.6.egg), pysqlite: 2.4.1 (/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6) ``` modified /Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py by changing line 32 to: ``` print repr(data); nodetype, attrs = simplejson.loads(data) ``` I then did a python setup.py build and re-ran the tests as instructed. I've copied and pasted anything that failed with an ERROR below ``` Ln test_ln_with_nonexistent_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56478/uri/URI%3ADIR2%3Ax4hxl27neryqpr7d6djcjfnlze%3A5hpb37l2mwfnzqrrgdbgmj6xaw3mlb225tifft7mz65a4dluvfia/from?">http://127.0.0.1:56478/uri/URI%3ADIR2%3Ax4hxl27neryqpr7d6djcjfnlze%3A5hpb37l2mwfnzqrrgdbgmj6xaw3mlb225tifft7mz65a4dluvfia/from?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:18 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] test_ln_without_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56482/uri/URI%3ADIR2%3Aobass4lyms5yfudex32l4cytra%3A46oia2riunpahps3bspwofwlid64gqihfygngfulh33cuclqyiya/from?">http://127.0.0.1:56482/uri/URI%3ADIR2%3Aobass4lyms5yfudex32l4cytra%3A46oia2riunpahps3bspwofwlid64gqihfygngfulh33cuclqyiya/from?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:19 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] ``` ``` Mv test_mv_behavior ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?">http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] test_mv_with_nonexistent_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56505/uri/URI%3ADIR2%3Aarnggtsue3l3v36xy7j6cgkbum%3Av7ymzrpg7lnlrmohfytg3vwa6zpzvwtomcdqkbqukx4iryrya7tq/afile?">http://127.0.0.1:56505/uri/URI%3ADIR2%3Aarnggtsue3l3v36xy7j6cgkbum%3Av7ymzrpg7lnlrmohfytg3vwa6zpzvwtomcdqkbqukx4iryrya7tq/afile?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] test_mv_without_alias ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:56509/uri/URI%3ADIR2%3Ax3q34zigp4pnqjyr4oeg5zxqiq%3Akbfrukaeqld4dsnskbzf7oqk772gjel2siztmiio6h4l37jg3ara/afile?">http://127.0.0.1:56509/uri/URI%3ADIR2%3Ax3q34zigp4pnqjyr4oeg5zxqiq%3Akbfrukaeqld4dsnskbzf7oqk772gjel2siztmiio6h4l37jg3ara/afile?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:38:23 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] ``` ``` allmydata.test.test_system SystemTest test_filesystem ... '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:57270/uri/URI%3ADIR2%3Atrewrecp3fyucy3noidnya4tl4%3Ah5mmrlbxf2r2ywcuvjrp46gq65nqmvjrcr7lt2rbrkjfnvt6hj4a/tahoe-file-stdin?">http://127.0.0.1:57270/uri/URI%3ADIR2%3Atrewrecp3fyucy3noidnya4tl4%3Ah5mmrlbxf2r2ywcuvjrp46gq65nqmvjrcr7lt2rbrkjfnvt6hj4a/tahoe-file-stdin?</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nAccess Denied.\n</STRONG>\n<P>\nAccess control configuration prevents your request from\nbeing allowed at this time. Please contact your service provider if\nyou feel this is incorrect.\n</UL>\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Tue, 09 Nov 2010 21:41:33 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n' [ERROR] ``` ``` =============================================================================== [FAIL]: allmydata.test.test_client.Basic.test_reserved_4 Traceback (most recent call last): File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/test_client.py", line 122, in test_reserved_4 78*1000*1000*1000) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/common_util.py", line 32, in failUnlessReallyEqual self.failUnlessEqual(type(a), type(b), msg="a :: %r, b :: %r, %r" % (a, b, msg)) twisted.trial.unittest.FailTest: a :: 78000000000, b :: 78000000000L, None not equal: a = <type 'int'> b = <type 'long'> =============================================================================== [ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln rc = tahoe_mv.mv(options, mode="link") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Ln.test_ln_without_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln rc = tahoe_mv.mv(options, mode="link") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_behavior Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_with_nonexistent_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_without_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_system.SystemTest.test_filesystem Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) ```
davidsarah commented 2010-11-09 23:23:34 +00:00
Author
Owner

OK, this seems to be due to a squid proxy intercepting webapi requests. Jimmy Tang's comment on tahoe-dev supports that conclusion:

After making the change you suggested I noticed some of the tests were trying to use my proxy when running some of the tests. Interestingly when I unset the http_proxy and HTTP_PROXY environment variables the tests that failed before now passes.

Presumably this would also break actual use of the webapi, not just tests.

In theory, requests to 127.0.0.1 should either not be intercepted or should be passed through transparently, but that's not happening for this particular proxy configuration. The proxy is returning the following HTML error document, which is obviously not valid JSON:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?">http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Access Denied.
</STRONG>
<P>
Access control configuration prevents your request from
being allowed at this time.  Please contact your service provider if
you feel this is incorrect.
</UL>
<P>Your cache administrator is <A HREF="mailto:root">root</A>. 


<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21)
</ADDRESS>
</BODY></HTML>

Note that any response that starts with a '<' (or a BOM followed by '<') is likely to be HTML coming from something other than the intended gateway; we should give a better error report in that case.

OK, this seems to be due to a squid proxy intercepting webapi requests. Jimmy Tang's comment on tahoe-dev supports that conclusion: > After making the change you suggested I noticed some of the tests were trying to use my proxy when running some of the tests. Interestingly when I unset the http_proxy and HTTP_PROXY environment variables the tests that failed before now passes. Presumably this would also break actual use of the webapi, not just tests. In theory, requests to 127.0.0.1 should either not be intercepted or should be passed through transparently, but that's not happening for this particular proxy configuration. The proxy is returning the following HTML error document, which is obviously not valid JSON: ``` <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The requested URL could not be retrieved</TITLE> <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE> </HEAD><BODY> <H1>ERROR</H1> <H2>The requested URL could not be retrieved</H2> <HR noshade size="1px"> <P> While trying to retrieve the URL: <A HREF="http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?">http://127.0.0.1:56496/uri/URI%3ADIR2%3Ab5hqzkgxe2v6lugxnnfs5p5h3q%3A24xpssxc6jpouua2ld3opk4urytcwyql6jhxnil3bqd2ffrpigiq/file1?</A> <P> The following error was encountered: <UL> <LI> <STRONG> Access Denied. </STRONG> <P> Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect. </UL> <P>Your cache administrator is <A HREF="mailto:root">root</A>. <BR clear="all"> <HR noshade size="1px"> <ADDRESS> Generated Tue, 09 Nov 2010 21:38:22 GMT by gateway.tchpc.tcd.ie (squid/2.6.STABLE21) </ADDRESS> </BODY></HTML> ``` Note that any response that starts with a '<' (or a BOM followed by '<') is likely to be HTML coming from something other than the intended gateway; we should give a better error report in that case.
tahoe-lafs added
code-frontend
and removed
code-frontend-cli
labels 2010-11-09 23:23:34 +00:00
tahoe-lafs changed title from JSON decoding error in CLI tests on an OS X 10.6 system to http proxying can break webapi (manifests as JSON decoding error in CLI tests) 2010-11-09 23:23:34 +00:00
davidsarah commented 2010-11-09 23:38:52 +00:00
Author
Owner

Replying to jcftang:

===============================================================================
FAIL: allmydata.test.test_client.Basic.test_reserved_4

Traceback (most recent call last):
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/test_client.py", line 122, in test_reserved_4
    78*1000*1000*1000)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/common_util.py", line 32, in failUnlessReallyEqual
    self.failUnlessEqual(type(a), type(b), msg="a :: %r, b :: %r, %r" % (a, b, msg))
twisted.trial.unittest.FailTest: a :: 78000000000, b :: 78000000000L, None
not equal:
a = <type 'int'>
b = <type 'long'>

This failure (which has nothing to do with the http proxy issue) should have been fixed by changeset:edec9c986917e8f4. jcftang: please check that with current trunk.
Replying to [jcftang](/tahoe-lafs/trac-2024-07-25/issues/1253#issuecomment-81036): > ``` > =============================================================================== > FAIL: allmydata.test.test_client.Basic.test_reserved_4 > > Traceback (most recent call last): > File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/test_client.py", line 122, in test_reserved_4 > 78*1000*1000*1000) > File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/test/common_util.py", line 32, in failUnlessReallyEqual > self.failUnlessEqual(type(a), type(b), msg="a :: %r, b :: %r, %r" % (a, b, msg)) > twisted.trial.unittest.FailTest: a :: 78000000000, b :: 78000000000L, None > not equal: > a = <type 'int'> > b = <type 'long'> ``` This failure (which has nothing to do with the http proxy issue) should have been fixed by changeset:edec9c986917e8f4. jcftang: please check that with current trunk.
davidsarah commented 2010-11-09 23:58:47 +00:00
Author
Owner

Replying to davidsarah:

OK, this seems to be due to a squid proxy intercepting webapi requests. Jimmy Tang's comment on tahoe-dev supports that conclusion:

After making the change you suggested I noticed some of the tests were trying to use my proxy when running some of the tests. Interestingly when I unset the http_proxy and HTTP_PROXY environment variables the tests that failed before now passes.

Please try setting the http_proxy and HTTP_PROXY variables as they were before, and the no_proxy variable to "127.0.0.1:56496".

Replying to [davidsarah](/tahoe-lafs/trac-2024-07-25/issues/1253#issuecomment-81037): > OK, this seems to be due to a squid proxy intercepting webapi requests. Jimmy Tang's comment on tahoe-dev supports that conclusion: > > > After making the change you suggested I noticed some of the tests were trying to use my proxy when running some of the tests. Interestingly when I unset the http_proxy and HTTP_PROXY environment variables the tests that failed before now passes. Please try setting the http_proxy and HTTP_PROXY variables as they were before, and the no_proxy variable to "127.0.0.1:56496".
davidsarah commented 2010-11-10 00:00:57 +00:00
Author
Owner

Replying to [davidsarah]comment:4:

Please try setting the http_proxy and HTTP_PROXY variables as they were before, and the no_proxy variable to "127.0.0.1:56496".

Oh, that probably won't work because the port is dynamic. Try setting no_proxy just to "127.0.0.1" instead.

Replying to [davidsarah]comment:4: > Please try setting the http_proxy and HTTP_PROXY variables as they were before, and the no_proxy variable to "127.0.0.1:56496". Oh, that probably won't work because the port is dynamic. Try setting no_proxy just to "127.0.0.1" instead.

hm, perhaps we should add an early test (i.e. alphabetically first) which just tries a simple HTTP request to self, to catch things like HTTP_PROXY? The error message on that test could look at os.environ["HTTP_PROXY"] and mention that it might be interfering with the self-tests, and remind users to configure their proxies to allow 127.0.0.1 to connect directly.

(Foolscap has a test*versions.py that runs before everything else, so that its output is easier to find.. we could add a test*http_proxy.py to Tahoe and maybe even os.abort() the whole test run if it fails, to avoid later confusion)

hm, perhaps we should add an early test (i.e. alphabetically first) which just tries a simple HTTP request to self, to catch things like HTTP_PROXY? The error message on that test could look at `os.environ["HTTP_PROXY"]` and mention that it might be interfering with the self-tests, and remind users to configure their proxies to allow 127.0.0.1 to connect directly. (Foolscap has a `test*versions.py` that runs before everything else, so that its output is easier to find.. we could add a `test*http_proxy.py` to Tahoe and maybe even `os.abort()` the whole test run if it fails, to avoid later confusion)
jcftang commented 2010-11-10 00:29:18 +00:00
Author
Owner

in reply to comment:5, i tried setting the no_proxy variable and leaving my http_proxy (and friends) variables alone, I now get errors such as...


  Ln
    test_ln_with_nonexistent_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                 [ERROR]
    test_ln_without_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                          [ERROR]
  Manifest
    test_manifest_with_nonexistent_alias ...                               [OK]
    test_manifest_without_alias ...                                        [OK]
  Mkdir
    test_mkdir ...                                                         [OK]
    test_mkdir_unicode ...                                            [SKIPPED]
    test_mkdir_with_nonexistent_alias ...                                  [OK]
  Mv
    test_mv_behavior ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                               [ERROR]
    test_mv_with_nonexistent_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                 [ERROR]
    test_mv_without_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                          [ERROR]
  Put

allmydata.test.test_system
  SystemTest
    test_filesystem ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>"
                                                [ERROR]

the end of the tests... just to be sure im pasting the correct error messages...


===============================================================================
[ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln
    rc = tahoe_mv.mv(options, mode="link")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Ln.test_ln_without_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln
    rc = tahoe_mv.mv(options, mode="link")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_behavior

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_with_nonexistent_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_cli.Mv.test_mv_without_alias

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
===============================================================================
[ERROR]: allmydata.test.test_system.SystemTest.test_filesystem

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner
    rc = cli.dispatch[command](so)
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv
    rc = tahoe_mv.mv(options, mode="move")
  File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv
    print repr(data); nodetype, attrs = simplejson.loads(data)
  File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode

  File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode

simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
-------------------------------------------------------------------------------
Ran 828 tests in 366.156s

FAILED (skips=15, expectedFailures=3, failures=1, errors=6, successes=803)
1|jtang@x00:...llmydata-tahoe-1.8.0-r4803 $

in response to comment:3 I will need to download the trunk from the trac interface when I'm in work tomorrow morning to test again. I've so far been testing the near trunk branch from the git repo.

in reply to comment:5, i tried setting the no_proxy variable and leaving my http_proxy (and friends) variables alone, I now get errors such as... ``` Ln test_ln_with_nonexistent_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] test_ln_without_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] Manifest test_manifest_with_nonexistent_alias ... [OK] test_manifest_without_alias ... [OK] Mkdir test_mkdir ... [OK] test_mkdir_unicode ... [SKIPPED] test_mkdir_with_nonexistent_alias ... [OK] Mv test_mv_behavior ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] test_mv_with_nonexistent_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] test_mv_without_alias ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] Put ``` ``` allmydata.test.test_system SystemTest test_filesystem ... "<html><head><title>Page Not Found</title></head><body>Sorry, but I couldn't find the object you requested.</body></html>" [ERROR] ``` the end of the tests... just to be sure im pasting the correct error messages... ``` =============================================================================== [ERROR]: allmydata.test.test_cli.Ln.test_ln_with_nonexistent_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln rc = tahoe_mv.mv(options, mode="link") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Ln.test_ln_without_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 509, in ln rc = tahoe_mv.mv(options, mode="link") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_behavior Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_with_nonexistent_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_cli.Mv.test_mv_without_alias Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) =============================================================================== [ERROR]: allmydata.test.test_system.SystemTest.test_filesystem Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/threadpool.py", line 210, in _worker result = context.call(ctx, function, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/runner.py", line 100, in runner rc = cli.dispatch[command](so) File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/cli.py", line 504, in mv rc = tahoe_mv.mv(options, mode="move") File "/Users/jtang/sandbox/allmydata-tahoe-1.8.0-r4803/src/allmydata/scripts/tahoe_mv.py", line 33, in mv print repr(data); nodetype, attrs = simplejson.loads(data) File "build/bdist.macosx-10.6-universal/egg/simplejson/__init__.py", line 384, in loads File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 402, in decode File "build/bdist.macosx-10.6-universal/egg/simplejson/decoder.py", line 420, in raw_decode simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) ------------------------------------------------------------------------------- Ran 828 tests in 366.156s FAILED (skips=15, expectedFailures=3, failures=1, errors=6, successes=803) 1|jtang@x00:...llmydata-tahoe-1.8.0-r4803 $ ``` in response to comment:3 I will need to download the trunk from the trac interface when I'm in work tomorrow morning to test again. I've so far been testing the near trunk branch from the git repo.
davidsarah commented 2010-11-10 00:34:18 +00:00
Author
Owner

Hmm, I see the problem. Most of our code uses httplib (which does not make use of the http_proxy or HTTP_PROXY variables) to establish HTTP connections, but tahoe_mv.py uses urllib.urllopen [here]source:src/allmydata/scripts/tahoe_mv.py@4811#L31. That's why only the tests of tahoe mv are failing.

(There is another use of urllib.urlopen in source:src/allmydata/test/check_load.py, but that's not run by setup.py test.)

Hmm, I see the problem. Most of our code uses `httplib` (which does not make use of the http_proxy or HTTP_PROXY variables) to establish HTTP connections, but tahoe_mv.py uses `urllib.urllopen` [here]source:src/allmydata/scripts/tahoe_mv.py@4811#L31. That's why only the tests of `tahoe mv` are failing. (There is another use of `urllib.urlopen` in source:src/allmydata/test/check_load.py, but that's not run by `setup.py test`.)
davidsarah commented 2010-11-10 00:57:31 +00:00
Author
Owner

This could cause capabilities (specifically, the source arguments to tahoe mv or tahoe ln) to be leaked to the HTTP proxy server. The proxy server is not in our reliance diagram and therefore not supposed to be trusted.

This could cause capabilities (specifically, the source arguments to `tahoe mv` or `tahoe ln`) to be leaked to the HTTP proxy server. The proxy server is not in our [reliance diagram](http://tahoe-lafs.org/source/tahoe-lafs/trunk/docs/about.html) and therefore not supposed to be trusted.
tahoe-lafs added
code-frontend-cli
critical
and removed
code-frontend
major
labels 2010-11-10 00:57:31 +00:00
tahoe-lafs changed title from http proxying can break webapi (manifests as JSON decoding error in CLI tests) to http proxying can break webapi and leak capabilities (manifests as JSON decoding error in CLI tests) 2010-11-10 01:12:06 +00:00
davidsarah commented 2010-11-10 01:38:13 +00:00
Author
Owner

Attachment use-do-http-in-tahoe-mv.darcs.patch (16759 bytes) added

tahoe_mv.py: use do_http, not urllib.openurl, in order to avoid connecting to the webapi server via a proxy. refs #1253

**Attachment** use-do-http-in-tahoe-mv.darcs.patch (16759 bytes) added tahoe_mv.py: use do_http, not urllib.openurl, in order to avoid connecting to the webapi server via a proxy. refs #1253
davidsarah commented 2010-11-10 04:05:56 +00:00
Author
Owner

Attachment test-1253.darcs.patch (19035 bytes) added

test_system.py: test for 'tahoe mv' with the http_proxy and HTTP_PROXY variables set. refs #1253

**Attachment** test-1253.darcs.patch (19035 bytes) added test_system.py: test for 'tahoe mv' with the http_proxy and HTTP_PROXY variables set. refs #1253

I reviewed the patches and they look good. We still need a source:NEWS entry for this ticket. Here, please review this patch that I'm about to attach that adds a NEWS entry.

I reviewed the patches and they look good. We still need a source:NEWS entry for this ticket. Here, please review this patch that I'm about to attach that adds a NEWS entry.
warner was unassigned by zooko 2010-11-10 08:43:59 +00:00
zooko self-assigned this 2010-11-10 08:43:59 +00:00

Attachment news-1253.darcs.patch (16492 bytes) added

**Attachment** news-1253.darcs.patch (16492 bytes) added
zooko removed their assignment 2010-11-10 08:45:33 +00:00
warner was assigned by zooko 2010-11-10 08:45:33 +00:00
davidsarah commented 2010-11-10 19:13:27 +00:00
Author
Owner

Reviewed the news patch. Looks good, but please make the changes to source:docs/configuration.rst and source:misc/simulators/hashbasedsig.py into separate patches.

Reviewed the news patch. Looks good, but please make the changes to source:docs/configuration.rst and source:misc/simulators/hashbasedsig.py into separate patches.
zooko@zooko.com commented 2010-11-11 06:25:43 +00:00
Author
Owner

In changeset:531443792e3334a7:

docs: NEWS: refs #1253
In changeset:531443792e3334a7: ``` docs: NEWS: refs #1253 ```
david-sarah@jacaranda.org commented 2010-11-11 06:25:47 +00:00
Author
Owner

In changeset:01a53650510a9a4e:

test_system.py: test for 'tahoe mv' with the http_proxy and HTTP_PROXY variables set. refs #1253
In changeset:01a53650510a9a4e: ``` test_system.py: test for 'tahoe mv' with the http_proxy and HTTP_PROXY variables set. refs #1253 ```
david-sarah@jacaranda.org commented 2010-11-11 06:25:47 +00:00
Author
Owner

In changeset:cb777ad14f12a249:

tahoe_mv.py: use do_http, not urllib.openurl, in order to avoid connecting to the webapi server via a proxy. refs #1253
In changeset:cb777ad14f12a249: ``` tahoe_mv.py: use do_http, not urllib.openurl, in order to avoid connecting to the webapi server via a proxy. refs #1253 ```
jcftang commented 2010-11-11 09:12:26 +00:00
Author
Owner

I just did a checkout of the darcs repo, and re-ran the tests in my environment that failed the last time. The tests passes now.

I just did a checkout of the darcs repo, and re-ran the tests in my environment that failed the last time. The tests passes now.

Fixed in changeset:01a53650510a9a4e, changeset:cb777ad14f12a249. Thank you!

Fixed in changeset:01a53650510a9a4e, changeset:cb777ad14f12a249. Thank you!
zooko added the
fixed
label 2010-11-11 13:48:12 +00:00
zooko closed this issue 2010-11-11 13:48:12 +00:00

There is now a test failure on zomp (Mac OS 10.6) which looks like it might be caused by these patches:

http://tahoe-lafs.org/buildbot/builders/Zooko%20zomp%20Mac-amd64%2010.6%20py2.6/builds/208/steps/test/logs/stdio

[FAIL]
Traceback (most recent call last):
  File "/Users/tahoebuildslave/Zooko zomp Mac-amd64 10.6 py2.6/build/src/allmydata/test/test_system.py", line 1609, in _check_mv_with_http_proxy
    self.failUnlessEqual(rc_or_sig, 0, str(res))
twisted.trial.unittest.FailTest: ('', 'Traceback (most recent call last):\n  File "/Users/tahoebuildslave/Zooko zomp Mac-amd64 10.6 py2.6/build/support/bin/tahoe", line 9, in <module>\n    load_entry_point(\'allmydata-tahoe==1.8.0-r4818\', \'console_scripts\', \'tahoe\')()\n  File "/Library/Python/2.6/site-packages/allmydata/scripts/runner.py", line 114, in run\n    rc = runner(sys.argv[1:], install_node_control=install_node_control)\n  File "/Library/Python/2.6/site-packages/allmydata/scripts/runner.py", line 100, in runner\n    rc = cli.dispatch[command](so)\n  File "/Library/Python/2.6/site-packages/allmydata/scripts/cli.py", line 504, in mv\n    rc = tahoe_mv.mv(options, mode="move")\n  File "/Library/Python/2.6/site-packages/allmydata/scripts/tahoe_mv.py", line 31, in mv\n    data = urllib.urlopen(from_url + "?t=json").read()\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 87, in urlopen\n    return opener.open(url)\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 203, in open\n    return getattr(self, name)(url)\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 338, in open_http\n    h.endheaders()\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 868, in endheaders\n    self._send_output()\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 740, in _send_output\n    self.send(msg)\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 699, in send\n    self.connect()\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 683, in connect\n    self.timeout)\n  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 512, in create_connection\n    raise error, msg\nIOError: [Errno socket error] [Errno 60] Operation timed out\n', 1)
not equal:
a = 1
b = 0
There is now a test failure on zomp (Mac OS 10.6) which looks like it might be caused by these patches: <http://tahoe-lafs.org/buildbot/builders/Zooko%20zomp%20Mac-amd64%2010.6%20py2.6/builds/208/steps/test/logs/stdio> ``` [FAIL] Traceback (most recent call last): File "/Users/tahoebuildslave/Zooko zomp Mac-amd64 10.6 py2.6/build/src/allmydata/test/test_system.py", line 1609, in _check_mv_with_http_proxy self.failUnlessEqual(rc_or_sig, 0, str(res)) twisted.trial.unittest.FailTest: ('', 'Traceback (most recent call last):\n File "/Users/tahoebuildslave/Zooko zomp Mac-amd64 10.6 py2.6/build/support/bin/tahoe", line 9, in <module>\n load_entry_point(\'allmydata-tahoe==1.8.0-r4818\', \'console_scripts\', \'tahoe\')()\n File "/Library/Python/2.6/site-packages/allmydata/scripts/runner.py", line 114, in run\n rc = runner(sys.argv[1:], install_node_control=install_node_control)\n File "/Library/Python/2.6/site-packages/allmydata/scripts/runner.py", line 100, in runner\n rc = cli.dispatch[command](so)\n File "/Library/Python/2.6/site-packages/allmydata/scripts/cli.py", line 504, in mv\n rc = tahoe_mv.mv(options, mode="move")\n File "/Library/Python/2.6/site-packages/allmydata/scripts/tahoe_mv.py", line 31, in mv\n data = urllib.urlopen(from_url + "?t=json").read()\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 87, in urlopen\n return opener.open(url)\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 203, in open\n return getattr(self, name)(url)\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 338, in open_http\n h.endheaders()\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 868, in endheaders\n self._send_output()\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 740, in _send_output\n self.send(msg)\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 699, in send\n self.connect()\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 683, in connect\n self.timeout)\n File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 512, in create_connection\n raise error, msg\nIOError: [Errno socket error] [Errno 60] Operation timed out\n', 1) not equal: a = 1 b = 0 ```
zooko removed the
fixed
label 2010-11-13 08:01:29 +00:00
zooko reopened this issue 2010-11-13 08:01:29 +00:00
davidsarah commented 2010-11-14 03:33:46 +00:00
Author
Owner

source:src/allmydata/scripts/tahoe_mv.py@4818#L31 is not
"data = urllib.urlopen(from_url + "?t=json").read()". That's what it was
before the fix.

Somehow the code being tested has the test patch changeset:01a53650510a9a4e, but not the fix patch changeset:cb777ad14f12a249.

Oh, it is testing "/Library/Python/2.6/site-packages/allmydata/scripts/tahoe_mv.py". Wrong! This looks like the issue that we fixed for the test-from-egg and test-from-prefixdir steps in #1137.

Anyway, this failure is not evidence of this ticket being unfixed, so I'm closing it and opening a new ticket for the wrong-code problem.

source:src/allmydata/scripts/tahoe_mv.py@4818#L31 is not "`data = urllib.urlopen(from_url + "?t=json").read()`". That's what it was before the fix. Somehow the code being tested has the test patch changeset:01a53650510a9a4e, but not the fix patch changeset:cb777ad14f12a249. Oh, it is testing "/Library/Python/2.6/site-packages/allmydata/scripts/tahoe_mv.py". Wrong! This looks like the issue that we fixed for the test-from-egg and test-from-prefixdir steps in #1137. Anyway, this failure is not evidence of this ticket being unfixed, so I'm closing it and opening a new ticket for the wrong-code problem.
tahoe-lafs added the
fixed
label 2010-11-14 03:33:46 +00:00
davidsarah commented 2010-11-14 03:40:27 +00:00
Author
Owner

This (the testing-wrong-code problem) might be a duplicate of the remaining issue in #1246. Anyway, the new ticket for it is #1258.

This (the testing-wrong-code problem) might be a duplicate of the remaining issue in #1246. Anyway, the new ticket for it is #1258.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#1253
No description provided.