Delete the LOCK
file in geth
It is possible that this file was left after a forced shut down and it's preventing further synchronization.
How do I find it?
The Ethereum Wallet is installed in different locations depending on your operating system:
~/.ethereum
on Linux
~/Library/Ethereum
on OS X
~/AppData/Roaming/Ethereum
on Windows
You may need to show hidden files to see these directories on your system.
Locate the geth
sub-directory and delete the file named LOCK
. This should enable geth
to proceed with synchronization.
How do I sync from scratch now the lock is gone?
If you want to restart synchronization from scratch, as fast as possible, then you need to delete the contents of the chaindata
sub-directory (same level as the geth
directory earlier). You can do this through geth
by issuing the command
geth removedb
If that command hangs, then you've still got the LOCK
issue so delete it again.
To start synchronization issue the command
geth --syncmode=fast --cache 1024
In a few seconds your screen should be filled with block downloads. If you have a lot of memory consider --cache 2048
.