Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise KRPCTimeout #4

Open
d33tah opened this issue Mar 4, 2016 · 2 comments
Open

raise KRPCTimeout #4

d33tah opened this issue Mar 4, 2016 · 2 comments

Comments

@d33tah
Copy link

d33tah commented Mar 4, 2016

$ python lightdht.py
KRPC request to ('67.215.242.139', 6881)
Traceback (most recent call last):
  File "lightdht.py", line 312, in <module>
    with dht1:
  File "lightdht.py", line 135, in __enter__
    self.start()
  File "lightdht.py", line 123, in start
    DEFAULT_ID = self._server.ping(os.urandom(20), DEFAULT_NODE)['id']
  File "/tmp/lightdht/krpcserver.py", line 198, in ping
    return self._synctrans(q, node)
  File "/tmp/lightdht/krpcserver.py", line 183, in _synctrans
    raise KRPCTimeout
krpcserver.KRPCTimeout

How do I actually run it? Should I open any ports other than 54767/tcp and 54767/udp?

@drxzcl
Copy link
Owner

drxzcl commented Mar 10, 2016

I'm guessing the DEFAULT_NODE is no longer operational. Try using a known-good DHT peer (for example, your own torrent client) and see if the problem goes away.

@d33tah
Copy link
Author

d33tah commented Mar 10, 2016

@drxzcl: how about replacing DEFAULT_NODE with socket.gethostbyname('router.bittorrent.com')?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants