TigerND / docker-steem

Steem Dockerfiles
GNU Lesser General Public License v3.0
2 stars 4 forks source link

cli_wallet "Timer Expired" #1

Open Netherdrake opened 8 years ago

Netherdrake commented 8 years ago

I am trying to run the steemd and cli_wallet in such a way, that I can access the ports outside of Docker container for app development.

So I've changed IP's from 127.0.0.1 to 0.0.0.0 and exposed the ports trough docker p flag.

sudo docker run --name steem-wallet --rm -it -p 8090:8090 -p 8091:8091 -p 8093:8093 -p 2001:2001 -v ~/.steem/witness_node_data_dir:/witness_node_data_dir teego/steem-wallet /usr/local/bin/steemd --rpc-endpoint = 0.0.0.0:8090 

Then I try to run the wallet_cli:

sudo docker exec -it steem-wallet /usr/local/bin/cli_wallet  -s ws://0.0.0.0:8090 -H 0.0.0.0:8093 --rpc-http-allowip 0.0.0.0

However it won't start.

736125ms th_a       main.cpp:101                  main                 ] allowed_ips: ["0.0.0.0"] 
Logging RPC to file: logs/rpc/rpc.log
Starting a new wallet
736130ms th_a       main.cpp:154                  main                 ] wdata.ws_server: ws://0.0.0.0:8090 
0 exception: unspecified
Timer Expired
    {"message":"Timer Expired"}
    asio  websocket.cpp:444 operator()

    {"uri":"ws://0.0.0.0:8090"}
    th_a  websocket.cpp:673 connect

Any ideas on what could be wrong?

roelandp commented 7 years ago

fix: update this file: https://github.com/zaphoyd/websocketpp/commit/0bb33e4bca4ccc42a36aa2321e4fb97f2562e519

Will be fixed in websocket++ 0.8 which hopefully gets included in Steem.

Github Discussion to learn more: https://github.com/zaphoyd/websocketpp/issues/623

I did a manual change to the file mentioned above and then it works. You will need to cmake / make again.

Apparently this is a 'change' in Linux Kernel > 4.4 so first check with uname -r that you are indeed running a node with kernel > 4.4