Author

Topic: "Cannot obtain a lock on data directory..." (Read 7530 times)

sr. member
Activity: 462
Merit: 250
December 19, 2015, 12:33:32 AM
#4
in centos
default .bitcoind will install in root
how can I change dirdata to folder home

Thanks
member
Activity: 266
Merit: 36
December 15, 2011, 11:28:06 PM
#3
Just to make doubly sure, I restarted the Mac and without doing anything else (other than what automatically happens at startup, e.g., starting my mail client):

~ $ bitcoind -daemon
~ $ bitcoin server starting
# I waited several minutes here for a bash prompt, then hit CR and got it immediately
~ $ bitcoind -rpcallowip=192.168.168.101
Bitcoin: Cannot obtain a lock on data directory /Users/foobar/Library/Application Support/Bitcoin.  Bitcoin is probably already running.
~ $
member
Activity: 266
Merit: 36
December 15, 2011, 11:15:39 PM
#2
Quote
It is bitcoin gui or the daemon running you cannot have both going at the same time they conflict as you have seen already.

But only the daemon (bitcoind) was running.

After my OP I tried to open the GUI version, and it displayed the lock error as I would expect.

Just to make sure, I just did a ps -u, saw only "bitcoind - daemon", issued the -rpcallowip command, and got the same error.
member
Activity: 266
Merit: 36
December 15, 2011, 11:03:12 PM
#1
bitcoind 0.5.1, Mac OS 10.6.7

My first experience with bitcoind:

bitcoind -daemon
--seems OK, I can see the process, seems to be some network traffic.

But...

bitcoind -rpcallowip=192.168.168.321
Bitcoin: Cannot obtain a lock on data directory /Users/foobar/Library/Application Support/Bitcoin.  Bitcoin is probably already running.

Bitcoin is indeed already running.  Do I misunderstand usage?  I thought the daemon would be listening for commands such as rpcallowip.

Jump to: