Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: rebel on November 02, 2011, 02:23:22 PM



Title: bitcoin-0.4.0-linux not running
Post by: rebel on November 02, 2011, 02:23:22 PM
Using Ubuntu 10.04.

I had to reinstall Bitcoin. First I deleted  /bitcoin-0.4.0-linux  as well as  /.bitcoin  and reinstalled bitcoin-0.4.0-linux from SourceForge.net.
After untarring I have a new /bitcoin-0.4.0-linux and a new /.bitcoin  in home.

But it does not run. Keeps telling me that it 'Cannot obtain a lock on data directory'  and is probably already running .

I checked on this forum and tried 'netstat -tanp | grep -w 8333' - don't really know what it means but it gave me:
 tcp        0      0 0.0.0.0:8333            0.0.0.0:*               LISTEN      1579/bitcoin  

Please walk me through this .   (yes : I have a backup of the wallet!)

Thanks


Title: Re: bitcoin-0.4.0-linux not running
Post by: 2112 on November 02, 2011, 07:41:39 PM
tcp        0      0 0.0.0.0:8333            0.0.0.0:*               LISTEN      1579/bitcoin  
What does "ps -fp1579" show?

Seems like process id 1579 is still running. Probably you forgot to stop the bitcoin process before removing the bitcoin files. Any Unix allows open files to be deleted, but they are just unlinked. They will get deleted as soon as the last open handle closes.

You could just try "kill -9 1579", although I wouldn't recommend it without checking first.


Title: Re: bitcoin-0.4.0-linux not running
Post by: Revalin on November 02, 2011, 11:15:01 PM
"killall -w bitcoin", then try running it again.


Title: Re: bitcoin-0.4.0-linux not running
Post by: rebel on November 06, 2011, 04:14:48 PM
Still not working.

When I start '...../bitcoin-0.4.0-linux/bin/32/bitcoin'   or '...../bitcoin-0.4.0-linux/bin/32/bitcoind' i can see in the System Monitor that bitcoin is 'Running' :  %CPU  goes up to 80 and it shows the port# as ID - but then it quiets down and it is 'Sleeping" and the CPU stays at 0. And it stays so apparently forever.

And 'sudo netstat -tanp | grep -w 8333'   gives:
tcp        0      0 0.0.0.0:8333            0.0.0.0:*               LISTEN      3440/bitcoin  

' kill -9 3440 '  gets executed with no comment.
And afterwards : " killall -w bitcoin "   gives:   'bitcoin: no process found'

2 or 3 days ago  bitcoin started and I let it run overnight to download all the blocks. Afterwards it started sporadically  but now it again does not start at all.

 I would very much appreciate to hear any additional suggestions to solve this problem.

Thanks