Bitcoin Forum
May 24, 2024, 07:06:24 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Wallet corrupted because of a bad configuration file.Will pay .1 if you help  (Read 633 times)
globe-biz (OP)
Member
**
Offline Offline

Activity: 162
Merit: 10


View Profile
July 03, 2015, 08:13:29 PM
Last edit: July 03, 2015, 10:48:50 PM by globe-biz
 #1

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?
globe-biz (OP)
Member
**
Offline Offline

Activity: 162
Merit: 10


View Profile
July 03, 2015, 10:47:45 PM
 #2

I will pay .1 coin or about $25 dollars if someone will come and help me with this
globe-biz (OP)
Member
**
Offline Offline

Activity: 162
Merit: 10


View Profile
July 03, 2015, 11:46:21 PM
 #3

Is it possible to just replace the configuration file with a known good file. How could it become corrupted anyways?
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
July 04, 2015, 12:06:13 AM
 #4

Delete configuration file from Electrum directory. Electrum directory is ~/.Electrum

globe-biz (OP)
Member
**
Offline Offline

Activity: 162
Merit: 10


View Profile
July 04, 2015, 05:33:02 PM
 #5

Can you give me the path and location for it, I have ubuntu it is more complicated or unknown than windows, for me
globe-biz (OP)
Member
**
Offline Offline

Activity: 162
Merit: 10


View Profile
July 04, 2015, 05:42:18 PM
 #6

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??
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
July 04, 2015, 05:52:47 PM
 #7

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?

globe-biz (OP)
Member
**
Offline Offline

Activity: 162
Merit: 10


View Profile
July 04, 2015, 05:54:57 PM
 #8

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?
ArtificialIntelegence
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
July 05, 2015, 04:33:58 AM
 #9

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 Smiley


Handy hint. Files starting with . are considered hidden. Push ctrl + H to show them.
globe-biz (OP)
Member
**
Offline Offline

Activity: 162
Merit: 10


View Profile
July 05, 2015, 06:36:25 AM
 #10

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 !!

ArtificialIntelegence
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
July 05, 2015, 07:41:41 AM
Last edit: July 05, 2015, 07:55:16 AM by ArtificialIntelegence
 #11

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  Undecided
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!