json rpc – bitcoind RPC methods missing on Debian

Originally I installed .bitcoind using --disable-wallet then I later recompiled it with wallet. Not sure if that’s to blame or how to troubleshoot.

Commands like this work:

bitcoin-cli getbestblockhash


but several others do not:

bitcoin-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
error code: -32601
error message:
Method not found

bitcoin-cli getbalance
>error code: -32601
>error message:
>Method not found

Using curl, i.e.

curl --user bitcoinuser --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;'

also results in “method not found”.