Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli_wallet doesn't do anything #152

Closed
songproducer opened this issue Jul 11, 2016 · 9 comments
Closed

cli_wallet doesn't do anything #152

songproducer opened this issue Jul 11, 2016 · 9 comments

Comments

@songproducer
Copy link

Logging RPC to file: logs/rpc/rpc.log
Starting a new wallet
866763ms th_a main.cpp:154 main ] wdata.ws_server: ws://localhost:8090

then nothing - wont respond to any comands like list_my_accounts.

There is also no logs/rpc/rpc.log

@abitmore
Copy link
Contributor

Need more info. Screenshot?

@songproducer
Copy link
Author

screen shot 2016-07-13 at 2 16 30 am

@songproducer
Copy link
Author

To clarify - does steemd need to be running and synchronised when I run cli_wallet?

@mvandeberg
Copy link
Contributor

The cli wallet needs to connect to a running steemd on the rpc-endpoint (default is port 8090). The option needs to be set on the steemd at runtime or in the config file.

When starting the cli wallet you should get a prompt that looks something this this:

Logging RPC to file: logs/rpc/rpc.log
3503940ms th_a       main.cpp:154                  main                 ] wdata.ws_server: ws://127.0.0.1:8090
3503971ms th_a       main.cpp:159                  main                 ] wdata.ws_user:  wdata.ws_password:  
3504013ms th_a       websocket_api.cpp:88          on_message           ] message: {"id":1,"result":true} 
3504018ms th_a       websocket_api.cpp:88          on_message           ] message: {"id":2,"result":0} 
3504018ms th_a       websocket_api.cpp:88          on_message           ] message: {"id":3,"result":2} 
3504019ms th_a       thread.cpp:95                 thread               ] name:cin tid:123145305522176
locked >>>

@songproducer
Copy link
Author

Is this how I should start it?

./cli_wallet --rpc-endpoint=127.0.0.1:8090

@mvandeberg
Copy link
Contributor

./cli_wallet --server-rpc-endpoint=ws://127.0.0.1:8090

Or just
./cli_wallet will default to 127.0.0.1:8090

@songproducer
Copy link
Author

I tried connecting to some of the ip addresses listed here but no luck:

Leos-MacBook-Pro:cli_wallet leotreasure$ ./cli_wallet --server-rpc-endpoint=ws://seed.steemed.net:2001
Logging RPC to file: logs/rpc/rpc.log
Starting a new wallet
1980591ms th_a main.cpp:154 main ] wdata.ws_server: ws://seed.steemed.net:2001
0 exception: unspecified
Underlying Transport Error
{"message":"Underlying Transport Error"}
asio websocket.cpp:439 operator()

{"uri":"ws://seed.steemed.net:2001"}
th_a  websocket.cpp:668 connect

@songproducer
Copy link
Author

Finally sorted.

Solve underlying transport error by only setting one instance of rpc - make sure config has this:
rpc-endpoint=127.0.0.1:8091

then run steemd with no extra arguments.

./cli_wallet --rpc-http-allowip=127.0.0.1 --server-rpc-endpoint=ws://127.0.0.1:8091

@songproducer
Copy link
Author

Not sure if this is necessary or not - but I added ./cli_wallet to the firewall in system preferences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants