Skip to content

local dht-mirror crashes when used by resolver #5

@larrysalibra

Description

@larrysalibra

When loading a user via the resolver api and the resolver is pointed at the local dht-mirror, the mirror crashes with the following:

20.194.97', 6265], [422183507233675215322065753465792622079277507614L, '127.0.0.1', 6265], [704150276182964471193648795035255670539598999201L, '52.20.194.97', 6265], [263249755102705336534385640888110239692735563928L, '54.173.110.67', 6265]]
2016-03-03 20:51:45+0800 [ValueSpiderCrawl] [INFO] crawling with nearest: ([478991552955686315137479360805706512263202274430L, '52.20.194.97', 6265], [422183507233675215322065753465792622079277507614L, '127.0.0.1', 6265], [704150276182964471193648795035255670539598999201L, '52.20.194.97', 6265], [263249755102705336534385640888110239692735563928L, '54.173.110.67', 6265])
2016-03-03 20:51:45+0800 [DHTMirrorRPC,0,127.0.0.1] Unhandled Error
    Traceback (most recent call last):
      File "/srv/dht-mirror/venv/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 306, in addCallbacks
        self._runCallbacks()
      File "/srv/dht-mirror/venv/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 588, in _runCallbacks
        current.result = callback(current.result, *args, **kw)
      File "/srv/dht-mirror/venv/local/lib/python2.7/site-packages/txjsonrpc/netstring/jsonrpc.py", line 46, in <lambda>
        parser, unmarshaller))
      File "/srv/dht-mirror/venv/local/lib/python2.7/site-packages/txjsonrpc/netstring/jsonrpc.py", line 55, in _cbDispatch
        return defer.maybeDeferred(function, *args)
    --- <exception caught here> ---
      File "/srv/dht-mirror/venv/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred
        result = f(*args, **kw)
      File "/srv/dht-mirror/mirror/server.py", line 99, in jsonrpc_get
        return self.jsonrpc_dht_get(key)
      File "/srv/dht-mirror/mirror/server.py", line 136, in jsonrpc_dht_get
        resp['error'] = e
    exceptions.AttributeError: DeferredList instance has no attribute '__setitem__'

2016-03-03 20:51:45+0800 [KademliaProtocol] [INFO] finding neighbors of 422183507233675215322065753465792622079277507614 in local table
2016-03-03 20:51:45+0800 [KademliaProtocol] [INFO] got response from 127.0.0.1:6265, adding to router
2016-03-03 20:51:45+0800 [KademliaProtocol] [INFO] got response from 52.20.194.97:6265, adding to router
2016-03-03 20:51:45+0800 [KademliaProtocol] [INFO] got response from 52.20.194.97:6265, adding to router

Resolver works fine when pointed at mirror.blockstack.org, so perhaps it's a problem with my local config? See stacks-archive/atlas#98 for more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions