Author

Topic: Help with wallet recovery (Read 2327 times)

full member
Activity: 151
Merit: 100
April 30, 2017, 04:07:07 PM
#19
Thanks for the copy/paste of your linux command line. Also thanks to everyone who helped and pointed out the errors.

This thread and the Readme for recovering a wallet helped me and my non-existant linux skills recover 1.14BTC that I thought was lost.

I had a backup of just about 10MB that didnt want to load into the app anymore. Got it decrypted and sent to a new address using wallet-tool, but I struggled for a few hours using VMware, Kubuntu and installing JDK/Maven and getting it (wallet-tool) to compile without any errors. 2nd VM and different versions of the utils got me through it.

Thanks!
staff
Activity: 3374
Merit: 6530
Just writing some code
December 19, 2016, 07:13:09 PM
#18
Ok is the export command supposed to be on its own as you typed it? Because nothing happens after I execute that command.

I will try again this evening.
yes, that is supposed to happen
newbie
Activity: 16
Merit: 0
December 19, 2016, 07:10:43 PM
#17
Ok is the export command supposed to be on its own as you typed it? Because nothing happens after I execute that command.

I will try again this evening.
staff
Activity: 3374
Merit: 6530
Just writing some code
December 19, 2016, 06:57:33 PM
#16
Do
Code:
sudo apt-get update
sudo apt-get install -y openjdk-8-jdk

The export command should have no output. If you do
Code:
echo $PATH
after the export command (or now since you already ran it), you should see something like :/home/user/Desktop/apache-maven-3.3.9 at the end of the output.
newbie
Activity: 16
Merit: 0
December 19, 2016, 06:29:31 PM
#15
This may help:


ubuntu@ubuntu:~/Desktop$ tar xzvf apache-maven-3.3.9-bin.tar.gz export PATH=$PATH:$(pwd)/apache-maven-3.3.9
tar: export: Not found in archive
tar: PATH=/home/ubuntu/bin\:/home/ubuntu/.local/bin\:/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/usr/games\:/usr/local/games\:/snap/bin\:/home/ubuntu/Desktop/apache-maven-3.3.9\:/home/ubuntu/Desktop/apache-maven-3.3.9\:/home/ubuntu/Desktop/apache-maven-3.3.9\:/home/ubuntu/Desktop/apache-maven-3.3.9: Not found in archive
tar: Exiting with failure status due to previous errors
newbie
Activity: 16
Merit: 0
December 19, 2016, 06:14:14 PM
#14
Can you confirm this is correct for Java install?


ubuntu@ubuntu:~/Desktop$ sudo apt-get install -y openjdk-8-jdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  ca-certificates-java fonts-dejavu-extra java-common libbonobo2-0
  libbonobo2-common libgif7 libgnome-2-0 libgnome2-common libgnomevfs2-0
  libgnomevfs2-common libice-dev liborbit-2-0 libpthread-stubs0-dev libsm-dev
  libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxt-dev
  openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless
  x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools
  xtrans-dev
Suggested packages:
  default-jre libbonobo2-bin desktop-base libgnomevfs2-bin libgnomevfs2-extra
  gamin | fam gnome-mime-data libice-doc libsm-doc libxcb-doc libxt-doc
  openjdk-8-demo openjdk-8-source visualvm icedtea-8-plugin
  openjdk-8-jre-jamvm fonts-ipafont-gothic fonts-ipafont-mincho
  ttf-wqy-microhei | ttf-wqy-zenhei fonts-indic
The following NEW packages will be installed:
  ca-certificates-java fonts-dejavu-extra java-common libbonobo2-0
  libbonobo2-common libgif7 libgnome-2-0 libgnome2-common libgnomevfs2-0
  libgnomevfs2-common libice-dev liborbit-2-0 libpthread-stubs0-dev libsm-dev
  libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxt-dev
  openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless
  x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools
  xtrans-dev
0 upgraded, 29 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.5 MB/41.4 MB of archives.
After this operation, 169 MB of additional disk space will be used.
Err:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre-headless amd64 8u91-b14-0ubuntu4~16.04.1
  404  Not Found [IP: 91.189.88.161 80]
