Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: "insufficient funds" Help Thread  (Read 971 times)

0 Members and 1 Guest are viewing this topic.

Offline bytemaster

"insufficient funds" Help Thread
« on: September 15, 2014, 01:48:53 PM »

This thread is dedicated to tracking down the bugs people have reported with insufficient funds for transfer. 

After looking over the code it appears that the most likely candidate is a pending transaction that is holding up funds.   If you are unable to transfer funds please post the following:

First for BTSX:
1) Output of "balance" command
2) Output of "wallet_transfer" command.
3) Attempt to "vote" and report the balance after voting as well as the vote transaction.

For BitAssets:
1) Does the account you are sending form have BTSX (to pay fees)

Lastly what does this report?
blockchain_list_pending_transactions

If you don't want to reveal your balance you may scale all values by the *SAME* constant amount.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline Xeldal

Re: "insufficient funds" Help Thread
« Reply #1 on: September 15, 2014, 02:24:33 PM »
Code: [Select]
>> balance

ACCOUNT                         BALANCE                     
============================================================
     
xeldal                        21,935.10245 BTSX       
                                8,074.7998 USD             
                                10. STAR                   

Code: [Select]
>> wallet_transfer 8000 USD xeldal xeldal2

20010 insufficient_funds: insufficient funds

    {"required":"8,000.0000 USD","available":"0.0000 USD"}
    bitshares  wallet.cpp:474 bts::wallet::detail::wallet_impl::withdraw_to_transaction

    {"amount_to_withdraw":{"amount":80000000,"asset_id":22},"from_account_address":"BTSX9XfcNGwAEvFehn2pRDZDSwQPBFNpEXqNJ","trx":{"expiration":"19700101T000000","delegate_slate_id":null,"operations":[],"signatures":[]},"required_signatures":[]}
    bitshares  wallet.cpp:475 bts::wallet::detail::wallet_impl::withdraw_to_transaction

    {"real_amount_to_transfer":8000,"amount_to_transfer_symbol":"USD","paying_account_name":"xeldal","from_account_name":"xeldal","to_account_name":"xeldal2","memo_message":""}
    bitshares  wallet.cpp:4065 bts::wallet::wallet::transfer_asset

    {}
    bitshares  common_api_client.cpp:1043 bts::rpc_stubs::common_api_client::wallet_transfer

    {"command":"wallet_transfer"}
    bitshares  cli.cpp:555 bts::cli::detail::cli_impl::execute_command

I attempted to vote and got the error "insufficient funds"

Code: [Select]
>> wallet_transfer 20000 BTSX xeldal xeldal

20010 insufficient_funds: insufficient funds

    {"required":"20,000.50000 BTSX","available":"1,935.08565 BTSX"}
    bitshares  wallet.cpp:474 bts::wallet::detail::wallet_impl::withdraw_to_transaction

    {"amount_to_withdraw":{"amount":2000050000,"asset_id":0},"from_account_address":"BTSX9XfcNGwAEvFehn2pRDZDSwQPBFNpEXqNJ","trx":{"expiration":"19700101T000000","delegate_slate_id":null,"operations":[{"type":"withdraw_op_type","data":{"balance_id":"BTSXDCfSB6E9LvaiZg45FcLeyXDnLrYKUMjtL","amount":19350856597,"claim_input_data":""}}],"signatures":[]},"required_signatures":["BTSXHyAnXKCDC9eyfV4yqNXfSr1EH3UW3Ukeb"]}
    bitshares  wallet.cpp:475 bts::wallet::detail::wallet_impl::withdraw_to_transaction

    {"real_amount_to_transfer":20000,"amount_to_transfer_symbol":"BTSX","paying_account_name":"xeldal","from_account_name":"xeldal","to_account_name":"xeldal","memo_message":""}
    bitshares  wallet.cpp:4065 bts::wallet::wallet::transfer_asset

    {}
    bitshares  common_api_client.cpp:1043 bts::rpc_stubs::common_api_client::wallet_transfer

    {"command":"wallet_transfer"}

Code: [Select]
>> blockchain_list_pending_transactions

No pending transactions.



Offline yvg1900

Re: "insufficient funds" Help Thread
« Reply #2 on: September 16, 2014, 06:12:36 AM »
Same here:

a) Account created by importing keyhotee founder ID (using brain wallet key)
b) PTS and AGS balances imported manually, each private key separately
c) Keyhotee founder ID reward NOT claimed

Code: [Select]
>> blockchain_list_pending_transactions

No pending transactions.

Code: [Select]
>> balance

ACCOUNT                         BALANCE                     
============================================================
yvg1900                         2,586.15334 BTSX      (scaled, definitely more than 2000)

