Skip to content

Instantly share code, notes, and snippets.

2014-11-10 04:48:03,540 - tornado.application - ERROR - Exception in callback None
Traceback (most recent call last):
File "/home/stilwellt/projects/OpenBazaar/env/lib/python2.7/site-packages/tornado/ioloop.py", line 837, in start
File "/home/stilwellt/projects/OpenBazaar/env/lib/python2.7/site-packages/tornado/stack_context.py", line 275, in null_wrapper
File "/home/stilwellt/projects/OpenBazaar/env/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 433, in _handle_events
File "/home/stilwellt/projects/OpenBazaar/env/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 465, in _handle_recv
File "/home/stilwellt/projects/OpenBazaar/env/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 407, in _run_callback
File "/home/stilwellt/projects/OpenBazaar/env/lib/python2.7/site-packages/tornado/stack_context.py", line 275, in null_wrapper
File "node/connection.py", line 285, in handle_recv
File "node/connection.py", line 371, in _on_raw_message
@benemorius
benemorius / gist:4a0319c4a4300fe216ce
Created October 28, 2014 17:57
develop crashes master
2014-10-28 12:56:38,560 - tornado.general - ERROR - Uncaught exception, closing connection.
Traceback (most recent call last):
File "/home/stilwellt/projects/OpenBazaar/env/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 407, in _run_callback
callback(*args, **kwargs)
File "/home/stilwellt/projects/OpenBazaar/env/lib/python2.7/site-packages/tornado/stack_context.py", line 275, in null_wrapper
return fn(*args, **kwargs)
File "/home/stilwellt/projects/OpenBazaar/node/transport.py", line 131, in handle_recv
self._on_raw_message(msg)
File "/home/stilwellt/projects/OpenBazaar/node/transport.py", line 836, in _on_raw_message
serialized = zlib.decompress(serialized)
@benemorius
benemorius / gist:a2a4b62e9ca2bde60c06
Last active August 29, 2015 14:06
incoming connection storm after stopping OB - 1.1k per second; ~500 kbit/s of outgoing RSTs in response
root@neo ~ # tcpdump -i enp3s5 src port 12345 > rststorm.log 2>/dev/null & sleep 60; killall tcpdump
root@neo ~ # cat rststorm.log | wc -l
66334
root@neo ~ # head rststorm.log
04:02:17.521924 IP neo.ihouse.openlabs.co.italk > 192.241.195.191.35063: Flags [R.], seq 0, ack 3087616814, win 0, length 0
04:02:17.523237 IP neo.ihouse.openlabs.co.italk > obi.vg.45101: Flags [R.], seq 0, ack 1306268335, win 0, length 0
04:02:17.523355 IP neo.ihouse.openlabs.co.italk > 96-32-46-235.dhcp.nwtn.ct.charter.com.25144: Flags [R.], seq 0, ack 1076217840, win 0, length 0
04:02:17.523379 IP neo.ihouse.openlabs.co.italk > 96-32-46-235.dhcp.nwtn.ct.charter.com.multip-msg: Flags [R.], seq 0, ack 1756872542, win 0, length 0
04:02:17.523497 IP neo.ihouse.openlabs.co.italk > 96-32-46-235.dhcp.nwtn.ct.charter.com.llsurfup-https: Flags [R.], seq 0, ack 1868950460, win 0, length 0
04:02:17.525526 IP neo.ihouse.openlabs.co.italk > bmrp-l7vz.accessdomain.com.59381: Flags [R.], seq 0, ack 771264703, win 0, length 0
@benemorius
benemorius / gist:01d2b86ec34afa732c57
Last active August 29, 2015 14:06
less verbose openbazaar logging
tail -fn0 logs/production.log | egrep --line-buffered "New peer seen; starting handshake|Failed to connect to new peer for handshake|INFO - Finished handshake; adding|No space in bucket to insert contact|Send failed - No peer route found to reach|splitBucket|BucketFull|sending pubkey|Out of nodes|Looking for node|Active search does not exist|No contact was found|Not sending message directly|adding to replacement cache|INFO - contacted|ublishing contracts|Replying ok|ON MESSAGE from|Sending message|Traceback"
This file has been truncated, but you can view the full file.
2014-09-04 08:20:33,821 - [1] CryptoPeerConnection - INFO - secret a5bfc3d04572fbaeb857f92c38ff9750ab8c874dbfb9b6e3d3d303883ce7d7ae
2014-09-04 08:20:33,921 - [1] CryptoPeerConnection - INFO - Creating Socket
2014-09-04 08:20:33,922 - [1] CryptoPeerConnection - INFO - contacted tcp://108.56.211.213:12345
2014-09-04 08:20:33,931 - [1] CryptoTransportLayer - INFO - Message Received [unknown]
2014-09-04 08:20:33,981 - [1] CryptoTransportLayer - DEBUG - Signature: 30450221009b21233d2b415e3e511ac5157056ab46e71f0209d438afa7dca1ca4135cdadac02201191912286d9f964a2dd6e5d92e448ae82626b31dd73747247afa749702be52d
2014-09-04 08:20:33,982 - [1] CryptoTransportLayer - DEBUG - Signed Data: {"senderNick": "Brian Hoffman", "type": "query_listings", "uri": "tcp://108.56.211.213:12345", "senderGUID": "eda4ed046f8117d99d63643ed00720e79ea
@benemorius
benemorius / gist:9e1b5dd062da2c50591d
Created September 3, 2014 23:28
nopeer3.seed.log
2014-09-03 18:18:48,326 - [1] CryptoTransportLayer - INFO - Message Received [hello]
2014-09-03 18:18:48,329 - [1] CryptoTransportLayer - INFO - ON MESSAGE from tcp://76.186.28.29:12345 {u'pubkey': u'04935dbb2221f85a90e9859c1000d7a6078bf703923c36c76dc3fb44b91993df698b105498260679819ef0982fb4cddf457250847d7ac40de7940f39b4e69da765', u'senderGUID': u'75eb99b7052fa11d42ee54ba0f70771f5be6defe', u'senderNick': u'banana', u'uri': u'tcp://76.186.28.29:12345', u'type': u'hello'}
2014-09-03 18:18:48,330 - [1] DHT - INFO - New peer seen; starting handshake - tcp://76.186.28.29:12345 75eb99b7052fa11d42ee54ba0f70771f5be6defe banana
2014-09-03 18:18:48,331 - [1] CryptoTransportLayer - DEBUG - Getting CryptoPeerConnection
GUID:75eb99b7052fa11d42ee54ba0f70771f5be6defe
URI:tcp://76.186.28.29:12345
Pubkey:04935dbb2221f85a90e9859c1000d7a6078bf703923c36c76dc3fb44b91993df698b105498260679819ef0982fb4c
diff --git a/node/p2p.py b/node/p2p.py
index afaa60e..9b6949f 100755
--- a/node/p2p.py
+++ b/node/p2p.py
@@ -143,7 +143,10 @@ class TransportLayer(object):
raise Exception(error_message)
else:
- self.socket.ipv6 = True
+ try: