Blockstream/satellite

Bitcoind: Network is unreachable

reynico opened this issue · 2 comments

Hi!
I'm running Blockstream Satellite and Bitcoinfibre on a Raspberry PI 3 with Ubuntu Mate.

I think the decoding part is doing well, here's some logging from blocksat-rx

nico@sdr:~$ sudo blocksat-rx -f 1426400000 
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp 
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Found Rafael Micro R820T tuner
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Exact sample rate is: 1000000.026491 Hz
[R82XX] PLL not locked!
[2020-03-16 20:20:54] SNR [=                                       ] 0.0000 dB
Press Enter to quit: [2020-03-16 20:20:55] SNR [==========                              ] 4.3307 dB

##########################################
-- Frame synchronization acquired
-- On Mon Mar 16 20:20:55 2020
##########################################

[2020-03-16 20:20:56] SNR [==============                          ] 6.5202 dB
[2020-03-16 20:20:57] SNR [==============                          ] 6.2754 dB
[2020-03-16 20:20:58] SNR [==============                          ] 6.5336 dB
[2020-03-16 20:20:59] SNR [==============                          ] 6.5540 dB
[2020-03-16 20:21:00] SNR [==============                          ] 6.3109 dB
--------------------------------------------------------------------------------
[2020-03-16 20:21:00] Frame Timing => LOCKED	 Timing Indicator: GOOD
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:00] Frame Error Rate: 1.52E-02   1 dropped /    66 frames
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:00] Carrier Frequency Offset: 76.2939 kHz 
--------------------------------------------------------------------------------
[2020-03-16 20:21:01] SNR [==============                          ] 6.3117 dB
[2020-03-16 20:21:02] SNR [=============                           ] 6.2427 dB
[2020-03-16 20:21:03] SNR [==============                          ] 6.3340 dB
[2020-03-16 20:21:04] SNR [==============                          ] 6.3688 dB
[2020-03-16 20:21:05] SNR [=============                           ] 6.1948 dB
[2020-03-16 20:21:06] SNR [=============                           ] 6.2475 dB
[2020-03-16 20:21:07] SNR [=============                           ] 6.2311 dB
[2020-03-16 20:21:08] SNR [==============                          ] 6.2580 dB
[2020-03-16 20:21:09] SNR [==============                          ] 6.3543 dB
[2020-03-16 20:21:10] SNR [==============                          ] 6.2992 dB
--------------------------------------------------------------------------------
[2020-03-16 20:21:10] Frame Timing => LOCKED	 Timing Indicator: GOOD
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:10] Frame Error Rate: 4.95E-03   1 dropped /   202 frames
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:10] Carrier Frequency Offset: 76.2939 kHz 
--------------------------------------------------------------------------------
[2020-03-16 20:21:11] SNR [==============                          ] 6.4068 dB
[2020-03-16 20:21:12] SNR [==============                          ] 6.5256 dB
[2020-03-16 20:21:13] SNR [==============                          ] 6.4050 dB
[2020-03-16 20:21:14] SNR [=============                           ] 6.1817 dB
--------------------------------------------------------------------------------
[2020-03-16 20:21:14] Rx Data	Blocks: 247.0 kB (13.6 kB/sec)
                             	   API:      0 B (0.0 kB/sec)
--------------------------------------------------------------------------------
[2020-03-16 20:21:15] SNR [==============                          ] 6.2933 dB
[2020-03-16 20:21:16] SNR [==============                          ] 6.3262 dB
[2020-03-16 20:21:17] SNR [==============                          ] 6.3668 dB
[2020-03-16 20:21:18] SNR [=============                           ] 6.2453 dB
[2020-03-16 20:21:19] SNR [==============                          ] 6.5606 dB
[2020-03-16 20:21:20] SNR [=============                           ] 6.1210 dB
--------------------------------------------------------------------------------
[2020-03-16 20:21:20] Frame Timing => LOCKED	 Timing Indicator: GOOD
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:20] Frame Error Rate: 2.95E-03   1 dropped /   339 frames
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:20] Carrier Frequency Offset: 75.7446 kHz 
--------------------------------------------------------------------------------
[2020-03-16 20:21:21] SNR [==============                          ] 6.3023 dB
[2020-03-16 20:21:22] SNR [=============                           ] 6.1993 dB
[2020-03-16 20:21:23] SNR [==============                          ] 6.2514 dB
[2020-03-16 20:21:24] SNR [==============                          ] 6.3352 dB
--------------------------------------------------------------------------------
[2020-03-16 20:21:24] Rx Data	Blocks: 386.0 kB (14.0 kB/sec)
                             	   API:      0 B (0.0 kB/sec)
--------------------------------------------------------------------------------
[2020-03-16 20:21:25] SNR [=============                           ] 6.1463 dB
[2020-03-16 20:21:26] SNR [==============                          ] 6.4805 dB
[2020-03-16 20:21:27] SNR [==============                          ] 6.3767 dB
[2020-03-16 20:21:28] SNR [==============                          ] 6.3367 dB
[2020-03-16 20:21:29] SNR [==============                          ] 6.3497 dB
[2020-03-16 20:21:30] SNR [==============                          ] 6.5675 dB
--------------------------------------------------------------------------------
[2020-03-16 20:21:30] Frame Timing => LOCKED	 Timing Indicator: GOOD
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:30] Frame Error Rate: 2.11E-03   1 dropped /   474 frames
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:30] Carrier Frequency Offset: 75.6836 kHz 
--------------------------------------------------------------------------------
[2020-03-16 20:21:31] SNR [==============                          ] 6.4513 dB
[2020-03-16 20:21:32] SNR [==============                          ] 6.4032 dB
[2020-03-16 20:21:33] SNR [==============                          ] 6.4066 dB
[2020-03-16 20:21:34] SNR [==============                          ] 6.6493 dB
--------------------------------------------------------------------------------
[2020-03-16 20:21:34] Rx Data	Blocks: 523.0 kB (13.9 kB/sec)
                             	   API:      0 B (0.0 kB/sec)
--------------------------------------------------------------------------------
[2020-03-16 20:21:35] SNR [==============                          ] 6.4735 dB
[2020-03-16 20:21:36] SNR [==============                          ] 6.5393 dB
[2020-03-16 20:21:37] SNR [==============                          ] 6.3866 dB
[2020-03-16 20:21:38] SNR [==============                          ] 6.3041 dB
[2020-03-16 20:21:38] Blocks data buffer is 5% full
Is Bitcoin FIBRE running and listening to "/tmp/blocksat/bitcoinfibre"?
[2020-03-16 20:21:39] SNR [==============                          ] 6.4037 dB
[2020-03-16 20:21:40] SNR [==============                          ] 6.3260 dB
--------------------------------------------------------------------------------
[2020-03-16 20:21:40] Frame Timing => LOCKED	 Timing Indicator: GOOD
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:40] Frame Error Rate: 1.64E-03   1 dropped /   609 frames
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:40] Carrier Frequency Offset: 75.6836 kHz 
--------------------------------------------------------------------------------
[2020-03-16 20:21:41] SNR [=============                           ] 6.0821 dB
[2020-03-16 20:21:42] SNR [=============                           ] 6.1375 dB
[2020-03-16 20:21:43] SNR [=============                           ] 6.1455 dB
[2020-03-16 20:21:44] SNR [==============                          ] 6.5619 dB
--------------------------------------------------------------------------------
[2020-03-16 20:21:44] Rx Data	Blocks: 659.0 kB (13.9 kB/sec)
                             	   API:      0 B (0.0 kB/sec)
--------------------------------------------------------------------------------
[2020-03-16 20:21:45] SNR [==============                          ] 6.4327 dB
[2020-03-16 20:21:46] Blocks data buffer is 6% full
Is Bitcoin FIBRE running and listening to "/tmp/blocksat/bitcoinfibre"?
[2020-03-16 20:21:46] SNR [=============                           ] 6.2472 dB
[2020-03-16 20:21:47] SNR [==============                          ] 6.2528 dB
[2020-03-16 20:21:48] SNR [==============                          ] 6.6675 dB
[2020-03-16 20:21:49] SNR [==============                          ] 6.3441 dB
[2020-03-16 20:21:50] SNR [==============                          ] 6.4117 dB
--------------------------------------------------------------------------------
[2020-03-16 20:21:50] Frame Timing => LOCKED	 Timing Indicator: GOOD
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:50] Carrier Frequency Offset: 75.2563 kHz 
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:21:50] Frame Error Rate: 1.34E-03   1 dropped /   745 frames
--------------------------------------------------------------------------------
[2020-03-16 20:21:51] SNR [==============                          ] 6.2682 dB
[2020-03-16 20:21:52] SNR [=============                           ] 6.1894 dB
[2020-03-16 20:21:53] SNR [=============                           ] 6.1340 dB
[2020-03-16 20:21:53] Blocks data buffer is 7% full
Is Bitcoin FIBRE running and listening to "/tmp/blocksat/bitcoinfibre"?
[2020-03-16 20:21:54] SNR [==============                          ] 6.2957 dB
--------------------------------------------------------------------------------
[2020-03-16 20:21:54] Rx Data	Blocks: 795.0 kB (13.9 kB/sec)
                             	   API:      0 B (0.0 kB/sec)
--------------------------------------------------------------------------------
[2020-03-16 20:21:55] SNR [=============                           ] 6.0641 dB
[2020-03-16 20:21:56] SNR [==============                          ] 6.2704 dB
[2020-03-16 20:21:57] SNR [==============                          ] 6.3897 dB
[2020-03-16 20:21:58] SNR [==============                          ] 6.3772 dB
[2020-03-16 20:21:59] SNR [==============                          ] 6.4470 dB
[2020-03-16 20:22:00] SNR [==============                          ] 6.4669 dB
--------------------------------------------------------------------------------
[2020-03-16 20:22:00] Frame Timing => LOCKED	 Timing Indicator: GOOD
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:22:00] Frame Error Rate: 1.14E-03   1 dropped /   880 frames
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[2020-03-16 20:22:00] Carrier Frequency Offset: 75.2563 kHz 
--------------------------------------------------------------------------------
[2020-03-16 20:22:01] SNR [=============                           ] 6.1970 dB
[2020-03-16 20:22:01] Blocks data buffer is 8% full
Is Bitcoin FIBRE running and listening to "/tmp/blocksat/bitcoinfibre"?
[2020-03-16 20:22:02] SNR [==============                          ] 6.3964 dB
[2020-03-16 20:22:03] SNR [==============                          ] 6.4108 dB
[2020-03-16 20:22:04] SNR [=============                           ] 6.2340 dB
--------------------------------------------------------------------------------
[2020-03-16 20:22:04] Rx Data	Blocks: 931.0 kB (14.0 kB/sec)
                             	   API:      0 B (0.0 kB/sec)
--------------------------------------------------------------------------------
[2020-03-16 20:22:05] SNR [==============                          ] 6.4756 dB
[2020-03-16 20:22:06] SNR [==============                          ] 6.3796 dB
[2020-03-16 20:22:07] SNR [==============                          ] 6.3458 dB
[2020-03-16 20:22:08] SNR [==============                          ] 6.3614 dB
[2020-03-16 20:22:08] Blocks data buffer is 9% full
Is Bitcoin FIBRE running and listening to "/tmp/blocksat/bitcoinfibre"?
[2020-03-16 20:22:09] SNR [=============                           ] 6.2392 dB
[2020-03-16 20:22:10] SNR [==============                          ] 6.2875 dB
--------------------------------------------------------------------------------
[2020-03-16 20:22:10] Frame Timing => LOCKED	 Timing Indicator: GOOD
--------------------------------------------------------------------------------

(I started bitcoinfibre later, that's why "s Bitcoin FIBRE running and listening to "/tmp/blocksat/bitcoinfibre"?")

Also some screenshots on gui mode: https://imgur.com/a/lRZAgk1. Not really sure if the constellation picture is expected

I started Bitcoinfibre as

sudo bitcoind -fecreaddevice=/tmp/blocksat/bitcoinfibre

and all I got is

2020-03-16 23:24:38 Bitcoin Core version v0.16.3.0-65e12faf7 (release build)
2020-03-16 23:24:38 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2020-03-16 23:24:38 Assuming ancestors of block 0000000000000000005214481d2d96f898e3d5416e43359c145944a909d242e0 have valid signatures.
2020-03-16 23:24:38 Setting nMinimumChainWork=000000000000000000000000000000000000000000f91c579d57cad4bc5278cc
2020-03-16 23:24:38 Using the 'standard' SHA256 implementation
2020-03-16 23:24:38 Default data directory /home/nico/.bitcoin
2020-03-16 23:24:38 Using data directory /home/nico/.bitcoin
2020-03-16 23:24:38 Using config file /home/nico/.bitcoin/bitcoin.conf
2020-03-16 23:24:38 Using at most 125 automatic connections (1024 file descriptors available)
2020-03-16 23:24:38 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2020-03-16 23:24:38 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2020-03-16 23:24:38 Using 4 threads for script verification
2020-03-16 23:24:38 scheduler thread start
2020-03-16 23:24:38 HTTP: creating work queue of depth 16
2020-03-16 23:24:38 No rpcpassword set - using random cookie authentication
2020-03-16 23:24:38 Generated RPC authentication cookie /home/nico/.bitcoin/.cookie
2020-03-16 23:24:38 HTTP: starting 4 worker threads
2020-03-16 23:24:38 Cache configuration:
2020-03-16 23:24:38 * Using 2.0MiB for block index database
2020-03-16 23:24:38 * Using 8.0MiB for chain state database
2020-03-16 23:24:38 * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2020-03-16 23:24:38 init message: Loading block index...
2020-03-16 23:24:38 Opening LevelDB in /home/nico/.bitcoin/blocks/index
2020-03-16 23:24:38 Opened LevelDB successfully
2020-03-16 23:24:38 Using obfuscation key for /home/nico/.bitcoin/blocks/index: 0000000000000000
2020-03-16 23:24:38 LoadBlockIndexDB: last block file = 0
2020-03-16 23:24:38 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=0, size=0, heights=0...0, time=1970-01-01...1970-01-01)
2020-03-16 23:24:38 Checking all blk files are present...
2020-03-16 23:24:38 LoadBlockIndexDB: transaction index disabled
2020-03-16 23:24:38 Initializing databases...
2020-03-16 23:24:38 Pre-allocating up to position 0x1000000 in blk00000.dat
2020-03-16 23:24:38 Opening LevelDB in /home/nico/.bitcoin/chainstate
2020-03-16 23:24:38 Opened LevelDB successfully
2020-03-16 23:24:38 Wrote new obfuscate key for /home/nico/.bitcoin/chainstate: f5b5b4b4e89f3fee
2020-03-16 23:24:38 Using obfuscation key for /home/nico/.bitcoin/chainstate: f5b5b4b4e89f3fee
2020-03-16 23:24:38 init message: Rewinding blocks...
2020-03-16 23:24:38  block index             252ms
2020-03-16 23:24:38 No wallet support compiled in!
2020-03-16 23:24:38 UpdateTip: new best=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f height=0 version=0x00000001 log2_work=32.000022 tx=1 date='2009-01-03 18:15:05' progress=0.000000 cache=0.0MiB(0txo)
2020-03-16 23:24:38 mapBlockIndex.size() = 1
2020-03-16 23:24:38 nBestHeight = 0
2020-03-16 23:24:38 torcontrol thread start
2020-03-16 23:24:38 Bound to [::]:8333
2020-03-16 23:24:38 Bound to 0.0.0.0:8333
2020-03-16 23:24:38 init message: Loading P2P addresses...
2020-03-16 23:24:38 ERROR: DeserializeFileDB: Failed to open file /home/nico/.bitcoin/peers.dat
2020-03-16 23:24:38 Failed to open mempool file from disk. Continuing anyway.
2020-03-16 23:24:38 Invalid or missing peers.dat; recreating
2020-03-16 23:24:38 init message: Loading banlist...
2020-03-16 23:24:38 ERROR: DeserializeFileDB: Failed to open file /home/nico/.bitcoin/banlist.dat
2020-03-16 23:24:38 Invalid or missing banlist.dat; recreating
2020-03-16 23:24:38 init message: Starting network threads...
2020-03-16 23:24:38 net thread start
2020-03-16 23:24:38 dnsseed thread start
2020-03-16 23:24:38 Loading addresses from DNS seeds (could take a while)
2020-03-16 23:24:38 opencon thread start
2020-03-16 23:24:38 udpwrite thread start
2020-03-16 23:24:38 addcon thread start
2020-03-16 23:24:38 init message: Done loading
2020-03-16 23:24:38 UDP: Set write thread priority to SCHED_RR
2020-03-16 23:24:38 msghand thread start
2020-03-16 23:24:38 udpreadlocal thread start
2020-03-16 23:24:38 udpprocess thread start
2020-03-16 23:24:38 udpread thread start
2020-03-16 23:25:31 UDP: Got full header and shorttxids from [::]:2
2020-03-16 23:25:31 UDP: Initialized block 000000000000000000039eccbd9fb5da94c3a8efe34fa6fc8cc207e2b69fcda6 with 0/1030 mempool-provided chunks (or more)
2020-03-16 23:25:40 Adding fixed seed nodes as DNS doesn't seem to be available.
2020-03-16 23:25:40 connect() to 185.21.216.134:8333 failed: Network is unreachable (101)
2020-03-16 23:26:00 connect() to 23.240.67.204:8333 failed: Network is unreachable (101)
2020-03-16 23:26:21 connect() to [2001:41d0:1004:24a5::]:8333 failed: Network is unreachable (101)
2020-03-16 23:26:38 0 addresses found from DNS seeds
2020-03-16 23:26:38 dnsseed thread exit
2020-03-16 23:26:41 connect() to [2a06:3d80:b:1:ae1f:6bff:fe13:c13e]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:02 connect() to 178.221.66.212:8333 failed: Network is unreachable (101)
2020-03-16 23:27:02 connect() to 190.145.22.202:8333 failed: Network is unreachable (101)
2020-03-16 23:27:03 connect() to 91.135.0.187:8333 failed: Network is unreachable (101)
2020-03-16 23:27:03 connect() to [2a01:cb00:2ca:b700:2079:b33f:cf5a:5958]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:04 connect() to 176.126.167.10:8333 failed: Network is unreachable (101)
2020-03-16 23:27:04 connect() to [2a01:4f8:10b:2a9b::2]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:05 connect() to [2001:0:9d38:6ab8:30e7:3e5c:da3f:6466]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:05 connect() to [2001:0:9d38:6ab8:1498:36b6:a29b:12a4]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:06 connect() to 81.228.194.187:8333 failed: Network is unreachable (101)
2020-03-16 23:27:06 connect() to [2001:0:5ef5:79fb:2853:3b95:a430:40f3]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:07 connect() to [2a02:c205:2009:7804::1]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:07 connect() to [2607:5300:60:9ad::1]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:08 connect() to [2002:2df9:5e40::2df9:5e40]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:08 connect() to [2a01:4f8:140:5329::102]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:09 connect() to [2001:0:9d38:6ab8:2015:473:9d21:cc3c]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:09 ERROR: AcceptBlockHeader: prev block not found
2020-03-16 23:27:09 ERROR: ProcessNewBlock: AcceptBlock FAILED ()
2020-03-16 23:27:09 UDP: Failed to decode block 000000000000000000039eccbd9fb5da94c3a8efe34fa6fc8cc207e2b69fcda6
2020-03-16 23:27:09 connect() to [2001:0:9d38:953c:3c43:3f1:b489:f8b8]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:10 connect() to [2a00:c440:10:1c62:1234::1]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:10 connect() to [2001:0:4137:9e76:20ac:22b1:bb18:1160]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:11 connect() to 104.156.99.240:8333 failed: Network is unreachable (101)
2020-03-16 23:27:11 connect() to [2605:9880:201:17::4b7c]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:12 connect() to 188.234.241.172:8333 failed: Network is unreachable (101)
2020-03-16 23:27:12 connect() to [2001:0:9d38:6ab8:3439:223:a04a:fdfd]:8333 failed: Network is unreachable (101)
2020-03-16 23:27:13 connect() to 94.237.64.138:8333 failed: Network is unreachable (101)

and the failed: Network is unreachable (101) errors just repeats over and over.

What am I missing here?

For the records: yes, Raspberry PI does not have any internet connection

Start bitcoind once with the additional option -connect = 0. With this option, bitcoind does not attempt to connect to a node on the Internet.

Thanks! I'll give a try today.