<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi sometimes when i upload a file i get an error like this one:<br>
    <br>
    <a
href="http://cherry.kapitein.org:3456/uri/URI%3ADIR2%3Aatryfvztm6ostkcwp23h5jxcbe%3Aeuymosl2akijjb73haclcn5wc2ppahakmlzggstgqsoj4iizop2q/#tracebackEnd">
      <p class="error"><type 'exceptions.KeyError'>: (9,
        '\x7f\x07\x14\xb8\xcaj\x17`\x03\xb0\xb8\xc42(2\x10\xc1\xaa\x85\x88\x03\xcd\xb6\xb7\xa6\x89\x92\xbf\xd0\xc8(\xea',

        '\xd0\xdd\x95\x93\x94#\xce\xb9\xaaG6\x9f\xe1\x8e\x19\x9c', 1083,
        1083, 3, 5,
        '\x00\x00\x00\x00\x00\x00\x00\x00\t\x7f\x07\x14\xb8\xcaj\x17`\x03\xb0\xb8\xc42(2\x10\xc1\xaa\x85\x88\x03\xcd\xb6\xb7\xa6\x89\x92\xbf\xd0\xc8(\xea\xd0\xdd\x95\x93\x94#\xce\xb9\xaaG6\x9f\xe1\x8e\x19\x9c\x03\x05\x00\x00\x00\x00\x00\x00\x04;\x00\x00\x00\x00\x00\x00\x04;',

        (('enc_privkey', 1150), ('EOF', 2365), ('share_data', 789),
        ('signature', 399), ('block_hash_tree', 757),
        ('share_hash_chain', 655)))</p>
    </a>
    <div class="stackTrace">
      <div class="firstFrame">
        <div class="location">/usr/lib/python2.7/dist-packages/twisted/internet/defer.py,
          line 551 in <span class="function">_runCallbacks</span></div>
        <div class="snippet">
          <div class="snippetLine"><span class="lineno">549</span>
            <pre class="code">                    current._runningCallbacks = True
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">550</span>
            <pre class="code">                    try:
</pre>
          </div>
          <div class="snippetHighlightLine"><span class="lineno">551</span>
            <pre class="code">                        current.result = callback(current.result, *args, **kw)
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">552</span>
            <pre class="code">                    finally:
</pre>
          </div>
        </div>
      </div>
      <div class="frame">
        <div class="location">/home/tahoe/allmydata-tahoe-1.10.0/src/allmydata/mutable/filenode.py,
          line 854 in <span class="function"><lambda></span></div>
        <div class="snippet">
          <div class="snippetLine"><span class="lineno">852</span></div>
          <div class="snippetLine"><span class="lineno">853</span>
            <pre class="code">        d.addCallback(lambda ignored:
</pre>
          </div>
          <div class="snippetHighlightLine"><span class="lineno">854</span>
            <pre class="code">            self._modify_once(modifier, first_time))
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">855</span>
            <pre class="code">        def _retry(f):
</pre>
          </div>
        </div>
      </div>
      <div class="frame">
        <div class="location">/home/tahoe/allmydata-tahoe-1.10.0/src/allmydata/mutable/filenode.py,
          line 880 in <span class="function">_modify_once</span></div>
        <div class="snippet">
          <div class="snippetLine"><span class="lineno">878</span>
            <pre class="code">        # download_to_data is serialized, so we have to call this to
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">879</span>
            <pre class="code">        # avoid deadlock.
</pre>
          </div>
          <div class="snippetHighlightLine"><span class="lineno">880</span>
            <pre class="code">        d = self._try_to_download_data()
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">881</span>
            <pre class="code">        def _apply(old_contents):
</pre>
          </div>
        </div>
      </div>
      <div class="frame">
        <div class="location">/home/tahoe/allmydata-tahoe-1.10.0/src/allmydata/mutable/filenode.py,
          line 958 in <span class="function">_try_to_download_data</span></div>
        <div class="snippet">
          <div class="snippetLine"><span class="lineno">956</span>
            <pre class="code">        c = consumer.MemoryConsumer()
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">957</span>
            <pre class="code">        # modify will almost certainly write, so we need the privkey.
</pre>
          </div>
          <div class="snippetHighlightLine"><span class="lineno">958</span>
            <pre class="code">        d = self._read(c, fetch_privkey=True)
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">959</span>
            <pre class="code">        d.addCallback(lambda mc: "".join(mc.chunks))
</pre>
          </div>
        </div>
      </div>
      <div class="frame">
        <div class="location">/home/tahoe/allmydata-tahoe-1.10.0/src/allmydata/mutable/filenode.py,
          line 980 in <span class="function">_read</span></div>
        <div class="snippet">
          <div class="snippetLine"><span class="lineno">978</span>
            <pre class="code">        if self._history:
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">979</span>
            <pre class="code">            self._history.notify_retrieve(r.get_status())
</pre>
          </div>
          <div class="snippetHighlightLine"><span class="lineno">980</span>
            <pre class="code">        d = r.download(consumer, offset, size)
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">981</span>
            <pre class="code">        return d
</pre>
          </div>
        </div>
      </div>
      <div class="frame">
        <div class="location">/home/tahoe/allmydata-tahoe-1.10.0/src/allmydata/mutable/retrieve.py,
          line 244 in <span class="function">download</span></div>
        <div class="snippet">
          <div class="snippetLine"><span class="lineno">242</span>
            <pre class="code">        self._offset = offset
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">243</span>
            <pre class="code">        self._read_length = size
</pre>
          </div>
          <div class="snippetHighlightLine"><span class="lineno">244</span>
            <pre class="code">        self._setup_download()
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">245</span>
            <pre class="code">        self._setup_encoding_parameters()
</pre>
          </div>
        </div>
      </div>
      <div class="frame">
        <div class="location">/home/tahoe/allmydata-tahoe-1.10.0/src/allmydata/mutable/retrieve.py,
          line 284 in <span class="function">_setup_download</span></div>
        <div class="snippet">
          <div class="snippetLine"><span class="lineno">282</span>
            <pre class="code">        # first, which servers can we use?
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">283</span>
            <pre class="code">        versionmap = self.servermap.make_versionmap()
</pre>
          </div>
          <div class="snippetHighlightLine"><span class="lineno">284</span>
            <pre class="code">        shares = versionmap[self.verinfo]
</pre>
          </div>
          <div class="snippetLine"><span class="lineno">285</span>
            <pre class="code">        # this sharemap is consumed as we decide to send requests
</pre>
          </div>
        </div>
      </div>
    </div>
    <a name="tracebackEnd">
      <p class="error"><type 'exceptions.KeyError'>: (9,
        '\x7f\x07\x14\xb8\xcaj\x17`\x03\xb0\xb8\xc42(2\x10\xc1\xaa\x85\x88\x03\xcd\xb6\xb7\xa6\x89\x92\xbf\xd0\xc8(\xea',

        '\xd0\xdd\x95\x93\x94#\xce\xb9\xaaG6\x9f\xe1\x8e\x19\x9c', 1083,
        1083, 3, 5,
        '\x00\x00\x00\x00\x00\x00\x00\x00\t\x7f\x07\x14\xb8\xcaj\x17`\x03\xb0\xb8\xc42(2\x10\xc1\xaa\x85\x88\x03\xcd\xb6\xb7\xa6\x89\x92\xbf\xd0\xc8(\xea\xd0\xdd\x95\x93\x94#\xce\xb9\xaaG6\x9f\xe1\x8e\x19\x9c\x03\x05\x00\x00\x00\x00\x00\x00\x04;\x00\x00\x00\x00\x00\x00\x04;',

        (('enc_privkey', 1150), ('EOF', 2365), ('share_data', 789),
        ('signature', 399), ('block_hash_tree', 757),
        ('share_hash_chain', 655)))<br>
      </p>
      <p class="error">I am trying this in the pubgrid, wit 3-7-10
        encoding and connected to <span>13</span> of <span>40</span>
        known storage servers.
      </p>
    </a><a name="tracebackEnd">
      <p class="error">And after a couple of tries it just works.<br>
      </p>
      <p class="error">Any idea what goes wrong here?<br>
        i am running 1.10.0 on a RPI.<br>
      </p>
      <p class="error">Kind regards,<br>
        Ed<br>
      </p>
    </a>
  </body>
</html>