Code: [Select]
>> wallet_transfer 10 BTSX yvg1900 delegate.yvg1900

20010 insufficient_funds: insufficient funds

    {"required":"10.50000 BTSX","available":"0.00000 BTSX"}
    bitshares  wallet.cpp:474 bts::wallet::detail::wallet_impl::withdraw_to_transaction

    {"amount_to_withdraw":{"amount":1050000,"asset_id":0},"from_account_address":"BTSXFBJiZnJVHSteKTPQo3826o2CDFE3NmNZ5","trx":{"expiration":"19700101T000000","delegate_slate_id":null,"operations":[],"signatures":[]},"required_signatures":[]}
    bitshares  wallet.cpp:475 bts::wallet::detail::wallet_impl::withdraw_to_transaction

    {"real_amount_to_transfer":10,"amount_to_transfer_symbol":"BTSX","paying_account_name":"yvg1900","from_account_name":"yvg1900","to_account_name":"delegate.yvg1900","memo_message":""}
    bitshares  wallet.cpp:4065 bts::wallet::wallet::transfer_asset

    {}
    bitshares  common_api_client.cpp:1043 bts::rpc_stubs::common_api_client::wallet_transfer

    {"command":"wallet_transfer"}
    bitshares  cli.cpp:555 bts::cli::detail::cli_impl::execute_command

Code: [Select]
>> wallet_account_register delegate.yvg1900 yvg1900

20010 insufficient_funds: insufficient funds

    {"required":"0.50000 BTSX","available":"0.00000 BTSX"}
    bitshares  wallet.cpp:474 bts::wallet::detail::wallet_impl::withdraw_to_transaction

    {"amount_to_withdraw":{"amount":50000,"asset_id":0},"from_account_address":"BTSXFBJiZnJVHSteKTPQo3826o2CDFE3NmNZ5","trx":{"expiration":"19700101T000000","delegate_slate_id":null,"operations":[{"type":"register_account_op_type","data":{"name":"delegate.yvg1900","public_data":null,"owner_key":"BTSX7UcvxMxc2NyyneLsf8iimihXWBbAQbwmDRKCjp6LF2pkATXm6F","active_key":"BTSX7UcvxMxc2NyyneLsf8iimihXWBbAQbwmDRKCjp6LF2pkATXm6F","delegate_pay_rate":255,"meta_data":null}}],"signatures":[]},"required_signatures":["BTSXFBJiZnJVHSteKTPQo3826o2CDFE3NmNZ5"]}
    bitshares  wallet.cpp:475 bts::wallet::detail::wallet_impl::withdraw_to_transaction

    {"account_to_register":"delegate.yvg1900","public_data":null,"pay_with_account_name":"yvg1900","delegate_pay_rate":255}
    bitshares  wallet.cpp:4145 bts::wallet::wallet::register_account

    {"account_name":"delegate.yvg1900","data":null}
    bitshares  client.cpp:3205 bts::client::detail::client_impl::wallet_account_register

    {}
    bitshares  common_api_client.cpp:1139 bts::rpc_stubs::common_api_client::wallet_account_register

    {"command":"wallet_account_register"}
    bitshares  cli.cpp:555 bts::cli::detail::cli_impl::execute_command

Any ideas how I can help tracking this issue down?

yvg1900
Follow @yvg1900 on Twitter for yam miner updates and support

Offline bytemaster

Re: "insufficient funds" Help Thread
« Reply #3 on: September 16, 2014, 09:07:00 PM »
I have reproduced the issue and have a fix underway.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline Xeldal

