Unexpected result after calling RPC 'listaccounts', 'getaccountaddress', 'getreceivedbyaddress' sequentially bitcoin &gt; bitcoin-cli listaccounts
{
  "": 5648.99996160
}

bitcoin &gt; bitcoin-cli getaccountaddress ""
mui4xgNgZBr3XhdL4dDDHkRFEvSXZmSi7t

bitcoin &gt; bitcoin-cli getreceivedbyaddress mui4xgNgZBr3XhdL4dDDHkRFEvSXZmSi7t
0.00000000


I expect it will return 5648.99996160 after calling 'getreceivedbyaddress'.
An account can have multiple associated addresses. Presumably you had another address associated with "" beforehand, and received money using that address.

The getaccountaddress RPC call gives a fresh address. If money had been received already on the previous account address, a new one is created and associated with the account.