Bitcoin Forum

Bitcoin => Electrum => Topic started by: globe-biz on July 03, 2015, 08:13:29 PM



Title: Wallet corrupted because of a bad configuration file.Will pay .1 if you help
Post by: globe-biz on July 03, 2015, 08:13:29 PM
Hello, now I can not open my electrum wallet , I am using linux ubuntu based system. It was fine and then now when I try to open the wallet it does not open. Usually when it is stubborn  I type electrum in the command line and it will always start. But now it never starts and when I try to start from the command line it gives me this. I think she is trying to tell me she is sick but I dont understand her language.

electrum
Traceback (most recent call last):
  File "/usr/local/bin/electrum", line 174, in <module>
    config = SimpleConfig(config_options)
  File "/usr/local/lib/python2.7/dist-packages/electrum/simple_config.py", line 33, in __init__
    self.read_user_config()
  File "/usr/local/lib/python2.7/dist-packages/electrum/simple_config.py", line 157, in read_user_config
    raise IOError("Cannot read config file.")
IOError: Cannot read config file.

Any thoughts?


Title: Re: Money lost because of a bad configuration file. $25 if you help me fix this
Post by: globe-biz on July 03, 2015, 10:47:45 PM
I will pay .1 coin or about $25 dollars if someone will come and help me with this


Title: Re: Wallet corrupted because of a bad configuration file.Will pay .1 if you help
Post by: globe-biz on July 03, 2015, 11:46:21 PM
Is it possible to just replace the configuration file with a known good file. How could it become corrupted anyways?


Title: Re: Wallet corrupted because of a bad configuration file.Will pay .1 if you help
Post by: Muhammed Zakir on July 04, 2015, 12:06:13 AM
Delete configuration file from Electrum directory. Electrum directory is ~/.Electrum


Title: Re: Wallet corrupted because of a bad configuration file.Will pay .1 if you help
Post by: globe-biz on July 04, 2015, 05:33:02 PM
Can you give me the path and location for it, I have ubuntu it is more complicated or unknown than windows, for me


Title: Re: Wallet corrupted because of a bad configuration file.Will pay .1 if you help
Post by: globe-biz on July 04, 2015, 05:42:18 PM
No I think I found it.When you enter the home directory there is electrum and I clicked there and there was a configuration file rigth there on entering. I erased it and electrum still will not start, I restarted the computer and still electrum will not start. I now get another message

Traceback (most recent call last):
  File "/usr/local/bin/electrum", line 204, in <module>
    gui.main(url)
  File "/usr/local/lib/python2.7/dist-packages/electrum_gui/qt/__init__.py", line 84, in main
    storage = WalletStorage(self.config)
  File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 82, in __init__
    self.read(self.path)
  File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 123, in read
    raise IOError("Cannot read wallet file.")
IOError: Cannot read wallet file.

Was the the right configuration file or is there another one buried deeper?

Help??


Title: Re: Wallet corrupted because of a bad configuration file.Will pay .1 if you help
Post by: Muhammed Zakir on July 04, 2015, 05:52:47 PM
Can you give me the path and location for it, I have ubuntu it is more complicated or unknown than windows, for me

~/.Electrum is the path.

No I think I found it.When you enter the home directory there is electrum and I clicked there and there was a configuration file rigth there on entering. I erased it and electrum still will not start, I restarted the computer and still electrum will not start. I now get another message

Traceback (most recent call last):
  File "/usr/local/bin/electrum", line 204, in <module>
    gui.main(url)
  File "/usr/local/lib/python2.7/dist-packages/electrum_gui/qt/__init__.py", line 84, in main
    storage = WalletStorage(self.config)
  File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 82, in __init__
    self.read(self.path)
  File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 123, in read
    raise IOError("Cannot read wallet file.")
IOError: Cannot read wallet file.

Was the the right configuration file or is there another one buried deeper?

Help??

Try running sudo electrum.

Btw, which version are you using?


Title: Re: Wallet corrupted because of a bad configuration file.Will pay .1 if you help
Post by: globe-biz on July 04, 2015, 05:54:57 PM
The sudo electrum comand gave the same error message as above
I think it is 1.98 or ? Is there a command i can use to find that?


Title: Re: Wallet corrupted because of a bad configuration file.Will pay .1 if you help
Post by: ArtificialIntelegence on July 05, 2015, 04:33:58 AM
Assuming you haven't upgraded your electrum client like nerioseole asked:


This command will rename your configuration file to to configuration.bak so that Electrum will make a new configuration:

Code:
mv ~/.electrum/config ~/.electrum/config.bak

Next you will want to open Electrum.

It will ask you to import or create a wallet. The importing option only allows for wallet recovery using the seed. Since we want to import your old wallet from a file we just go ahead and create a new wallet so that we can get past this screen. Go ahead and make a new wallet.

Once you have Electrum open like normal, select File, click Open wallet. Your wallet should be there. Select it. Click ok and you should have your wallet back.

If that didn't work for you let me know :)


Handy hint. Files starting with . are considered hidden. Push ctrl + H to show them.


Title: Re: Wallet corrupted because of a bad configuration file.Will pay .1 if you help
Post by: globe-biz on July 05, 2015, 06:36:25 AM
Hello, No I did not upgrade, this just happened and now I can not open the wallet.
I renamed the configuration file like you said with that command and then erased the old one from the folder. I restarted the computer and tried to start electrum but it did not work
I did see that most of the files were hidden but they were not like that before I hope I do not have a virus, people say that linux does not really get viruses but it is still possible so who knows.This is the error message again:

Traceback (most recent call last):
  File "/usr/local/bin/electrum", line 204, in <module>
    gui.main(url)
  File "/usr/local/lib/python2.7/dist-packages/electrum_gui/qt/__init__.py", line 84, in main
    storage = WalletStorage(self.config)
  File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 82, in __init__
    self.read(self.path)
  File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 123, in read
    raise IOError("Cannot read wallet file.")
IOError: Cannot read wallet file.


It is always giving an error that it can not read the wallet file...how can it become corrupted so easy and for no reason...not stable electrum guys !!



Title: Re: Wallet corrupted because of a bad configuration file.Will pay .1 if you help
Post by: ArtificialIntelegence on July 05, 2015, 07:41:41 AM
Do you have the wallet seed or a backup of the wallet? This should have been my first question.

EDIT: do you make backups of your pc at all? You really should. Things can get corrupted. Programs can crash, cosmic rays can corrupt your data etc.. But in your case this may be too late already  :-\