Bitcoin Forum

Bitcoin => Wallet software => Topic started by: ehmdjii on September 08, 2012, 03:06:26 PM



Title: coins stuck in electrum client
Post by: ehmdjii on September 08, 2012, 03:06:26 PM
hello, i have a couple of coins in an electrum wallet but when i try to send them somewhere, i always get the error message "not enough funds" no matter how much i try to send or how high i set the fee.

no addresses are frozen or prioritized.

i have already tried regenerating the wallet from the seed but always get the same error.

any possibilities to save those 2 coins?

http://www.deviantsart.com/1sdk5re.jpg


Title: Re: coins stuck in electrum client
Post by: flatfly on September 08, 2012, 08:43:24 PM
hello, i have a couple of coins in an electrum wallet but when i try to send them somewhere, i always get the error message "not enough funds" no matter how much i try to send or how high i set the fee.

no addresses are frozen or prioritized.

i have already tried regenerating the wallet from the seed but always get the same error.

any possibilities to save those 2 coins?

http://www.deviantsart.com/1sdk5re.jpg

Not sure what the problem is, hopefully someone else will help out.

EDIT: I notice you are still on version 0.61, perhaps you could try to upgrade?


Title: Re: coins stuck in electrum client
Post by: ehmdjii on September 08, 2012, 09:25:32 PM
well the problem is that i have 2.1 BTC but cant send them.

i have already tried 0.64 and 1.0 but still the same problem.


Title: Re: coins stuck in electrum client
Post by: vuce on September 09, 2012, 07:28:26 AM
Same problem here. It will send anything up to the last few bitcoins. That's on 1.01.


Title: Re: coins stuck in electrum client
Post by: ThomasV on September 09, 2012, 07:57:32 AM
can you try to create the transaction in text mode?
this will show us if it is a gui problem or not.

to keep it reproducible, do not actually send the coins, use the 'mktx' command instead: it will dump the raw transaction on the screen


Title: Re: coins stuck in electrum client
Post by: ehmdjii on September 09, 2012, 08:42:23 PM
can you try to create the transaction in text mode?
this will show us if it is a gui problem or not.

to keep it reproducible, do not actually send the coins, use the 'mktx' command instead: it will dump the raw transaction on the screen

this is the output:

Code:
Traceback (most recent call last):
  File "/usr/local/bin/electrum", line 465, in <module>
    fee = options.tx_fee, change_addr = change_addr, from_addr = from_addr )
  File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 925, in                                   mktx
    raise BaseException("Not enough funds")
BaseException: Not enough funds
None


Title: Re: coins stuck in electrum client
Post by: ThomasV on September 09, 2012, 11:07:51 PM
I have been talking with vuce and we have found the cause for that bug: the server sent corrupted data.
[the server sent an unspent tx output without 'raw_output_script' field, I believe this might have been caused by a reorg.]

You should be able to recover your coins by regenerating your wallet from seed on another server, different from the server that sent you incorrect data.
Please let me know if it works.

Another problem is with the current protocol, which is not robust enough. The protocol should use a hash of the complete history of each address in order to determine whether the history needs an update. It is not doing that now, which is why it is not sufficient to simply connect to another server. This was one of the things I wish I had time to fix before genjix took over. I hope this gets fixed (as well as the server issue).



Title: Re: coins stuck in electrum client
Post by: ehmdjii on September 10, 2012, 07:35:46 AM
You should be able to recover your coins by regenerating your wallet from seed on another server, different from the server that sent you incorrect data.
Please let me know if it works.

tried to regenerate the wallet on multiple servers, but i still always get the same error. could you name a server where this should work?

are you planning on fixing this bug?


Title: Re: coins stuck in electrum client
Post by: ThomasV on September 10, 2012, 08:20:01 AM
You should be able to recover your coins by regenerating your wallet from seed on another server, different from the server that sent you incorrect data.
Please let me know if it works.
tried to regenerate the wallet on multiple servers, but i still always get the same error. could you name a server where this should work?

I cannot be 100% sure that your problem is exactly the same as what vuce encountered.
I remember that you reported strange problems associated with your wallet on irc (inability to regenerate the same key sequence), which does not make sense with this bug.
Therefore the bug you have might be different.


Quote
are you planning on fixing this bug?

I am no longer an active developer.
I do still help answer questions and diagnose bugs, in order to ensure a smooth transition, but I try not to get involved in development.
Thus I hope this bug will be fixed by the current team.


Title: Re: coins stuck in electrum client
Post by: flatfly on September 10, 2012, 08:26:47 AM
ThomasV, is it possible to extract private keys for individual addresses generated by the deterministic wallet? If so, this user could get access to his coins without waiting for a fix...


Title: Re: coins stuck in electrum client
Post by: ThomasV on September 10, 2012, 08:29:56 AM
ThomasV, is it possible to extract private keys for individual addresses generated by the deterministic wallet? If so, this user could get access to his coins without waiting for a fix...

yes, it is always possible to do that. type "electrum addresses -ak" to dump your addresses and private keys. (sorry I should have mentioned that)


Title: Re: coins stuck in electrum client
Post by: ehmdjii on September 10, 2012, 09:01:36 AM
I cannot be 100% sure that your problem is exactly the same as what vuce encountered.
I remember that you reported strange problems associated with your wallet on irc (inability to regenerate the same key sequence), which does not make sense with this bug.
Therefore the bug you have might be different.
yes i had this strange problem, but with 0.64 only.
with 0.61 i can successfully regenerate my wallet from seed.

Quote
I am no longer an active developer.
I do still help answer questions and diagnose bugs, in order to ensure a smooth transition, but I try not to get involved in development.
Thus I hope this bug will be fixed by the current team.

sure, but do the active developers know enough about this bug to fix it?


btw, i am willing to sell my seed for investigation and bugfixing purposes.


Title: Re: coins stuck in electrum client
Post by: ehmdjii on September 10, 2012, 09:02:17 AM
ThomasV, is it possible to extract private keys for individual addresses generated by the deterministic wallet? If so, this user could get access to his coins without waiting for a fix...
interesting, how exactly can this be done?


Title: Re: coins stuck in electrum client
Post by: ThomasV on September 10, 2012, 11:05:37 AM
ThomasV, is it possible to extract private keys for individual addresses generated by the deterministic wallet? If so, this user could get access to his coins without waiting for a fix...
interesting, how exactly can this be done?
just read my answer two posts above. :-(


Title: Re: coins stuck in electrum client
Post by: DutchBrat on September 10, 2012, 11:19:54 AM
ThomasV, is it possible to extract private keys for individual addresses generated by the deterministic wallet? If so, this user could get access to his coins without waiting for a fix...
interesting, how exactly can this be done?
just read my answer two posts above. :-(

If you are running electrum on Windows, you should start electrum while holding the <SHIFT> key to get into command-line mode


Title: Re: coins stuck in electrum client
Post by: ehmdjii on September 10, 2012, 11:22:47 AM
ThomasV, is it possible to extract private keys for individual addresses generated by the deterministic wallet? If so, this user could get access to his coins without waiting for a fix...
interesting, how exactly can this be done?
just read my answer two posts above. :-(

sorry, what i meant with this question was: how can i use those private keys to get my coins back?

btw, if i start electrum -ak it just launches the gui client normally like without any parameters. where can i find those private keys?


Title: Re: coins stuck in electrum client
Post by: ehmdjii on September 11, 2012, 08:31:32 AM
so, i managed to reimport the addresses containing coins into a new electrum wallet.

however i still have the same problem with them. "not enough funds" when trying to send any amount of coins.


Title: Re: coins stuck in electrum client
Post by: flatfly on September 11, 2012, 08:37:44 AM
so, i managed to reimport the addresses containing coins into a new electrum wallet.

however i still have the same problem with them. "not enough funds" when trying to send any amount of coins.

Actually, the workaround I had in mind is to import those addresses into another client (such as bitcoin-qt, multibit, or blockchain.info), and spend the coins from there (even sending them back into a new electrum address should fix it, I guess)


Title: Re: coins stuck in electrum client
Post by: genjix on September 11, 2012, 11:29:03 AM
Haven't been able to develop Electrum during last 2 weeks. I'm the main organiser of the Bitcoin conference and it's taking up all of my waking hours.

Once it's over, I plan to get back onto finishing the next release of Electrum. I'll definitely be investigating this. Could you send me an email next Tuesday to genjix@riseup.net? (Don't send it now otherwise it will get lost - I'm getting dozens of emails)


Title: Re: coins stuck in electrum client
Post by: ehmdjii on September 11, 2012, 01:53:22 PM
so, i managed to reimport the addresses containing coins into a new electrum wallet.

however i still have the same problem with them. "not enough funds" when trying to send any amount of coins.

Actually, the workaround I had in mind is to import those addresses into another client (such as bitcoin-qt, multibit, or blockchain.info), and spend the coins from there (even sending them back into a new electrum address should fix it, I guess)
alright! that did work! got my coins!

thanks!


Title: Re: coins stuck in electrum client
Post by: ThomasV on September 11, 2012, 02:06:38 PM
alright! that did work! got my coins!

good. In order to help developers fix this bug, could you post the bitcoin address that was causing problem?


Title: Re: coins stuck in electrum client
Post by: ehmdjii on September 11, 2012, 03:32:25 PM
alright! that did work! got my coins!

good. In order to help developers fix this bug, could you post the bitcoin address that was causing problem?

this is the transaction:
https://blockchain.info/tx/314082dbf043270c6f83da5130a235a9f06db8b81acf639b32c7cd3b95510972

the 3 inputs are the problematic addresses.


Title: Re: coins stuck in electrum client
Post by: TonyT on October 31, 2014, 03:25:56 PM
so, i managed to reimport the addresses containing coins into a new electrum wallet.

however i still have the same problem with them. "not enough funds" when trying to send any amount of coins.

Actually, the workaround I had in mind is to import those addresses into another client (such as bitcoin-qt, multibit, or blockchain.info), and spend the coins from there (even sending them back into a new electrum address should fix it, I guess)
alright! that did work! got my coins!

thanks!

I get the same error in Electrum 1.9.8 with 0.0004 BTC stuck in the wallet.  That's about $0.16 USD and not worth fighting over (I plan to uninstall Electrum).

TonyT


Title: Re: coins stuck in electrum client
Post by: Valt on August 03, 2017, 08:27:35 PM
I'm getting this same error in the latest wallet version 2.9.0

I guess this bug will never be fixed.


Title: Re: coins stuck in electrum client
Post by: john2231 on August 03, 2017, 11:26:00 PM
I'm getting this same error in the latest wallet version 2.9.0

I guess this bug will never be fixed.
This is an old thread and you are just bring this back alive..
Let me know your bitcoin address to know if you bitcoin address are still holding some bitcoins..
And also try to check the preferences and check the good fee here https://bitcoinfees.21.co/
or set it into 0.0014 and try to send your coins to other bitcoin address..

If not working you can also try this one goto to addresses and look for the address with bitcoin and right click and choose send from and try to send it to your new bitcoin address you own..


Title: Re: coins stuck in electrum client
Post by: Valt on August 09, 2017, 09:27:10 PM
I'm getting this same error in the latest wallet version 2.9.0

I guess this bug will never be fixed.
This is an old thread and you are just bring this back alive..
Let me know your bitcoin address to know if you bitcoin address are still holding some bitcoins..
And also try to check the preferences and check the good fee here https://bitcoinfees.21.co/
or set it into 0.0014 and try to send your coins to other bitcoin address..

If not working you can also try this one goto to addresses and look for the address with bitcoin and right click and choose send from and try to send it to your new bitcoin address you own..

I had a small test transaction that seemed to block transfers of my remaining coins.
In the end it cleared itself after a couple of days and I was able to move my coins again.