Mint 15 (Virtual - Parallels) .. failing due to upnp issues

Hi all,

Linux Mint 15 required the following additional packages before it could build properly:

sudo apt-get install libboost1.53-all-dev
sudo apt-get install qtbase5-dev
sudo apt-get install qt5-default

Trying to build alephzero then failed with the following error:

/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [alephzero] Error 1

Which is resolved by removing -lGL from the Makefile

vim ~/cpp-ethereum-build/alephzero/Makefile

LIBS = $(SUBLIBS) -L../../cpp-ethereum-build/libethereum -L../../secp256k1 -L../../cryptopp562 -L/usr/X11R6/lib64 -Wl,-rpath,../../cpp-ethereum-build/libethereum -Wl,-rpath,../../secp256k1 -Wl,-rpath,../../cryptopp562 -lethereum -lminiupnpc -lsecp256k1 -lleveldb -lcryptopp -lgmp -lboost_filesystem -lboost_system -lQt5Widgets -L/usr/lib/x86_64-linux-gnu -lQt5Network -lQt5Gui -lQt5Core -lpthread

Unfortunately any attempt to start alephzero now fails due to upnp, it doesn't find my router (192.168.2.1) but instead finds my NAS (192.168.2.252).....

[email protected] ~/cpp-ethereum-build/alephzero $ ./alephzero
Opened blockchain db. Latest: 0906dae3e53047ca76ed0603d48a9edadfd21f0efea5d5fd2437037c7cd1ad5a
Address: 127.0.0.1 = 127.0.0.1 [LOCAL]
Address: 192.168.2.252 = 192.168.2.252 [PEER]
TB : init_upnp()
UPnP device :
desc: http://192.168.2.253:50000/rootDesc.xml
st: upnp:rootdevice
external addr:
TB : upnp_add_redir (30303)
AddPortMapping(30303, 30303, 192.168.2.252) failed with 401. Trying non-specific external port...
AddPortMapping(30303, NULL, 192.168.2.252) failed with -2. Trying non-specific internal port...
AddPortMapping(NULL, 30303, 192.168.2.252) failed with -2. Trying non-specific both ports...
AddPortMapping(NULL, NULL, 192.168.2.252) failed with -2
*** WARNING: Couldn't punch through NAT (or no NAT in place). Using 30303
terminate called after throwing an instance of 'boost::exception_detail::clone_impl >'
what(): std::bad_cast
Aborted

If I then run eth setting my public IP it does start, but it just hangs on initialising....

sudo -u user ./eth -o peer -x 256 -l 30303 --public 203.214.148.201 -m off -v 3
Opened blockchain db. Latest: 0906dae3e53047ca76ed0603d48a9edadfd21f0efea5d5fd2437037c7cd1ad5a
Address: 127.0.0.1 = 127.0.0.1 [LOCAL]
Address: 192.168.2.252 = 192.168.2.252 [PEER]
TB : init_upnp()
UPnP device :
desc: http://192.168.2.253:50000/rootDesc.xml
st: upnp:rootdevice
external addr:
TB : upnp_add_redir (30303)
AddPortMapping(30303, 30303, 192.168.2.252) failed with 401. Trying non-specific external port...
AddPortMapping(30303, NULL, 192.168.2.252) failed with -2. Trying non-specific internal port...
AddPortMapping(NULL, 30303, 192.168.2.252) failed with -2. Trying non-specific both ports...
AddPortMapping(NULL, NULL, 192.168.2.252) failed with -2
*** WARNING: Couldn't punch through NAT (or no NAT in place). Using 30303
Listening on local port 30303 (public: 203.214.148.201:30303)
Mode: PeerServer
Initialising: latest=0906dae3e53047ca76ed0603d48a9edadfd21f0efea5d5fd2437037c7cd1ad5a

Any ideas would be appreciated!

Cheers,
cypher555

Comments

Sign In or Register to comment.