EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.28k stars 3.6k forks source link

cleos wallet list fails #3782

Closed bitcoiners closed 6 years ago

bitcoiners commented 6 years ago

Having troubles with wallet. Started nodeos, and keosd, tried creating wallet and getting an error.

~/EOS-Jungle-Testnet# ./cleos.sh get info
{
  "server_version": "0961a560",
  "chain_id": "7d47aae09c97dbc21d52c6d9f17bb70a1f1f2fda5f81b3ef18979b74b2070d8c",
  "head_block_num": 126057,
  "last_irreversible_block_num": 125728,
  "last_irreversible_block_id": "0001eb205cb351c57ff9758b88f4b7ff9880016e02743d8c07f7d7d8d7fc2935",
  "head_block_id": "0001ec69c951fde90d4b89d1bf3a91b8cf9c2cd301c7e2cf3b8baf576c2f2a59",
  "head_block_time": "2018-06-03T19:52:50",
  "head_block_producer": "komododragon",
  "virtual_block_cpu_limit": 200000000,
  "virtual_block_net_limit": 1048576000,
  "block_cpu_limit": 199900,
  "block_net_limit": 1048576
}
~/EOS-Jungle-Testnet# ./cleos.sh wallet list
Wallets:
2504947ms thread-0   main.cpp:2584                 main                 ] Failed with error: Parse Error (4)
Unexpected char '60' in ""
zhaokanghuiasd commented 6 years ago

Do you solve this question?? I also meet this one, can you help me solve it?

bitcoiners commented 6 years ago

No, I am also waiting for help on this.

heifner commented 6 years ago

Try restarting keosd.

bitcoiners commented 6 years ago

Did. No change.

zhaokanghuiasd commented 6 years ago

@heifner I also did it and no change. problem Above is my situation

heifner commented 6 years ago

Did you load the wallet plugin in nodeos? Are there more than one keosd running?

bitcoiners commented 6 years ago

nodeos config.ini

plugin = eosio::chain_plugin
plugin = eosio::chain_api_plugin
plugin = eosio::history_plugin
plugin = eosio::history_api_plugin

keosd config.ini

no enabled plugins
~# ps aux | grep keosd
root      5953  0.0  0.0  14224   924 pts/0    S+   05:47   0:00 grep --color=auto keosd
root     28279  0.0  0.0  38180  6332 pts/3    S    Jun05   0:00 /root/eos/build/programs/keosd/keosd --config-dir /root/EOS-Jungle-Testnet/Wallet --wallet-dir /root/EOS-Jungle-Testnet/Wallet --http-server-address 127.0.0.1:3001
heifner commented 6 years ago

You have keosd running on port 3001. But you appear to be using default port for cleos. Try cleos --wallet-url http://127.0.0.1:3001 wallet list

bitcoiners commented 6 years ago

hmm.. :) Thank you for help!

# cleos --wallet-url http://127.0.0.1:3001 wallet list
Wallets:
[]
# ./cleos.sh wallet list
Wallets:
3581058ms thread-0   main.cpp:2584                 main                 ] Failed with error: Parse Error (4)
Unexpected char '60' in ""
# cat cleos.sh 
#!/bin/bash
################################################################################
#
# Scrip Created by http://CryptoLions.io
# https://github.com/CryptoLions/scripts/
#
###############################################################################

NODEOSBINDIR="/root/eos/build/programs"

WALLETHOST="127.0.0.1"
NODEHOST="127.0.0.1"
NODEPORT="8888"
WALLETPORT="3000"

$NODEOSBINDIR/cleos/cleos -u http://$NODEHOST:$NODEPORT --wallet-url http://$WALLETHOST:$WALLETPORT "$@"

Changed to WALLETPORT="3001"

# ./cleos.sh wallet list
Wallets:
[]