koinos / koinos-p2p

The p2p microservice orchestrates the distribution of blocks and transactions between peers.
MIT License
6 stars 4 forks source link

[BUG]: Crash when computer sleeps #259

Closed tenonedesign closed 1 year ago

tenonedesign commented 1 year ago

Is there an existing issue for this?

Current behavior

Pasting in two instances of a crash

FIRST INSTANCE__

[35;1mkoinos-p2p-1                  | 2022-10-20 22:52:54.164412 (p2p.Koinos) [p2p/gossip.go:227] <info>: Publishing transaction - ID: 0x122071044c4ab2fc1de116b52f77be65c1f326af91b9c906a513ff2bee046f1f577c
koinos-mempool-1              | 2022-10-20 22:52:54.169309 (mempool.Koinos) [mempool.cpp:352] <info>: Transaction added to mempool: 0x1220c5e6d5150d8724fb151ad9bb447a73bffa924a57443cee23e11f1bd614332858
koinos-p2p-1                  | 2022-10-20 22:52:54.165946 (p2p.Koinos) [p2p/gossip.go:399] <info>: Gossiped transaction applied - ID: 0x1220c5e6d5150d8724fb151ad9bb447a73bffa924a57443cee23e11f1bd614332858 from peer QmPPxeZS7UvBR4MMNxbTM3RGPdkjR7DCDazgzPDSYwgj1j
koinos-mempool-1              | 2022-10-20 22:52:54.173222 (mempool.Koinos) [mempool.cpp:352] <info>: Transaction added to mempool: 0x1220f926c862c897563f1ecc9ace4a472c1486b754572b941a59ca392e2451af4c13
koinos-p2p-1                  | 2022-10-20 22:52:54.175131 (p2p.Koinos) [p2p/gossip.go:399] <info>: Gossiped transaction applied - ID: 0x1220f926c862c897563f1ecc9ace4a472c1486b754572b941a59ca392e2451af4c13 from peer QmPPxeZS7UvBR4MMNxbTM3RGPdkjR7DCDazgzPDSYwgj1j
koinos-p2p-1                  | 2022-10-20 22:52:54.176304 (p2p.Koinos) [p2p/gossip.go:227] <info>: Publishing transaction - ID: 0x1220c5e6d5150d8724fb151ad9bb447a73bffa924a57443cee23e11f1bd614332858
koinos-chain-1                | 2022-10-20 22:52:54.184163 (chain.Koinos) [controller.cpp:584] <info>: Transaction application successful - ID: 0x1220963aae8fdf3cc676c584387ff130c4a3fd69a556fb3608dce8f210dd126f7148
koinos-mempool-1              | 2022-10-20 22:52:54.189782 (mempool.Koinos) [mempool.cpp:352] <info>: Transaction added to mempool: 0x1220963aae8fdf3cc676c584387ff130c4a3fd69a556fb3608dce8f210dd126f7148
koinos-p2p-1                  | 2022-10-20 22:52:54.182037 (p2p.Koinos) [p2p/gossip.go:227] <info>: Publishing transaction - ID: 0x1220f926c862c897563f1ecc9ace4a472c1486b754572b941a59ca392e2451af4c13
koinos-p2p-1                  | 2022-10-20 22:52:54.191742 (p2p.Koinos) [p2p/gossip.go:399] <info>: Gossiped transaction applied - ID: 0x1220963aae8fdf3cc676c584387ff130c4a3fd69a556fb3608dce8f210dd126f7148 from peer QmPPxeZS7UvBR4MMNxbTM3RGPdkjR7DCDazgzPDSYwgj1j
koinos-p2p-1                  | 2022-10-20 22:52:54.196952 (p2p.Koinos) [p2p/gossip.go:227] <info>: Publishing transaction - ID: 0x1220963aae8fdf3cc676c584387ff130c4a3fd69a556fb3608dce8f210dd126f7148
koinos-p2p-1                  | 2022-10-20 22:52:55.212145 (p2p.Koinos) [p2p/connection_manager.go:203] <info>: Attempting to connect to peer QmcGiTpSm6YrmYo3rWoqrCPez2aJY4VdraBQsGsZKwFRuG
koinos-mempool-1              | 2022-10-20 23:01:46.311094 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x12209bcd8457318c77e91e2ad552fe078e2a55d7ddb60c8366329aba7ee9dd4da4b9
koinos-amqp-1                 | 2022-10-20 23:01:46.342168+00:00 [warning] <0.1287.0> closing AMQP connection <0.1287.0> (172.18.0.10:41936 -> 172.18.0.3:5672, vhost: '/', user: 'guest'):
koinos-amqp-1                 | 2022-10-20 23:01:46.342168+00:00 [warning] <0.1287.0> client unexpectedly closed TCP connection
koinos-amqp-1                 | 2022-10-20 23:01:46.047997+00:00 [warning] <0.1380.0> closing AMQP connection <0.1380.0> (172.18.0.5:58188 -> 172.18.0.3:5672, vhost: '/', user: 'guest'):
koinos-amqp-1                 | 2022-10-20 23:01:46.047997+00:00 [warning] <0.1380.0> client unexpectedly closed TCP connection
koinos-transaction_store-1    | 2022-10-20 23:01:46.309856 (transaction_store.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/request_handler.go:95] <info>: Connecting request handler to AMQP server amqp://guest:guest@amqp:5672/
koinos-amqp-1                 | 2022-10-20 23:01:46.054985+00:00 [warning] <0.1316.0> closing AMQP connection <0.1316.0> (172.18.0.9:47596 -> 172.18.0.3:5672, vhost: '/', user: 'guest'):
koinos-amqp-1                 | 2022-10-20 23:01:46.054985+00:00 [warning] <0.1316.0> client unexpectedly closed TCP connection
koinos-mempool-1              | 2022-10-20 23:01:46.063922 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x12201e62a92eca7a4e495c5478fdea48f56c3b164b141522f1b0562db6acd309f729
koinos-amqp-1                 | 2022-10-20 23:01:46.055967+00:00 [warning] <0.1313.0> closing AMQP connection <0.1313.0> (172.18.0.9:47594 -> 172.18.0.3:5672, vhost: '/', user: 'guest'):
koinos-amqp-1                 | 2022-10-20 23:01:46.055967+00:00 [warning] <0.1313.0> client unexpectedly closed TCP connection
koinos-amqp-1                 | 2022-10-20 23:01:46.058127+00:00 [warning] <0.1377.0> closing AMQP connection <0.1377.0> (172.18.0.7:44336 -> 172.18.0.3:5672, vhost: '/', user: 'guest'):
koinos-amqp-1                 | 2022-10-20 23:01:46.058127+00:00 [warning] <0.1377.0> client unexpectedly closed TCP connection
koinos-amqp-1                 | 2022-10-20 23:01:46.058799+00:00 [warning] <0.1283.0> closing AMQP connection <0.1283.0> (172.18.0.6:56522 -> 172.18.0.3:5672, vhost: '/', user: 'guest'):
koinos-amqp-1                 | 2022-10-20 23:01:46.058799+00:00 [warning] <0.1283.0> client unexpectedly closed TCP connection
koinos-mempool-1              | 2022-10-20 23:01:46.067188 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220b90b055e6895f4a9deda8f9bea8154da04d01898bbdea023410a434637ecc071
koinos-block_store-1          | 2022-10-20 23:01:46.055377 (block_store.Koinos) [koinos-mq-golang@v0.0.0-20220906183403-59a5f98d6aab/request_handler.go:92] <info>: Connecting request handler to AMQP server amqp://guest:guest@amqp:5672/
koinos-transaction_store-1    | 2022-10-20 23:01:46.055183 (transaction_store.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/connection.go:85] <info>: Dialing AMQP server amqp://guest:guest@amqp:5672/
koinos-amqp-1                 | 2022-10-20 23:01:46.071415+00:00 [info] <0.1451.0> accepting AMQP connection <0.1451.0> (172.18.0.10:41966 -> 172.18.0.3:5672)
koinos-mempool-1              | 2022-10-20 23:01:46.072189 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x12205d64c2e35dd7f21e5e5442cd8ac07140eebb5a19da995c32bcbff06c838f1cdc
koinos-block_store-1          | 2022-10-20 23:01:46.067296 (block_store.Koinos) [koinos-mq-golang@v0.0.0-20220906183403-59a5f98d6aab/connection.go:85] <info>: Dialing AMQP server amqp://guest:guest@amqp:5672/
koinos-mempool-1              | 2022-10-20 23:01:46.073201 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220460abb1004d89ffee7880d394df123f8b0e9a88c1a3bee9cc6759d910f6003ac
koinos-mempool-1              | 2022-10-20 23:01:46.073962 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220f817d7611b9b54ea3489c7d7cd348dac639ffec98ffc70e6d6a8fefdff870ba6
koinos-mempool-1              | 2022-10-20 23:01:46.074619 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x122092ba929becfb33f8989a99f28053404b8e0dd7758ccd228a437784eeb140751a
koinos-mempool-1              | 2022-10-20 23:01:46.075747 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x122056cdd26a3afc24e2ae76279de3111148a531855a2998efe0acfbc7eb088c7d35
koinos-amqp-1                 | 2022-10-20 23:01:46.075945+00:00 [info] <0.1451.0> connection <0.1451.0> (172.18.0.10:41966 -> 172.18.0.3:5672): user 'guest' authenticated and granted access to vhost '/'
koinos-mempool-1              | 2022-10-20 23:01:46.076562 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220545af70605ba91855ec9fba3b7c70a0946727ae1db6070ae838ae4b968369c65
koinos-amqp-1                 | 2022-10-20 23:01:46.075503+00:00 [info] <0.1454.0> accepting AMQP connection <0.1454.0> (172.18.0.6:56556 -> 172.18.0.3:5672)
koinos-mempool-1              | 2022-10-20 23:01:46.077322 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220088a5c2a3d402aa906675c5c49f9679aa22ddf2f1f6c7a9fbb278301672373bb
koinos-mempool-1              | 2022-10-20 23:01:46.080017 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x122078bcf460c21ca731070f92dcfcdcca02eb673c8969d9d98beaf6e7cc72ee1f65
koinos-amqp-1                 | 2022-10-20 23:01:46.080258+00:00 [info] <0.1454.0> connection <0.1454.0> (172.18.0.6:56556 -> 172.18.0.3:5672): user 'guest' authenticated and granted access to vhost '/'
koinos-mempool-1              | 2022-10-20 23:01:46.081252 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x12203631dc50790203f34fe6580ff263cd5bbec9a5e5f6efd04b05a734e8ad953b67
koinos-mempool-1              | 2022-10-20 23:01:46.082841 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x12202769a6c4b4d36601d5880a47948c463159c9a886d1920b93321dc905699f5727
koinos-mempool-1              | 2022-10-20 23:01:46.085216 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220df2d6e23b054ef5d7ca78dd2573ed40ee945c2b1eaa60b7329993855948b1dfe
koinos-transaction_store-1    | 2022-10-20 23:01:46.085467 (transaction_store.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/request_handler.go:124] <info>: Request handler connected
koinos-mempool-1              | 2022-10-20 23:01:46.086689 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220d5c145a0f86fe73022d9aede9437e900ad7ed503e68fae8e793d543ee7cc3d4c
koinos-mempool-1              | 2022-10-20 23:01:46.087460 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220c2152923167654bccf784ee2197c3dc259d7c6c87558aa38368c707c6e261117
koinos-mempool-1              | 2022-10-20 23:01:46.088073 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220226ae914714c89cdd1a3ea832dd4ee7b4276850d4eb5def7fcac02fb584d8a16
koinos-mempool-1              | 2022-10-20 23:01:46.089020 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x12206e2a59a8309b1e8b99cad3b1ec045175b963f172e48663965a1ca2bf7a02f493
koinos-mempool-1              | 2022-10-20 23:01:46.090103 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x12200317feb4f39a9ef8bb4a0182bf8adbd254e978db5932b5cbc7311ace0774141a
koinos-mempool-1              | 2022-10-20 23:01:46.090727 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x122037b7b2daa21633c99627406df820f9400b29a31596142222ae03b31bbf5f7d0e
koinos-mempool-1              | 2022-10-20 23:01:46.091203 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x122053119588fb4cd6a2653ef1d5fc97fac7a581558c66840eef33f85f63cdda7f48
koinos-mempool-1              | 2022-10-20 23:01:46.092238 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x122023fc9e26cda57dfabe90b3380e7e62b958303ce2475f2322499fd46d644013dd
koinos-mempool-1              | 2022-10-20 23:01:46.092927 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220edb13905feee51fe2574e2d36a7a0aa9d679accc16936d5afbdf7ec1672f61ad
koinos-block_store-1          | 2022-10-20 23:01:46.092335 (block_store.Koinos) [koinos-mq-golang@v0.0.0-20220906183403-59a5f98d6aab/request_handler.go:121] <info>: Request handler connected
koinos-mempool-1              | 2022-10-20 23:01:46.093465 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x122057b79c9f01ca79799699a26081ea3c35b8c1d67119c449cb8935077d425be735
koinos-mempool-1              | 2022-10-20 23:01:46.093959 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220bf22053f3492bba248465aeb78abd5137b8b45782b281aed69597e82d84ce216
koinos-mempool-1              | 2022-10-20 23:01:46.094378 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x122074ec3e1527060e101ec4ef2ae4310d6f7007209533ba28673df00c70b7c8a659
koinos-mempool-1              | 2022-10-20 23:01:46.095077 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220d7b402709ecbbfb04e6cab83dd19d447496ce7e611da372b553d7093c55f79ee
koinos-mempool-1              | 2022-10-20 23:01:46.095729 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x122071044c4ab2fc1de116b52f77be65c1f326af91b9c906a513ff2bee046f1f577c
koinos-mempool-1              | 2022-10-20 23:01:46.096544 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220c5e6d5150d8724fb151ad9bb447a73bffa924a57443cee23e11f1bd614332858
koinos-mempool-1              | 2022-10-20 23:01:46.097518 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220f926c862c897563f1ecc9ace4a472c1486b754572b941a59ca392e2451af4c13
koinos-mempool-1              | 2022-10-20 23:01:46.098220 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x1220963aae8fdf3cc676c584387ff130c4a3fd69a556fb3608dce8f210dd126f7148
2022-10-20 19:01:46.332169-0400 Koinos Node[61083:7359164] [tcp] tcp_input [C1115.1.1:3] flags=[R] seq=2260741351, ack=0, win=0 state=ESTABLISHED rcv_nxt=2260741351, snd_una=1630906583
2022-10-20 19:01:46.332442-0400 Koinos Node[61083:7359164] [tcp] tcp_input [C1105.1.1:3] flags=[R] seq=2685905296, ack=0, win=0 state=FIN_WAIT_1 rcv_nxt=2685905296, snd_una=2215684626
2022-10-20 19:01:46.332510-0400 Koinos Node[61083:7359164] [tcp] tcp_input [C1112.1.1:3] flags=[R] seq=692284359, ack=0, win=0 state=FIN_WAIT_1 rcv_nxt=692284359, snd_una=2212535733
2022-10-20 19:01:46.332722-0400 Koinos Node[61083:7359164] [connection] nw_read_request_report [C1115] Receive failed with error "Connection reset by peer"
2022-10-20 19:01:46.371717-0400 Koinos Node[61083:7359164] [tcp] tcp_input [C1117.1.1:3] flags=[R] seq=2249119736, ack=0, win=0 state=ESTABLISHED rcv_nxt=2249119736, snd_una=2150949095
2022-10-20 19:01:46.372293-0400 Koinos Node[61083:7359164] [tcp] tcp_input [C1110.1.1:3] flags=[R] seq=2452584577, ack=0, win=0 state=FIN_WAIT_1 rcv_nxt=2452584577, snd_una=828233002
2022-10-20 19:01:46.372401-0400 Koinos Node[61083:7359164] [tcp] tcp_input [C1116.1.1:3] flags=[R] seq=108278850, ack=0, win=0 state=ESTABLISHED rcv_nxt=108278850, snd_una=454035378
koinos-p2p-1                  | 2022-10-20 23:01:46.348201 (p2p.Koinos) [p2p/connection_manager.go:206] <info>: Error connecting to peer QmcGiTpSm6YrmYo3rWoqrCPez2aJY4VdraBQsGsZKwFRuG: failed to dial QmcGiTpSm6YrmYo3rWoqrCPez2aJY4VdraBQsGsZKwFRuG:
koinos-p2p-1                  |   * [/ip4/139.144.17.121/tcp/8888] failed to negotiate security protocol: read tcp4 172.18.0.9:8888->139.144.17.121:8888: read: connection reset by peer
koinos-p2p-1                  |   * [/ip4/172.31.0.6/tcp/8888] dial tcp4 0.0.0.0:8888->172.31.0.6:8888: i/o timeout
koinos-jsonrpc-1              | 2022-10-20 23:01:46.343992022-10-20 19:01:46.372741-0400 Koinos Node[61083:7359164] [tcp] tcp_input [C1111.1.1:3] flags=[R] seq=4271742345, ack=0, win=0 state=FIN_WAIT_1 rcv_nxt=4271742345, snd_una=958441882
2022-10-20 19:01:46.373041-0400 Koinos Node[61083:7359164] [tcp] tcp_input [C1107.1.1:3] flags=[R] seq=2574405344, ack=0, win=0 state=FIN_WAIT_1 rcv_nxt=2574405344, snd_una=913355864
2022-10-20 19:01:46.373151-0400 Koinos Node[61083:7359164] [tcp] tcp_input [C1106.1.1:3] flags=[R] seq=1687494901, ack=0, win=0 state=FIN_WAIT_1 rcv_nxt=1687494901, snd_una=2076022855
1 (jsonrpc.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/client.go:115] <info>: Connecting client to AMQP server amqp://guest:guest@amqp:5672/
koinos-contract_meta_store-1  | 2022-10-20 23:01:46.338195 (contract_meta_store.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/request_handler.go:95] <info>: Connecting request handler to AMQP server amqp://guest:guest@amqp:5672/
2022-10-20 19:01:46.374271-0400 Koinos Node[61083:7359164] [connection] nw_read_request_report [C1117] Receive failed with error "Connection reset by peer"
2022-10-20 19:01:46.374963-0400 Koinos Node[61083:7359164] [connection] nw_read_request_report [C1116] Receive failed with error "Connection reset by peer"
2022-10-20 19:01:46.375183-0400 Koinos Node[61083:7359164] [connection] nw_flow_add_write_request [C1115.1.1 144.76.219.133:443 failed channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] cannot accept write requests
2022-10-20 19:01:46.375266-0400 Koinos Node[61083:7359164] [connection] nw_write_request_report [C1115] Send failed with error "Socket is not connected"
koinos-contract_meta_store-1  | 2022-10-20 23:01:46.361836 (contract_meta_store.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/connection.go:85] <info>: Dialing AMQP server amqp://guest:guest@amqp:5672/
koinos-p2p-1                  | 2022-10-20 23:01:46.052520 (p2p.Koinos) [p2p/gossip.go:211] <info>: Stopping gossip mode
2022-10-20 19:01:46.377955-0400 Koinos Node[61083:7356819] Task <DFF16554-8729-4D07-A7B4-51586ECD3488>.<1> HTTP load failed, 210/0 bytes (error code: -1005 [1:54])
2022-10-20 19:01:46.378308-0400 Koinos Node[61083:7352601] Task <DFF16554-8729-4D07-A7B4-51586ECD3488>.<1> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=54, NSUnderlyingError=0x6000021331b0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_kCFStreamErrorCodeKey=54, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <DFF16554-8729-4D07-A7B4-51586ECD3488>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <DFF16554-8729-4D07-A7B4-51586ECD3488>.<1>"
), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://api.koinosblocks.com/, NSErrorFailingURLKey=https://api.koinosblocks.com/, _kCFStreamErrorDomainKey=1}
2022-10-20 19:01:46.378347-0400 Koinos Node[61083:7transport error
359164] Task <3E80E270-1F96-4DFB-8594-F9A93619AEBF>.<1> HTTP load failed, 322/0 bytes (error code: -1005 [1:54])
2022-10-20 19:01:46.378756-0400 Koinos Node[61083:7359164] Task <CB4A830A-0B64-4D28-86FC-28B53762E989>.<1> HTTP load failed, 322/0 bytes (error code: -1005 [1:54])
2022-10-20 19:01:46.379063-0400 Koinos Node[61083:7359163] Task <3E80E270-1F96-4DFB-8594-F9A93619AEBF>.<1> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=54, NSUnderlyingError=0x600002168ba0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_kCFStreamErrorCodeKey=54, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3E80E270-1F96-4DFB-8594-F9A93619AEBF>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <3E80E270-1F96-4DFB-8594-F9A93619AEBF>.<1>"
), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://api.koinosblocks.com/, NSErrorFailingURLKey=https://api.koinosblocks.com/, _kCFStreamErrorDomainKey=1}
2022-10-20 19:01:46.379509-0400 Koinos Node[61083:7359164] Task <CB4A830A-0B64-4D28-86FC-28B53762E989>.<1> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=54, NSUnderlyingError=0x6000023154d0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_kCFStreamErrorCodeKey=54, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <CB4A830A-0B64-4D28-86FC-28B53762E989>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <CB4A830A-0B64-4D28-86FC-28B53762E989>.<1>"
), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://api.koinosblocks.com/, NSErrorFailingURLKey=https://api.koinosblocks.com/, _kCFStreamErrorDomainKey=1}
koinos-amqp-1                 | 2022-10-20 23:01:46.367324+00:00 [info] <0.1494.0> accepting AMQP connection <0.1494.0> (172.18.0.7:44360 -> 172.18.0.3:5672)
koinos-jsonrpc-1              | 2022-10-20 23:01:46.362243 (jsonrpc.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/connection.go:85] <info>: Dialing AMQP server amqp://guest:guest@amqp:5672/
koinos-p2p-1                  | 2022-10-20 23:01:46.365508 (p2p.Koinos) [p2p/gossip.go:132] <warn>: Error getting message for topic koinos.blocks: context canceled
koinos-p2p-1                  | 2022-10-20 23:01:46.052936 (p2p.Koinos) [node/node.go:372] <info>: My address:
koinos-amqp-1                 | 2022-10-20 23:01:46.370936+00:00 [info] <0.1497.0> accepting AMQP connection <0.1497.0> (172.18.0.5:58212 -> 172.18.0.3:5672)
koinos-amqp-1                 | 2022-10-20 23:01:46.372317+00:00 [info] <0.1494.0> connection <0.1494.0> (172.18.0.7:44360 -> 172.18.0.3:5672): user 'guest' authenticated and granted access to vhost '/'
koinos-p2p-1                  | 2022-10-20 23:01:46.052974 (p2p.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/request_handler.go:95] <info>: Connecting request handler to AMQP server amqp://guest:guest@amqp:5672/
transport error
transport error
koinos-amqp-1                 | 2022-10-20 23:01:46.377525+00:00 [info] <0.1497.0> connection <0.1497.0> (172.18.0.5:58212 -> 172.18.0.3:5672): user 'guest' authenticated and granted access to vhost '/'
koinos-p2p-1                  | 2022-10-20 23:01:46.053194 (p2p.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/client.go:115] <info>: Connecting client to AMQP server amqp://guest:guest@amqp:5672/
koinos-p2p-1                  | 2022-10-20 23:01:46.283257 (p2p.Koinos) [p2p/connection_manager.go:197] <info>: Disconnected from peer: /ip4/64.62.202.13/tcp/8888/p2p/QmPPxeZS7UvBR4MMNxbTM3RGPdkjR7DCDazgzPDSYwgj1j
koinos-p2p-1                  | 2022-10-20 23:01:46.371265 (p2p.Koinos) [node/node.go:373] <info>:  - /ip4/172.18.0.9/tcp/8888/p2p/QmRQHyCobY3CHoevAodV6Jcv8LUksKD2GFQFefqHsnHa9N
koinos-p2p-1                  | 2022-10-20 23:01:46.374339 (p2p.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/connection.go:85] <info>: Dialing AMQP server amqp://guest:guest@amqp:5672/
koinos-amqp-1                 | 2022-10-20 23:01:46.387570+00:00 [info] <0.1537.0> accepting AMQP connection <0.1537.0> (172.18.0.9:47632 -> 172.18.0.3:5672)
koinos-p2p-1                  | 2022-10-20 23:01:46.379026 (p2p.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/connection.go:85] <info>: Dialing AMQP server amqp://guest:guest@amqp:5672/
koinos-p2p-1                  | 2022-10-20 23:01:46.382798 (p2p.Koinos) [p2p/connection_manager.go:197] <info>: Disconnected from peer: /ip4/144.91.72.52/tcp/8888/p2p/QmWsEFV7aCz9DuFU4mEXo3gQwiVFH1NK31X28Fi2VyPJnG
koinos-contract_meta_store-1  | 2022-10-20 23:01:46.390061 (contract_meta_store.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/request_handler.go:124] <info>: Request handler connected
koinos-p2p-1                  | panic: runtime error: invalid memory address or nil pointer dereference
koinos-p2p-1                  | [signal SIGSEGV: segmentation violation code=0x1 addr=0xc pc=0x7c01fd]
koinos-p2p-1                  | 
koinos-p2p-1                  | goroutine 240 [running]:
koinos-p2p-1                  | github.com/rabbitmq/amqp091-go.(*Channel).PublishWithDeferredConfirmWithContext(0x0, {0x154b368, 0xc000514680}, {0x116b996, _}, {_, _}, _, _, {0x0, ...})
koinos-p2p-1                  |  /go/pkg/mod/github.com/rabbitmq/amqp091-go@v1.5.0/channel.go:1435 +0xdd
koinos-p2p-1                  | github.com/rabbitmq/amqp091-go.(*Channel).PublishWithContext(...)
koinos-p2p-1                  |  /go/pkg/mod/github.com/rabbitmq/amqp091-go@v1.5.0/channel.go:1404
koinos-p2p-1                  | github.com/koinos/koinos-mq-golang.(*Client).Broadcast(0xaa16a2?, {0x154b368?, 0xc000514680?}, {0x12b645c?, 0xaa1700?}, {0x12b0a81?, 0xc00055ae80?}, {0x1fccc00, 0x0, 0x0})
koinos-p2p-1                  |  /go/pkg/mod/github.com/koinos/koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/client.go:179 +0xea
koinos-p2p-1                  | github.com/koinos/koinos-p2p/internal/rpc.(*KoinosRPC).BroadcastGossipStatus(0xc000396200, {0x154b368, 0xc000514680}, 0x0)
koinos-p2p-1                  |  /koinos-p2p/internal/rpc/koinos_rpc.go:377 +0x11d
koinos-p2p-1                  | github.com/koinos/koinos-p2p/internal/p2p.(*KoinosGossip).EnableGossip(0xc0010d0ea0, {0x154b368, 0xc000514680}, 0x0?)
koinos-p2p-1                  |  /koinos-p2p/internal/p2p/gossip.go:197 +0x88
koinos-p2p-1                  | github.com/koinos/koinos-p2p/internal/p2p.(*GossipToggle).Start.func1()
koinos-p2p-1                  |  /koinos-p2p/internal/p2p/gossip_toggle.go:80 +0x444
koinos-p2p-1                  | created by github.com/koinos/koinos-p2p/internal/p2p.(*GossipToggle).Start
koinos-p2p-1                  |  /koinos-p2p/internal/p2p/gossip_toggle.go:39 +0x95
koinos-jsonrpc-1              | 2022-10-20 23:01:46.397261 (jsonrpc.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/client.go:131] <info>: Client connected
koinos-amqp-1                 | 2022-10-20 23:01:46.498172+00:00 [warning] <0.1537.0> closing AMQP connection <0.1537.0> (172.18.0.9:47632 -> 172.18.0.3:5672):
koinos-amqp-1                 | 2022-10-20 23:01:46.498172+00:00 [warning] <0.1537.0> client unexpectedly closed TCP connection
koinos-p2p-1 exited with code 2
koinos-block_producer-1       | 2022-10-20 23:01:50.598336 (block_producer.Koinos) [pob_producer.cpp:99] <info>: Burn difficulty met at quantum 1666306493180
koinos-block_producer-1       | 2022-10-20 23:01:50.622061 (block_producer.Koinos) [block_producer.cpp:296] <info>: Produced block - Height: 1635041, ID: 0x1220627901944d7b1fca5e93f7c6728dc2f6c6b81f2a4f27b8ca0ae62cba01b1a32f
koinos-block_producer-1       | 2022-10-20 23:01:50.625664 (block_producer.Koinos) [block_producer.cpp:219] <info>: Created block containing 0 transactions utilizing approximately 0/204800 disk, 0/1048576 network, 0/287500000 compute
koinos-block_producer-1       | 2022-10-20 23:01:50.629922 (block_producer.Koinos) [pob_producer.cpp:348] <info>: Difficulty target: 0x00000000000000369f34e3d0467dd7a2
koinos-block_producer-1       | 2022-10-20 23:01:50.630859 (block_producer.Koinos) [pob_producer.cpp:350] <info>: Estimated total VHP producing: 11257233.09291621 VHP
koinos-block_producer-1       | 2022-10-20 23:01:50.632150 (block_producer.Koinos) [pob_producer.cpp:353] <info>: Producing with 111838.11061425 VHP

SECOND INSTANCE__

koinos-p2p-1                  | 2022-10-20 23:52:07.469241 (p2p.Koinos) [p2p/gossip.go:227] <info>: Publishing transaction - ID: 0x12204d571e0cc0679a2b95df29ffd738847a4ba0831d3b99b53c8986810a045e6c20
koinos-p2p-1                  | 2022-10-20 23:52:07.470853 (p2p.Koinos) [p2p/gossip.go:227] <info>: Publishing transaction - ID: 0x1220a6fd6e46994b51aa153adc7e1e27fc4255885da4d20ff9d0315829de0962e48a
koinos-chain-1                | 2022-10-20 23:52:07.506446 (chain.Koinos) [controller.cpp:526] <info>: Pushing transaction - ID: 0x1220e9fec5262b3eaeabd985ec5192d5bd2837a6936b5841a30355ea7ba54f73e286
koinos-chain-1                | 2022-10-20 23:52:07.513147 (chain.Koinos) [controller.cpp:584] <info>: Transaction application successful - ID: 0x1220e9fec5262b3eaeabd985ec5192d5bd2837a6936b5841a30355ea7ba54f73e286
koinos-mempool-1              | 2022-10-20 23:52:07.514317 (mempool.Koinos) [mempool.cpp:352] <info>: Transaction added to mempool: 0x1220e9fec5262b3eaeabd985ec5192d5bd2837a6936b5841a30355ea7ba54f73e286
koinos-p2p-1                  | 2022-10-20 23:52:07.514633 (p2p.Koinos) [p2p/gossip.go:399] <info>: Gossiped transaction applied - ID: 0x1220e9fec5262b3eaeabd985ec5192d5bd2837a6936b5841a30355ea7ba54f73e286 from peer QmdrdcEnYDLgJUZzrhYNhYvEifBhiiTn7bndmnJUTma7dB
koinos-p2p-1                  | 2022-10-20 23:52:07.515224 (p2p.Koinos) [p2p/gossip.go:227] <info>: Publishing transaction - ID: 0x1220e9fec5262b3eaeabd985ec5192d5bd2837a6936b5841a30355ea7ba54f73e286
koinos-amqp-1                 | 2022-10-21 00:00:47.416980+00:00 [warning] <0.1783.0> closing AMQP connection <0.1783.0> (172.18.0.5:58280 -> 172.18.0.3:5672, vhost: '/', user: 'guest'):
koinos-amqp-1                 | 2022-10-21 00:00:47.416980+00:00 [warning] <0.1783.0> client unexpectedly closed TCP connection
koinos-amqp-1                 | 2022-10-21 00:00:47.036615+00:00 [warning] <0.1711.0> closing AMQP connection <0.1711.0> (172.18.0.6:56622 -> 172.18.0.3:5672, vhost: '/', user: 'guest'):
koinos-amqp-1                 | 2022-10-21 00:00:47.036615+00:00 [warning] <0.1711.0> client unexpectedly closed TCP connection
koinos-mempool-1              | 2022-10-21 00:00:47.417589 (mempool.Koinos) [mempool.cpp:387] <info>: Pruning transaction from mempool: 0x12200c836f9b52e4d8683ab90a7f2589bdfaffc47fc5b51f21dfe7c872e98bcf236e
koinos-amqp-1                 | 2022-10-21 00:00:47.056168+00:00 [warning] <0.1839.0> closing AMQP connection <0.1839.0> (172.18.0.9:48170 -> 172.18.0.3:5672, vhost: '/', user: 'guest'):
koinos-amqp-1                 | 2022-10-21 00:00:47.056168+00:00 [warning] <0.1839.0> client unexpectedly closed TCP connection
koinos-block_store-1          | 2022-10-21 00:00:47.419055 (block_store.Koinos) [koinos-mq-golang@v0.0.0-20220906183403-59a5f98d6aab/request_handler.go:92] <info>: Connecting request handler to AMQP server amqp://guest:guest@amqp:5672/
koinos-p2p-1                  | 2022-10-21 00:00:47.054726 (p2p.Koinos) [node/node.go:372] <info>: My address:
koinos-block_store-1          | 2022-10-21 00:00:47.058648 (block_store.Koinos) [koinos-mq-golang@v0.0.0-20220906183403-59a5f98d6aab/connection.go:85] <info>: Dialing AMQP server amqp://guest:guest@amqp:5672/
koinos-p2p-1                  | 2022-10-21 00:00:47.059875 (p2p.Koinos) [node/node.go:373] <info>:  - /ip4/172.18.0.9/tcp/8888/p2p/QmNyXYPB8KEQRHGnz4JJWeCUFTBskcAE7zzTpBmzpGmaHg
koinos-p2p-1                  | 2022-10-21 00:00:47.054940 (p2p.Koinos) [koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/client.go:115] <info>: Connecting client to AMQP server amqp://guest:guest@amqp:5672/
koinos-amqp-1                 | 2022-10-21 00:00:47.065354+00:00 [info] <0.1910.0> accepting AMQP connection <0.1910.0> (172.18.0.6:57552 -> 172.18.0.3:5672)
koinos-p2p-1                  | 2022-10-21 00:00:47.054703 (p2p.Koinos) [p2p/gossip.go:211] <info>: Stopping gossip mode
koinos-p2p-1                  | 2022-10-21 00:00:47.061783 (p2p.Koinos) [node/node.go:374] <info>: Connected peers:
koinos-amqp-1                 | 2022-10-21 00:00:47.074398+00:00 [info] <0.1910.0> connection <0.1910.0> (172.18.0.6:57552 -> 172.18.0.3:5672): user 'guest' authenticated and granted access to vhost '/'
koinos-p2p-1                  | panic: runtime error: invalid memory address or nil pointer dereference
koinos-p2p-1                  | [signal SIGSEGV: segmentation violation code=0x1 addr=0xc pc=0x7c01fd]
koinos-p2p-1                  | 
koinos-p2p-1                  | goroutine 200 [running]:
koinos-p2p-1                  | github.com/rabbitmq/amqp091-go.(*Channel).PublishWithDeferredConfirmWithContext(0x0, {0x154b368, 0xc00029e980}, {0x116b996, _}, {_, _}, _, _, {0x0, ...})
koinos-p2p-1                  |    /go/pkg/mod/github.com/rabbitmq/amqp091-go@v1.5.0/channel.go:1435 +0xdd
koinos-p2p-1                  | github.com/rabbitmq/amqp091-go.(*Channel).PublishWithContext(...)
koinos-p2p-1                  |    /go/pkg/mod/github.com/rabbitmq/amqp091-go@v1.5.0/channel.go:1404
koinos-p2p-1                  | github.com/koinos/koinos-mq-golang.(*Client).Broadcast(0xaa16a2?, {0x154b368?, 0xc00029e980?}, {0x12b645c?, 0xaa1700?}, {0x12b0a81?, 0xc000739e80?}, {0x1fccc00, 0x0, 0x0})
koinos-p2p-1                  |    /go/pkg/mod/github.com/koinos/koinos-mq-golang@v0.0.0-20220923190404-3c5aa9b8945a/client.go:179 +0xea
koinos-p2p-1                  | github.com/koinos/koinos-p2p/internal/rpc.(*KoinosRPC).BroadcastGossipStatus(0xc000ad4078, {0x154b368, 0xc00029e980}, 0x0)
koinos-p2p-1                  |    /koinos-p2p/internal/rpc/koinos_rpc.go:377 +0x11d
koinos-p2p-1                  | github.com/koinos/koinos-p2p/internal/p2p.(*KoinosGossip).EnableGossip(0xc0010b7aa0, {0x154b368, 0xc00029e980}, 0x0?)
koinos-p2p-1                  |    /koinos-p2p/internal/p2p/gossip.go:197 +0x88
koinos-p2p-1                  | github.com/koinos/koinos-p2p/internal/p2p.(*GossipToggle).Start.func1()
koinos-p2p-1                  |    /koinos-p2p/internal/p2p/gossip_toggle.go:80 +0x444
koinos-p2p-1                  | created by github.com/koinos/koinos-p2p/internal/p2p.(*GossipToggle).Start
koinos-p2p-1                  |    /koinos-p2p/internal/p2p/gossip_toggle.go:39 +0x95

Expected behavior

No response

Steps to reproduce

Node runs. Computer sleeps for 15 mins (could be less). Computer wakes. Crash observed in p2p logs at time sleep was entered. Restarting p2p has worked at least once to revive node.

Environment

- OS: MacOS 12.6, 2019 MBP
- Docker desktop 4.8.1

all tags are latest

Anything else?

No response