Bitcoin Forum
December 12, 2024, 01:50:44 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Method not found  (Read 1032 times)
gelius (OP)
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


View Profile
July 06, 2017, 12:00:00 PM
 #1

Code:
bitcoin-cli getaccountaddress
error code: -32601
error message:
Method not found
bitcoin-cli getaccountaddress ""
error code: -32601
error message:
Method not found
wtf?
mocacinno
Legendary
*
Offline Offline

Activity: 3598
Merit: 5277


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
July 06, 2017, 12:03:47 PM
 #2

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
gelius (OP)
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


View Profile
July 06, 2017, 07:22:58 PM
 #3

Code:
bitcoin-cli help getaccountaddress
help: unknown command: getaccountaddress
$bitcoin-cli help | grep account
$
tspacepilot
Legendary
*
Offline Offline

Activity: 1456
Merit: 1081


I may write code in exchange for bitcoins.


View Profile
July 06, 2017, 07:33:40 PM
 #4

What version are you running?
mocacinno
Legendary
*
Offline Offline

Activity: 3598
Merit: 5277


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
July 06, 2017, 07:38:43 PM
 #5

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
gelius (OP)
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


View Profile
July 06, 2017, 10:26:34 PM
 #6

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
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
July 06, 2017, 10:36:24 PM
 #7

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

gelius (OP)
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


View Profile
July 07, 2017, 12:00:04 AM
 #8

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?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
July 07, 2017, 12:19:49 AM
 #9

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?

gelius (OP)
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


View Profile
July 07, 2017, 12:57:45 AM
 #10

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
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
July 07, 2017, 02:29:26 AM
 #11

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?

gelius (OP)
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


View Profile
July 07, 2017, 05:43:23 PM
 #12

Yes, I sure.
How I can completely uninstall the current version?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
July 07, 2017, 05:46:26 PM
 #13

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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!