Bitcoin Forum
May 04, 2024, 03:28:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin-0.4.0-linux not running  (Read 2052 times)
rebel (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
November 02, 2011, 02:23:22 PM
Last edit: November 02, 2011, 02:43:26 PM by rebel
 #1

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
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
2112
Legendary
*
Offline Offline

Activity: 2128
Merit: 1065



View Profile
November 02, 2011, 07:41:39 PM
 #2

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.

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
Revalin
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
November 02, 2011, 11:15:01 PM
 #3

"killall -w bitcoin", then try running it again.

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
rebel (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
November 06, 2011, 04:14:48 PM
Last edit: November 07, 2011, 01:11:50 AM by rebel
 #4

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