Re: "insufficient funds" Help Thread
« Reply #4 on: September 16, 2014, 09:48:53 PM »
I have reproduced the issue and have a fix underway.

 +5% Fantastic!  :'( :'(

Offline Xeldal

Re: "insufficient funds" Help Thread
« Reply #5 on: September 22, 2014, 08:59:41 PM »
I have reproduced the issue and have a fix underway.

No fix yet? 

Using 0.4.16

still can't sell my bitUSD.  Error insufficient funds.
Cannot transfer or vote .  Error insufficient funds.



Offline vikram

Re: "insufficient funds" Help Thread
« Reply #6 on: September 22, 2014, 11:19:13 PM »
I have reproduced the issue and have a fix underway.

No fix yet? 

Using 0.4.16

still can't sell my bitUSD.  Error insufficient funds.
Cannot transfer or vote .  Error insufficient funds.

Your error messages are strange I am looking into this. Are you still having other problems with missing balances? I remember your other thread where you said you were missing balances.

Offline Xeldal

Re: "insufficient funds" Help Thread
« Reply #7 on: September 22, 2014, 11:41:57 PM »
The balances shown on the Accounts page seem correct and match the output from wallet_account_balance.  However, none of my accounts show any transaction history anymore so the balance in these sections is not showing .  so i can't say whether missing or not.

Although the balances shown seem correct I'm still not able to do anything with them.  I can't send or sell my USD balance.  I can't transfer my BTSX balance.

The insufficient funds error reports that I have "available" 0 USD and much less BTSX then is shown under wallet_account_balance

The error message is much longer this version but reports the same "available" balance as my first post this thread. (which is incorrect)
https://bitsharestalk.org/index.php?topic=8935.msg115841#msg115841


Offline vikram

Re: "insufficient funds" Help Thread
« Reply #8 on: September 23, 2014, 03:31:23 PM »
The balances shown on the Accounts page seem correct and match the output from wallet_account_balance.  However, none of my accounts show any transaction history anymore so the balance in these sections is not showing .  so i can't say whether missing or not.

Although the balances shown seem correct I'm still not able to do anything with them.  I can't send or sell my USD balance.  I can't transfer my BTSX balance.

The insufficient funds error reports that I have "available" 0 USD and much less BTSX then is shown under wallet_account_balance

The error message is much longer this version but reports the same "available" balance as my first post this thread. (which is incorrect)
https://bitsharestalk.org/index.php?topic=8935.msg115841#msg115841

If the output of wallet_account_balance is indeed correct, then I have a possible fix that will be in the next version: https://github.com/BitShares/bitshares_toolkit/commit/fd02b4ec808e16d69f2ab3d4752efd2a3589d8db

Offline pendragon3

Re: "insufficient funds" Help Thread
« Reply #9 on: September 23, 2014, 03:55:41 PM »
I don't think its safe to assume wallet_account_balance in the console is correct. In fact, it's almost surely wrong in some cases.

Recently, I installed 0.4.16 32-bit, and after importing a backup wallet, my BTSX and BitUSD balances disappeared. Also, a lot of the recent transactions are now to "UNKNOWN", and some of the transaction history after about a week ago is missing altogether. Regenerating keys, rescanning, etc. did not help.

The console command for wallet transactions history does seems to give the correct ending balance of xxx,000 BTSX. But both the GUI and the console command wallet_account_balance incorrectly display 0.00 BTSX.

Offline Xeldal

Re: "insufficient funds" Help Thread
« Reply #10 on: September 23, 2014, 04:07:44 PM »
I don't think its safe to assume wallet_account_balance in the console is correct. In fact, it's almost surely wrong in some cases.

Recently, I installed 0.4.16 32-bit, and after importing a backup wallet, my BTSX and BitUSD balances disappeared. Also, a lot of the recent transactions are now to "UNKNOWN", and some of the transaction history after about a week ago is missing altogether. Regenerating keys, rescanning, etc. did not help.

The console command for wallet transactions history does seems to give the correct ending balance of xxx,000 BTSX. But both the GUI and the console command wallet_account_balance incorrectly display 0.00 BTSX.

I agree.  I just installed a fresh copy, imported via private key, regenerated keys, rescaned, and the balance from wallet_account_balance was way off or missing entirely from what I get if I import from a backup and do the exact same process.

Offline modprobe

Re: "insufficient funds" Help Thread
« Reply #11 on: September 23, 2014, 08:10:14 PM »
I don't think its safe to assume wallet_account_balance in the console is correct. In fact, it's almost surely wrong in some cases.

Recently, I installed 0.4.16 32-bit, and after importing a backup wallet, my BTSX and BitUSD balances disappeared. Also, a lot of the recent transactions are now to "UNKNOWN", and some of the transaction history after about a week ago is missing altogether. Regenerating keys, rescanning, etc. did not help.

The console command for wallet transactions history does seems to give the correct ending balance of xxx,000 BTSX. But both the GUI and the console command wallet_account_balance incorrectly display 0.00 BTSX.

I agree.  I just installed a fresh copy, imported via private key, regenerated keys, rescaned, and the balance from wallet_account_balance was way off or missing entirely from what I get if I import from a backup and do the exact same process.

Yes, this is expected behavior. Do not delete your wallet! There is more private data that needs to be kept in order to claim all of your balances than just the account private keys. Primarily, you need the wallet master private key, from which you can regenerate pretty much everything if necessary (though this should be done in emergencies only). If you just create a new wallet and import your account keys, you will not get all of your balances. If you've kept your original wallet, you should have everything you need.

The insufficient funds error you're seeing is hopefully fixed in https://github.com/BitShares/bitshares_toolkit/commit/fd02b4ec808e16d69f2ab3d4752efd2a3589d8db -- when the next version of BTSX is released, try transferring your balances and see if you still get this issue.

Offline Xeldal

Re: "insufficient funds" Help Thread
« Reply #12 on: September 25, 2014, 01:08:38 PM »
The insufficient funds error you're seeing is hopefully fixed in https://github.com/BitShares/bitshares_toolkit/commit/fd02b4ec808e16d69f2ab3d4752efd2a3589d8db -- when the next version of BTSX is released, try transferring your balances and see if you still get this issue.

0.4.17 has fixed the issue with my BTSX insufficient funds error.  However, I still can't sell my bitUSD. 

wallet_account_balance still shows a balance but I continue to get insufficient funds error when trying to sell.
When I enter manually in console I get the following error regardless of how its entered. (I think its a known issue that the syntax requirement here doesn't make any sense)

Code: [Select]
>> wallet_market_submit_ask xeldal 10 USD .030778 BTSX

37001 invalid_market: invalid market

    {"quote_asset_id":0,"base_asset_id":22}
    bitshares  chain_database.cpp:2568 bts::blockchain::chain_database::get_market_bids

    {"quote_symbol":"BTSX","base_symbol":"USD","limit":1}
    bitshares  chain_database.cpp:2589 bts::blockchain::chain_database::get_market_bids

    {}
    bitshares  common_api_client.cpp:1523 bts::rpc_stubs::common_api_client::wallet_market_submit_ask

    {"command":"wallet_market_submit_ask"}
    bitshares  cli.cpp:556 bts::cli::detail::cli_impl::execute_command


>> wallet_market_submit_ask xeldal 10 USD .030778 USD

37001 invalid_market: invalid market

    {"quote_asset_id":22,"base_asset_id":22}
    bitshares  chain_database.cpp:2568 bts::blockchain::chain_database::get_market_bids

    {"quote_symbol":"USD","base_symbol":"USD","limit":1}
    bitshares  chain_database.cpp:2589 bts::blockchain::chain_database::get_market_bids

    {}
    bitshares  common_api_client.cpp:1523 bts::rpc_stubs::common_api_client::wallet_market_submit_ask

    {"command":"wallet_market_submit_ask"}
    bitshares  cli.cpp:556 bts::cli::detail::cli_impl::execute_command


>> wallet_market_submit_ask xeldal 10 USD 32.49 BTSX

37001 invalid_market: invalid market

    {"quote_asset_id":0,"base_asset_id":22}
    bitshares  chain_database.cpp:2568 bts::blockchain::chain_database::get_market_bids

    {"quote_symbol":"BTSX","base_symbol":"USD","limit":1}
    bitshares  chain_database.cpp:2589 bts::blockchain::chain_database::get_market_bids

    {}
    bitshares  common_api_client.cpp:1523 bts::rpc_stubs::common_api_client::wallet_market_submit_ask

    {"command":"wallet_market_submit_ask"}
    bitshares  cli.cpp:556 bts::cli::detail::cli_impl::execute_command

Oddly I am able to transfer the USD from this account to another and that seems to work fine.

But the new account is not able to sell the USD either.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12242
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: "insufficient funds" Help Thread
« Reply #13 on: September 25, 2014, 01:23:19 PM »
Quote
>> wallet_market_submit_ask xeldal 10 USD .030778 BTSX
Not sure about the syntax but I thing that is the wrong way to go .. because it says: "invalid market" .. can't help you though .. couldn't make my head up for how to use ask/bid quote/base :(
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline Xeldal

Re: "insufficient funds" Help Thread
« Reply #14 on: September 25, 2014, 01:40:40 PM »
Your right.  I had the wrong bit backwards.  Hard to keep track of which things need to be backwards and where.

So, this worked in windowGUI console to SELL USD

Code: [Select]
>> wallet_market_submit_bid xeldal 100 BTSX .03077 USD

TIMESTAMP           BLOCK     FROM                TO                  AMOUNT                  MEMO                                        FEE                 ID     
======================================================================================================================================================================
2014-09-25T13:33:21 PENDING   xeldal              BID-3ec11803        3.0770 USD              buy BTSX @ 0.03077 USD / BTSX               0.0457 USD          9966f1f1


Ok so since this worked I tryed again with the GUI MARKET.  It always fails to execute if I tell it to sell my entire balance, but if I reduce the amount by .50 cents it goes through.

Good enough for me. 8)

EDIT: strange gets stranger.  I reduced the max balance order by .50 cents and now I have $1.6461 left.  Lol
Also the "Quantity" and "Cost" fields listed under "Open Orders" are incorrect.  ... And they sold. I wasn't able to get a screen shot. I like the liquidity so far at least!!  :)
« Last Edit: September 25, 2014, 01:48:37 PM by Xeldal »

 

Google+