[tahoe-lafs-trac-stream] [tahoe-lafs] #1742: Error during POST: 500 Internal Server Error

tahoe-lafs trac at tahoe-lafs.org
Tue May 7 22:27:43 UTC 2013


#1742: Error during POST: 500 Internal Server Error
-------------------------+-------------------------------------------------
     Reporter:           |      Owner:  daira
  killyourtv             |     Status:  assigned
         Type:  defect   |  Milestone:  undecided
     Priority:  major    |    Version:  1.9.1
    Component:  code-    |   Keywords:  i2p mutable availability
  mutable                |  preservation
   Resolution:           |
Launchpad Bug:           |
-------------------------+-------------------------------------------------

Old description:

> Using tahoe from the 1.9.2 darcs branch on I2P, I received the following
> copying files to the grid [edited for formatting]:
>
> {{{
> Error during POST: 500 Internal Server Error
> "Traceback (most recent call last):
>   File \"/usr/lib/python2.7/dist-packages/twisted/internet/base.py\",
> line 800, in runUntilCurrent
>     call.func(*call.args, **call.kw)
>   File \"/usr/lib/pymodules/python2.7/foolscap/eventual.py\", line 26, in
> _turn
>     cb(*args, **kwargs)
>   File \"/usr/lib/python2.7/dist-packages/twisted/internet/defer.py\",
> line 362, in callback
>     self._startRunCallbacks(result)
>   File \"/usr/lib/python2.7/dist-packages/twisted/internet/defer.py\",
> line 458, in _startRunCallbacks
>     self._runCallbacks()
> --- <exception caught here> ---
>   File \"/usr/lib/python2.7/dist-packages/twisted/internet/defer.py\",
> line 545, in _runCallbacks
>     current.result = callback(current.result, *args, **kw)
>   File \"$HOME/i2p-tahoe/tahoe-lafs-
> i2p/src/allmydata/mutable/filenode.py\", line 859, in <lambda>
>     self._modify_once(modifier, first_time))
>   File \"$HOME/i2p-tahoe/tahoe-lafs-
> i2p/src/allmydata/mutable/filenode.py\", line 885, in _modify_once
>     d = self._try_to_download_data()
>   File \"$HOME/i2p-tahoe/tahoe-lafs-
> i2p/src/allmydata/mutable/filenode.py\", line 963, in
> _try_to_download_data
>     d = self._read(c, fetch_privkey=True)
>   File \"$HOME/i2p-tahoe/tahoe-lafs-
> i2p/src/allmydata/mutable/filenode.py\", line 985, in _read
>     d = r.download(consumer, offset, size)
>   File \"$HOME/i2p-tahoe/tahoe-lafs-
> i2p/src/allmydata/mutable/retrieve.py\", line 244, in download
>     self._setup_download()
>   File \"$HOME/i2p-tahoe/tahoe-lafs-
> i2p/src/allmydata/mutable/retrieve.py\", line 301, in _setup_download
>     assert len(self.remaining_sharemap) >= k
> exceptions.AssertionError:
> "
> }}}
>

> {{{
> allmydata-tahoe: 1.9.0-r5497,
> foolscap: 0.6.3,
> pycryptopp: 0.6.0.1206569328141510525648634803928199668821045408958,
> zfec: 1.4.24,
> Twisted: 11.1.0,
> Nevow: 0.10.0,
> zope.interface: unknown,
> python: 2.7.3rc2,
> platform: Linux-debian_wheezy/sid-x86_64-64bit_ELF,
> pyOpenSSL: 0.13,
> simplejson: 2.5.2,
> pycrypto: 2.5,
> pyasn1: unknown,
> mock: 0.8.0,
> sqlite3: 2.6.0 [sqlite 3.7.11],
> setuptools: 0.6c16dev3
> }}}

New description:

 Using tahoe from the 1.9.2 darcs branch on I2P, I received the following
 copying files to the grid [edited for formatting]:

 {{{
 Error during POST: 500 Internal Server Error
 "Traceback (most recent call last):
   File \"/usr/lib/python2.7/dist-packages/twisted/internet/base.py\", line
 800, in runUntilCurrent
     call.func(*call.args, **call.kw)
   File \"/usr/lib/pymodules/python2.7/foolscap/eventual.py\", line 26, in
 _turn
     cb(*args, **kwargs)
   File \"/usr/lib/python2.7/dist-packages/twisted/internet/defer.py\",
 line 362, in callback
     self._startRunCallbacks(result)
   File \"/usr/lib/python2.7/dist-packages/twisted/internet/defer.py\",
 line 458, in _startRunCallbacks
     self._runCallbacks()
 --- <exception caught here> ---
   File \"/usr/lib/python2.7/dist-packages/twisted/internet/defer.py\",
 line 545, in _runCallbacks
     current.result = callback(current.result, *args, **kw)
   File \"$HOME/i2p-tahoe/tahoe-lafs-
 i2p/src/allmydata/mutable/filenode.py\", line 859, in <lambda>
     self._modify_once(modifier, first_time))
   File \"$HOME/i2p-tahoe/tahoe-lafs-
 i2p/src/allmydata/mutable/filenode.py\", line 885, in _modify_once
     d = self._try_to_download_data()
   File \"$HOME/i2p-tahoe/tahoe-lafs-
 i2p/src/allmydata/mutable/filenode.py\", line 963, in
 _try_to_download_data
     d = self._read(c, fetch_privkey=True)
   File \"$HOME/i2p-tahoe/tahoe-lafs-
 i2p/src/allmydata/mutable/filenode.py\", line 985, in _read
     d = r.download(consumer, offset, size)
   File \"$HOME/i2p-tahoe/tahoe-lafs-
 i2p/src/allmydata/mutable/retrieve.py\", line 244, in download
     self._setup_download()
   File \"$HOME/i2p-tahoe/tahoe-lafs-
 i2p/src/allmydata/mutable/retrieve.py\", line 301, in _setup_download
     assert len(self.remaining_sharemap) >= k
 exceptions.AssertionError:
 "
 }}}


 {{{
 allmydata-tahoe: 1.9.0-r5497,
 foolscap: 0.6.3,
 pycryptopp: 0.6.0.1206569328141510525648634803928199668821045408958,
 zfec: 1.4.24,
 Twisted: 11.1.0,
 Nevow: 0.10.0,
 zope.interface: unknown,
 python: 2.7.3rc2,
 platform: Linux-debian_wheezy/sid-x86_64-64bit_ELF,
 pyOpenSSL: 0.13,
 simplejson: 2.5.2,
 pycrypto: 2.5,
 pyasn1: unknown,
 mock: 0.8.0,
 sqlite3: 2.6.0 [sqlite 3.7.11],
 setuptools: 0.6c16dev3
 }}}

--

Comment (by zooko):

 Tv of Sv carefully and repeatdly confirmed, at my request, that after he
 gets this exception that the new child //does// exist in the directory! So
 this exception is somehow not preventing the directory from being updated!

 He wrote:

     Yeah, I confirmed it again just now.  I took a file already
     backed up, 100k11, reversed it with tac, saved it a different
     dir in TestFiles1M as 100k12, did tahoe backup, and got the
     error message.  I did tahoe ls -l and can see 100k12 in the
     correct location, and can successfully see its contents with
     tahoe get.

     Here's tahoe ls -l after and before:

 {{{
 [root at ls-126 ~]# tahoe ls -l Ss1/Archives/2013-05-07_21:26:17Z
 -r-- 104726 May 01 10:26  100k1
 -r-- 104433 May 07 14:23 100k12
 -r-- 103983 May 01 10:26  100k2
 -r-- 104187 May 01 10:26  100k3
 -r-- 104850 May 01 10:26  100k4
 -r-- 104699 May 03 11:42  100k5
 dr-x      - May 01 10:26     d1
 dr-x      - May 01 10:26     d2
 dr-x      - May 01 10:27     d3
 [root at ls-126 ~]# tahoe ls -l Ss1/Archives/2013-05-07_00:28:11Z
 -r-- 104726 May 01 10:26 100k1
 -r-- 103983 May 01 10:26 100k2
 -r-- 104187 May 01 10:26 100k3
 -r-- 104850 May 01 10:26 100k4
 -r-- 104699 May 03 11:42 100k5
 dr-x      - May 01 10:26    d1
 dr-x      - May 01 10:26    d2
 dr-x      - May 01 10:27    d3
 }}}

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


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