Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

cleos wallet list fails #3782

Closed
bitcoiners opened this issue Jun 3, 2018 · 9 comments
Closed

cleos wallet list fails #3782

bitcoiners opened this issue Jun 3, 2018 · 9 comments

Comments

@bitcoiners
Copy link

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
Copy link

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

@bitcoiners
Copy link
Author

No, I am also waiting for help on this.

@heifner
Copy link
Contributor

heifner commented Jun 6, 2018

Try restarting keosd.

@bitcoiners
Copy link
Author

Did. No change.

@zhaokanghuiasd
Copy link

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

@heifner
Copy link
Contributor

heifner commented Jun 6, 2018

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

@bitcoiners
Copy link
Author

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
Copy link
Contributor

heifner commented Jun 6, 2018

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
Copy link
Author

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:
[]

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

No branches or pull requests

3 participants