v0.13.1 wallet – connect failed: Network is unreachable (101)

Noob here. Ran the core wallet on my Linux PC and looking for help as to why it is not working after syncing up the history of blockchain Tx’s. Is this likely my router not passing port 8333 packets, or something else? thanks!

2016-12-15 13:39:52 Pre-allocating up to position 0xe00000 in rev00709.dat 2016-12-15 13:39:52 UpdateTip: new best=0000000000000000021ab2f093924ee05d43c228c2f6ab84414d7b77bef0ca18 height=443582 version=0x20000000 log2_work=85.680045 tx=179248787 date='2016-12-15 13:40:26' progress=1.000000 cache=175.8MiB(93812tx) warning='2 of last 100 blocks have unexpected version' 2016-12-15 13:39:54 ProcessMessages: advertising address 179.125.21.234:8333 2016-12-15 13:39:54 receive version message: /Satoshi:0.13.1/: version 70014, blocks=443582, us=179.125.21.234:58800, peer=21 2016-12-15 13:39:54 AdvertiseLocal: advertising address 179.125.21.234:8333 2016-12-15 13:41:31 connect() to [2001:0:9d38:6ab8:3c33:1df8:ab64:a421]:8333 failed: Network is unreachable (101) 2016-12-15 13:41:59 connect() to 114.254.131.229:8333 failed after select(): Connection refused (111) 2016-12-15 13:43:00 connect() to [2001:0:9d38:6ab8:249a:276e:a1e9:fc4b]:8333 failed: Network is unreachable (101) 2016-12-15 13:46:38 connect() to [2001:0:9d38:90d7:2068:fbff:2776:17b5]:8333 failed: Network is unreachable (101) 2016-12-15 13:48:46 connect() to [2001:0:5ef5:79fd:344e:fda:b3e8:2a0d]:8333 failed: Network is unreachable (101) 2016-12-15 13:53:08 ProcessMessages: advertising address 179.125.21.234:8333 2016-12-15 13:53:08 receive version message: /Satoshi:0.13.1/: version 70014, blocks=443582, us=179.125.21.234:48796, peer=22 2016-12-15 13:53:08 AdvertiseLocal: advertising address 179.125.21.234:8333 2016-12-15 13:53:25 UpdateTip: new best=0000000000000000004cfce5b4e88c754daa10165a2495fbc9893a8fb054f938 height=443583 version=0x30000000 log2_work=85.680076 tx=179251601 date='2016-12-15 13:53:36' progress=1.000000 cache=217.3MiB(104890tx) warning='3 of last 100 blocks have unexpected version' 

Recent Questions – Bitcoin Stack Exchange

Failing to build bitcoin-core v0.13.1 on debian stretch

I have recently set up a new machine on debian stretch:

$   uname -a Linux front 4.8.0-1-amd64 #1 SMP Debian 4.8.7-1 (2016-11-13) x86_64 GNU/Linux 

I am now attempting to install bitcoind. I have already set up a directory db4 in my build directory for the Berkeley database version 4.8.30. I have installed all the dependencies as per doc/build-unix, including boost from the distribution:

$   sudo apt-get install libboost-all-dev $   apt-cache show libboost-all-dev Package: libboost-all-dev Source: boost-defaults Version: 1.62.0.1 ...  $   ./autogen.sh ...  ./configure LDFLAGS="-L..bitcoin/db4/lib/" CPPFLAGS="-I..bitcoin/db4/include/" ...  $   make ... CXX      wallet/test/test_test_bitcoin-wallet_tests.o CXX      wallet/test/test_test_bitcoin-crypto_tests.o wallet/test/crypto_tests.cpp: In function ‘bool wallet_crypto::OldEncrypt( const CKeyingMaterial&, std::vector<unsigned char>&, const unsigned char*, const unsigned char*)’: wallet/test/crypto_tests.cpp:45:20: error: aggregate ‘EVP_CIPHER_CTX ctx’ has incomplete type and cannot be defined EVP_CIPHER_CTX ctx;                 ^~~ wallet/test/crypto_tests.cpp: In function ‘bool wallet_crypto::OldDecrypt( const std::vector<unsigned char>&, CKeyingMaterial&, const unsigned char*, const unsigned char*)’: wallet/test/crypto_tests.cpp:69:20: error: aggregate ‘EVP_CIPHER_CTX ctx’ has incomplete type and cannot be defined EVP_CIPHER_CTX ctx;                 ^~~ Makefile:8232: recipe for target 'wallet/test/test_test_bitcoin  crypto_tests.o' failed make[2]: *** [wallet/test/test_test_bitcoin-crypto_tests.o] Error 1 make[2]: Leaving directory '/home/john/Libs/bitcoin/src' Makefile:8370: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/john/Libs/bitcoin/src' Makefile:680: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 

Any suggestion is gratefully appreciated.

Recent Questions – Bitcoin Stack Exchange

Failing to build bitcoin-core v0.13.1

I have done quite a few upgrades in the past and this has never happened before:

$   uname -a Linux back 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux  $   git checkout v0.13.1 $   git fetch --all $   ./autogen.sh ... $   ./configure LDFLAGS="-L/home/me/bitcoin/db4/lib/" CPPFLAGS="-I/home/me/bitcoin/db4/include/" ... $   make clean  # I have had issues in the past, always solved with clean target ... $   make ... AR       leveldb/libmemenv.a CXXLD    bitcoind libbitcoin_util.a(libbitcoin_util_a-util.o): In function `GetNumCores()': /home/me/bitcoin/src/util.cpp:796: undefined reference to `boost::thread::physical_concurrency()' collect2: error: ld returned 1 exit status Makefile:3336: recipe for target 'bitcoind' failed make[2]: *** [bitcoind] Error 1 make[2]: Leaving directory '/home/me/bitcoin/src' Makefile:8357: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/me/bitcoin/src' Makefile:668: recipe for target 'all-recursive' failed  make: *** [all-recursive] Error 1 

Does anyone have any suggestion of anything I could try out to resolve this?

EDIT: I can’t even rebuild v0.13.0, so I have most likely messed up my system in relation to boost. Looking into that

EDIT2 (RESOLVED): cleaning up the boost install resolves the problem (make check passes all tests). Any Bitcoin enthusiast who still doesn’t quite know what he is doing (like myself) will easily attempt to install various Bitcoin libraries and utilities (e.g. libbitcoin bx for C++) with boost dependencies and end up with various bits and pieces of the library everywhere (both /usr and /usr/local hierarchy as well as boost distribution packages on top of existing stuff in /usr/lib/x86_64-linux-gnu/). So I removed the distribution packages, cleaned up /usr/include/boost and /usr/lib/libboost_* (and the equivalent on /usr/local), left the gnu folder alone (libreoffice will break otherwise), and installed a clean copy of boost (on /usr/local hierarchy). One thing to remember, if anyone tries to experiment by moving around library files, you need to run ldconfig to update the cache for the linker I think. Things started to make sense after I did that.

EDIT3: for the sake of completeness, if I decide to install boost in the /usr/ hierarchy rather than /usr/local/, then the above build will also fail for some reason. However, replacing the line:

$   ./configure LDFLAGS="-L/home/me/bitcoin/db4/lib/" \               CPPFLAGS="-I/home/me/bitcoin/db4/include/" 

by:

$   ./configure LDFLAGS="-L/home/me/bitcoin/db4/lib/ -L/usr/lib" \               CPPFLAGS="-I/home/me/bitcoin/db4/include/ -I/usr/include" 

leads to a succesful build.

Recent Questions – Bitcoin Stack Exchange