Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: gelius on July 06, 2017, 12:00:00 PM



Title: Method not found
Post by: gelius on July 06, 2017, 12:00:00 PM
Code:
bitcoin-cli getaccountaddress
error code: -32601
error message:
Method not found
bitcoin-cli getaccountaddress ""
error code: -32601
error message:
Method not found
wtf?


Title: Re: Method not found
Post by: mocacinno on July 06, 2017, 12:03:47 PM
Code:
bitcoin-cli getaccountaddress
error code: -32601
error message:
Method not found
bitcoin-cli getaccountaddress ""
error code: -32601
error message:
Method not found
wtf?

did you include the account? In other words, did you enter
bitcoin-cli getaccountaddress
or
bitcoin-cli getaccountaddress ""

Only the second command is correct

you can also read the help:
bitcoin-cli help | grep account
bitcoin-cli help getaccountaddress


Title: Re: Method not found
Post by: gelius on July 06, 2017, 07:22:58 PM
Code:
bitcoin-cli help getaccountaddress
help: unknown command: getaccountaddress
$bitcoin-cli help | grep account
$


Title: Re: Method not found
Post by: tspacepilot on July 06, 2017, 07:33:40 PM
What version are you running?


Title: Re: Method not found
Post by: mocacinno on July 06, 2017, 07:38:43 PM
could you execute the following commands and post the output?
Edit out passwords (and other sensitive information)

Code:
which bitcoin-cli
pwd
whoami
cat /etc/os-release
uname -a
bitcoin-cli getinfo
ps -ef | grep bitcoind
lsof -i :8333
lsof -i :8332

also, this one WITHOUT usernames and passwords:
cat ~/.bitcoin/bitcoin.conf


Title: Re: Method not found
Post by: gelius on July 06, 2017, 10:26:34 PM
Code:
$ which bitcoin-cli
/home/bitcoinuser/bin/bitcoin-cli
$ pwd
/home/bitcoinuser
$ whoami
bitcoinuser
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ uname -a
Linux domain.com 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u1
$ bitcoin-cli getinfo
{
  "version": 130200,
  "protocolversion": 70015,
  "blocks": 474554,
  "timeoffset": 0,
  "connections": 13,
  "proxy": "",
  "difficulty": 708659466230.332,
  "testnet": false,
  "relayfee": 0.00001000,
  "errors": ""
}
$ ps -ef | grep bitcoind
bitcoin    735     1  2 Jul05 ?        01:12:04 /home/bitcoinuser/bin/bitcoind -daemon
bitcoin   9141  8496  0 00:21 pts/0    00:00:00 grep bitcoind
$ lsof -i :8333
COMMAND  PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
bitcoind 735 bitcoinuser   11u  IPv6  12806      0t0  TCP *:8333 (LISTEN)
bitcoind 735 bitcoinuser   12u  IPv4  12807      0t0  TCP *:8333 (LISTEN)
bitcoind 735 bitcoinuser   15u  IPv4 433911      0t0  TCP domain.com:56368->z160-151.worldeuserver.org:8333 (ESTABLISHED)
bitcoind 735 bitcoinuser   21u  IPv4  25767      0t0  TCP domain.com:48179->static.246.56.9.5.clients.your-server.de:8333 (ESTABLISHED)
bitcoind 735 bitcoinuser   22u  IPv4  14017      0t0  TCP domain.com:40343->cpe-104-231-36-186.cinci.res.rr.com:8333 (ESTABLISHED)
bitcoind 735 bitcoinuser   27u  IPv4  22613      0t0  TCP domain.com:57026->phobos.wgops.com:8333 (ESTABLISHED)
bitcoind 735 bitcoinuser   28u  IPv4  14016      0t0  TCP domain.com:8333->host-188.65.213.21.knopp.ru:33944 (ESTABLISHED)
bitcoind 735 bitcoinuser   29u  IPv4  25731      0t0  TCP domain.com:8333->dsn-tn-01.scc.kit.edu:59447 (ESTABLISHED)
bitcoind 735 bitcoinuser   30u  IPv4 134987      0t0  TCP domain.com:37322->c-24-245-44-136.hsd1.mn.comcast.net:8333 (ESTABLISHED)
bitcoind 735 bitcoinuser   31u  IPv4  22671      0t0  TCP domain.com:47072->static.145.201.47.78.clients.your-server.de:8333 (ESTABLISHED)
bitcoind 735 bitcoinuser   32u  IPv4  14028      0t0  TCP domain.com:33518->vps.hsmiths.com:8333 (ESTABLISHED)
bitcoind 735 bitcoinuser   33u  IPv4  20413      0t0  TCP domain.com:8333->dsn-bm-01.scc.kit.edu:53367 (ESTABLISHED)
bitcoind 735 bitcoinuser   36u  IPv4  20443      0t0  TCP domain.com:8333->maesa.di.unipi.it:47468 (ESTABLISHED)
bitcoind 735 bitcoinuser   37u  IPv4  14042      0t0  TCP domain.com:35592->216.189.147.181:8333 (ESTABLISHED)
bitcoind 735 bitcoinuser   39u  IPv4  23776      0t0  TCP domain.com:8333->static.120.139.243.136.clients.your-server.de:65444 (ESTABLISHED)
$ lsof -i :8332
COMMAND  PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
bitcoind 735 bitcoinuser   9u  IPv6  12802      0t0  TCP localhost:8332 (LISTEN)
bitcoind 735 bitcoinuser   10u  IPv4  12804      0t0  TCP localhost:8332 (LISTEN)
$ cat ~/.bitcoin/bitcoin.conf
daemon=1
txindex=1
rpcuser=bitcoinuser


Title: Re: Method not found
Post by: achow101 on July 06, 2017, 10:36:24 PM
Code:
$ bitcoin-cli getinfo
{
  "version": 130200,
  "protocolversion": 70015,
  "blocks": 474554,
  "timeoffset": 0,
  "connections": 13,
  "proxy": "",
  "difficulty": 708659466230.332,
  "testnet": false,
  "relayfee": 0.00001000,
  "errors": ""
}
Your install of bitcoind does not have wallet functionality compiled into it. Thus none of the wallet RPC commands will work, and this includes getaddressbyaccount


Title: Re: Method not found
Post by: gelius on July 07, 2017, 12:00:04 AM
Your install of bitcoind does not have wallet functionality compiled into it. Thus none of the wallet RPC commands will work, and this includes getaddressbyaccount
[/quote]
How I can fix this?


Title: Re: Method not found
Post by: achow101 on July 07, 2017, 12:19:49 AM
How I can fix this?
How did you install bitcoind? Did you compile it yourself? Or did you download it from bitcoin.org? Or was it built by someone else and given to you?


Title: Re: Method not found
Post by: gelius on July 07, 2017, 12:57:45 AM
How did you install bitcoind? Did you compile it yourself? Or did you download it from bitcoin.org? Or was it built by someone else and given to you?
I use this instruction:
https://bitcoin.org/en/full-node#other-linux-distributions


Title: Re: Method not found
Post by: achow101 on July 07, 2017, 02:29:26 AM
I use this instruction:
https://bitcoin.org/en/full-node#other-linux-distributions
Bitcoin.org does not distribute binaries without wallet functionality. Are you absolutely sure that you got this from bitcoin.org? Can you try downloading and installing the latest version from bitcoin.org?


Title: Re: Method not found
Post by: gelius on July 07, 2017, 05:43:23 PM
Yes, I sure.
How I can completely uninstall the current version?


Title: Re: Method not found
Post by: achow101 on July 07, 2017, 05:46:26 PM
Yes, I sure.
How I can completely uninstall the current version?
Just delete the binaries: bitcoind, bitcoin-qt, and bitcoin-cli. Although when you install the new version, it should overwrite the binaries that already exist.