Ign:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre amd64 8u91-b14-0ubuntu4~16.04.1
Ign:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk-headless amd64 8u91-b14-0ubuntu4~16.04.1
Ign:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk amd64 8u91-b14-0ubuntu4~16.04.1
Err:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre-headless amd64 8u91-b14-0ubuntu4~16.04.1
  404  Not Found [IP: 91.189.88.161 80]
Err:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre amd64 8u91-b14-0ubuntu4~16.04.1
  404  Not Found [IP: 91.189.88.161 80]
Err:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk-headless amd64 8u91-b14-0ubuntu4~16.04.1
  404  Not Found [IP: 91.189.88.161 80]
Err:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk amd64 8u91-b14-0ubuntu4~16.04.1
  404  Not Found [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-jre-headless_8u91-b14-0ubuntu4~16.04.1_amd64.deb  404  Not Found [IP: 91.189.88.161 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-jre_8u91-b14-0ubuntu4~16.04.1_amd64.deb  404  Not Found [IP: 91.189.88.161 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-jdk-headless_8u91-b14-0ubuntu4~16.04.1_amd64.deb  404  Not Found [IP: 91.189.88.161 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-jdk_8u91-b14-0ubuntu4~16.04.1_amd64.deb  404  Not Found [IP: 91.189.88.161 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?



Then... Maven

ubuntu@ubuntu:~/Desktop$ tar xzvf apache-maven-3.3.9-bin.tar.gz
apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar
apache-maven-3.3.9/lib/maven-embedder-3.3.9.jar
apache-maven-3.3.9/lib/maven-settings-3.3.9.jar
apache-maven-3.3.9/lib/plexus-utils-3.0.22.jar
apache-maven-3.3.9/lib/maven-core-3.3.9.jar
apache-maven-3.3.9/lib/maven-model-3.3.9.jar
apache-maven-3.3.9/lib/commons-lang3-3.4.jar
apache-maven-3.3.9/lib/maven-settings-builder-3.3.9.jar
apache-maven-3.3.9/lib/maven-builder-support-3.3.9.jar
apache-maven-3.3.9/lib/plexus-interpolation-1.21.jar
apache-maven-3.3.9/lib/plexus-component-annotations-1.6.jar
apache-maven-3.3.9/lib/plexus-sec-dispatcher-1.3.jar
apache-maven-3.3.9/lib/plexus-cipher-1.7.jar
apache-maven-3.3.9/lib/maven-repository-metadata-3.3.9.jar
apache-maven-3.3.9/lib/maven-artifact-3.3.9.jar
apache-maven-3.3.9/lib/maven-plugin-api-3.3.9.jar
apache-maven-3.3.9/lib/org.eclipse.sisu.plexus-0.3.2.jar
apache-maven-3.3.9/lib/cdi-api-1.0.jar
apache-maven-3.3.9/lib/jsr250-api-1.0.jar
apache-maven-3.3.9/lib/javax.inject-1.jar
apache-maven-3.3.9/lib/org.eclipse.sisu.inject-0.3.2.jar
apache-maven-3.3.9/lib/maven-model-builder-3.3.9.jar
apache-maven-3.3.9/lib/guava-18.0.jar
apache-maven-3.3.9/lib/maven-aether-provider-3.3.9.jar
apache-maven-3.3.9/lib/aether-api-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/aether-spi-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/aether-util-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/aether-impl-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/guice-4.0-no_aop.jar
apache-maven-3.3.9/lib/aopalliance-1.0.jar
apache-maven-3.3.9/lib/maven-compat-3.3.9.jar
apache-maven-3.3.9/lib/wagon-provider-api-2.10.jar
apache-maven-3.3.9/lib/slf4j-api-1.7.5.jar
apache-maven-3.3.9/lib/commons-cli-1.2.jar
apache-maven-3.3.9/lib/wagon-http-2.10-shaded.jar
apache-maven-3.3.9/lib/wagon-http-shared-2.10.jar
apache-maven-3.3.9/lib/jsoup-1.7.2.jar
apache-maven-3.3.9/lib/commons-lang-2.6.jar
apache-maven-3.3.9/lib/commons-io-2.2.jar
apache-maven-3.3.9/lib/wagon-file-2.10.jar
apache-maven-3.3.9/lib/aether-connector-basic-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/aether-transport-wagon-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/slf4j-simple-1.7.5.jar
apache-maven-3.3.9/README.txt
apache-maven-3.3.9/LICENSE
apache-maven-3.3.9/NOTICE
apache-maven-3.3.9/lib/
apache-maven-3.3.9/lib/aether-api.license
apache-maven-3.3.9/lib/aether-connector-basic.license
apache-maven-3.3.9/lib/aether-impl.license
apache-maven-3.3.9/lib/aether-spi.license
apache-maven-3.3.9/lib/aether-transport-wagon.license
apache-maven-3.3.9/lib/aether-util.license
apache-maven-3.3.9/lib/cdi-api.license
apache-maven-3.3.9/lib/commons-lang3.license
apache-maven-3.3.9/lib/jsoup.license
apache-maven-3.3.9/lib/jsr250-api.license
apache-maven-3.3.9/lib/maven-aether-provider.license
apache-maven-3.3.9/lib/maven-artifact.license
apache-maven-3.3.9/lib/maven-builder-support.license
apache-maven-3.3.9/lib/maven-compat.license
apache-maven-3.3.9/lib/maven-core.license
apache-maven-3.3.9/lib/maven-embedder.license
apache-maven-3.3.9/lib/maven-model-builder.license
apache-maven-3.3.9/lib/maven-model.license
apache-maven-3.3.9/lib/maven-plugin-api.license
apache-maven-3.3.9/lib/maven-repository-metadata.license
apache-maven-3.3.9/lib/maven-settings-builder.license
apache-maven-3.3.9/lib/maven-settings.license
apache-maven-3.3.9/lib/org.eclipse.sisu.inject.license
apache-maven-3.3.9/lib/org.eclipse.sisu.plexus.license
apache-maven-3.3.9/lib/plexus-cipher.license
apache-maven-3.3.9/lib/plexus-sec-dispatcher.license
apache-maven-3.3.9/lib/slf4j-api.license
apache-maven-3.3.9/lib/slf4j-simple.license
apache-maven-3.3.9/lib/wagon-file.license
apache-maven-3.3.9/lib/wagon-http-shared.license
apache-maven-3.3.9/lib/wagon-http.license
apache-maven-3.3.9/lib/wagon-provider-api.license
apache-maven-3.3.9/bin/m2.conf
apache-maven-3.3.9/bin/mvn.cmd
apache-maven-3.3.9/bin/mvnDebug.cmd
apache-maven-3.3.9/bin/mvn
apache-maven-3.3.9/bin/mvnDebug
apache-maven-3.3.9/bin/mvnyjp
apache-maven-3.3.9/conf/
apache-maven-3.3.9/conf/logging/
apache-maven-3.3.9/conf/logging/simplelogger.properties
apache-maven-3.3.9/conf/settings.xml
apache-maven-3.3.9/conf/toolchains.xml
apache-maven-3.3.9/lib/ext/
apache-maven-3.3.9/lib/ext/README.txt

But I can't get anywhere with this:  export PATH=$PATH:$(pwd)/apache-maven-3.3.9

Is this a proper command or am I not understanding how it is to be used?

It appears Maven is not installed as I still get the same error with BitcoinJ
staff
Activity: 3374
Merit: 6530
Just writing some code
December 19, 2016, 04:55:29 PM
#13
I am not familiar with Linux.  How can I tell if the updater is running?
With Ubuntu there is usually an icon in the launcher bar with the Software Updater. If it isn't there, the updater shouldn't be running. You can also open the Ubuntu Software Center and if something is being installed or updating, the progress tab should show that.

Can't get past that last line of commands you suggested.
How so?
newbie
Activity: 16
Merit: 0
December 19, 2016, 04:52:34 PM
#12
I am not familiar with Linux.  How can I tell if the updater is running?

Can't get past that last line of commands you suggested.
staff
Activity: 3374
Merit: 6530
Just writing some code
December 19, 2016, 04:41:39 PM
#11
ubuntu@ubuntu:~/Desktop/bitcoinj/tools$ cd ~/Desktop
ubuntu@ubuntu:~/Desktop$ sudo apt-get install -y openjdk-8-jdk
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Do you have something else that is being installed at the same time or is the updater running? If so, you will have to wait for that to finish before running this command.

ubuntu@ubuntu:~/Desktop$ wget http://mirrors.koehn.com/pache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
--2016-12-19 20:16:09--  http://mirrors.koehn.com/pache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
Resolving mirrors.koehn.com (mirrors.koehn.com)... 74.91.25.210, 2604:4300:a:22::2
Connecting to mirrors.koehn.com (mirrors.koehn.com)|74.91.25.210|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-12-19 20:16:09 ERROR 404: Not Found.

not sure what I am doing wrong here.
Instead of that command, just go to https://maven.apache.org/download.cgi and download the Binary tar.gz archive instead. Then do the rest of the commands.
hero member
Activity: 672
Merit: 504
a.k.a. gurnec on GitHub
December 19, 2016, 04:37:52 PM
#10
I realize I may be a bit late here to be helpful, but if your wallet was created by Bitcoin Wallet v4.0 or later (released Oct 2014), it may be easier to extract the seed with this tool and restore it into a compatible wallet such as MultiBit HD.
newbie
Activity: 16
Merit: 0
December 19, 2016, 04:33:09 PM
#9
ubuntu@ubuntu:~/Desktop/bitcoinj/tools$ cd ~/Desktop
ubuntu@ubuntu:~/Desktop$ sudo apt-get install -y openjdk-8-jdk
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
ubuntu@ubuntu:~/Desktop$ wget http://mirrors.koehn.com/pache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
--2016-12-19 20:16:09--  http://mirrors.koehn.com/pache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
Resolving mirrors.koehn.com (mirrors.koehn.com)... 74.91.25.210, 2604:4300:a:22::2
Connecting to mirrors.koehn.com (mirrors.koehn.com)|74.91.25.210|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-12-19 20:16:09 ERROR 404: Not Found.

not sure what I am doing wrong here.
staff
Activity: 3374
Merit: 6530
Just writing some code
December 19, 2016, 04:10:02 PM
#8
You have to install Java 6+ and Maven.

Type in the terminal:
Code:
cd ~/Desktop
sudo apt-get install -y openjdk-8-jdk
wget http://mirrors.koehn.com/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar xzvf apache-maven-3.3.9-bin.tar.gz
export PATH=$PATH:$(pwd)/apache-maven-3.3.9

Then do the other commands to use wallet-tool again.
newbie
Activity: 16
Merit: 0
December 19, 2016, 03:46:25 PM
#7
Then, installed BitcoinJ but can't seem to use wallet-tool

ubuntu@ubuntu:~/Desktop$ git clone -b release-0.14 https://github.com/bitcoinj/bitcoinj.git
Cloning into 'bitcoinj'...
remote: Counting objects: 50980, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 50980 (delta 2), reused 1 (delta 1), pack-reused 50972
Receiving objects: 100% (50980/50980), 17.19 MiB | 330.00 KiB/s, done.
Resolving deltas: 100% (25145/25145), done.
Checking connectivity... done.
ubuntu@ubuntu:~/Desktop$ cd bitcoinj/tools
ubuntu@ubuntu:~/Desktop/bitcoinj/tools$ ./wallet-tool
Compiling WalletTool to a JAR
./wallet-tool: line 9: mvn: command not found
ubuntu@ubuntu:~/Desktop/bitcoinj/tools$ ./wallet-tool reset --wallet=/tmp/bitcoin-wallet-decrypted-backup
Compiling WalletTool to a JAR
./wallet-tool: line 9: mvn: command not found
ubuntu@ubuntu:~/Desktop/bitcoinj/tools$ ./wallet-tool
Compiling WalletTool to a JAR
./wallet-tool: line 9: mvn: command not found
newbie
Activity: 16
Merit: 0
December 19, 2016, 03:26:13 PM
#6
this is what I have next:

ubuntu@ubuntu:~/Desktop$ git clone -b release-0.14 https://github.com/bitcoinj/bitcoinj.git
The program 'git' is currently not installed. You can install it by typing:
sudo apt install git
ubuntu@ubuntu:~/Desktop$ sudo apt install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,760 kB of archives.
After this operation, 25.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 liberror-perl all 0.17-1.2 [19.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 git-man all 1:2.7.4-0ubuntu1 [735 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 git amd64 1:2.7.4-0ubuntu1 [3,006 kB]
Fetched 3,760 kB in 10s (361 kB/s)                                             
Selecting previously unselected package liberror-perl.
(Reading database ... 191931 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17-1.2_all.deb ...
Unpacking liberror-perl (0.17-1.2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.7.4-0ubuntu1_all.deb ...
Unpacking git-man (1:2.7.4-0ubuntu1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.7.4-0ubuntu1_amd64.deb ...
Unpacking git (1:2.7.4-0ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up liberror-perl (0.17-1.2) ...
Setting up git-man (1:2.7.4-0ubuntu1) ...
Setting up git (1:2.7.4-0ubuntu1) ...
ubuntu@ubuntu:~/Desktop$ cd bitcoinj/tools
bash: cd: bitcoinj/tools: No such file or directory
ubuntu@ubuntu:~/Desktop$ cd bitcoinj/tools ./wallet-tool
bash: cd: bitcoinj/tools: No such file or directory
ubuntu@ubuntu:~/Desktop$ cd bitcoinj/tools
bash: cd: bitcoinj/tools: No such file or directory
newbie
Activity: 16
Merit: 0
December 19, 2016, 03:05:22 PM
#5
Ok, wow it now appears as though I have the decrypted backup.  How can I restore this to a new wallet?
staff
Activity: 3374
Merit: 6530
Just writing some code
December 19, 2016, 02:57:04 PM
#4
You are in the wrong folder. Type

Code:
cd Desktop

in the terminal then try the other command again.
newbie
Activity: 16
Merit: 0
December 19, 2016, 02:47:53 PM
#3
I have entered:

openssl enc -d -aes-256-cbc -a -in bitcoin-wallet-backup-2015-05-03 > bitcoin-wallet-decrypted-backup

I get:

ubuntu@ubuntu:~$ openssl enc -d -aes-256-cbc -a -in bitcoin-wallet-backup-2015-05-03 > bitcoin-wallet-decrypted-backup
bitcoin-wallet-backup-2015-05-03: No such file or directory
140286261651096:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('bitcoin-wallet-backup-2015-05-03','r')
140286261651096:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:

The wallet is called: bitcoin-wallet-backup-2015-05-03   
It is on the desktop

staff
Activity: 3374
Merit: 6530
Just writing some code
December 19, 2016, 01:41:02 PM
#2
What have you done so far? Can you show what the console output of everything that you have already done?
newbie
Activity: 16
Merit: 0
December 19, 2016, 01:24:28 PM
#1
I am wondering if someone would be willing to assist me with a wallet recovery?  I am not experienced with Linux or programming whatsoever. 

The problem I have is:

I used the Android Bitcoin Wallet app as a wallet for mining on a stand alone miner.  It was setup as a temp wallet and I forgot to switch to a proper one.  Now the wallet crashes all the time and will not let me open.  I spoke to the Dev and they suggested following the instructions here to try and recover the wallet:

https://raw.githubusercontent.com/bitcoin-wallet/bitcoin-wallet/master/wallet/README.recover

The problem is I cannot get past some of the commands in Ubuntu as I have no idea what it is saying back to me and I do not know if my commands are exactly correct.

I have a backup of the wallet on the PC and I need to decrypt it using the instructions on the page above but I cannot get that far.  Is there anyone that would be willing to assist me in getting these commands correct and attempting to decrypt and recover this wallet?

Thank you
Jump to: