Post
Topic
Board Development & Technical Discussion
Merits 3 from 2 users
Topic OP
Cannot obtain a lock on data directory /home/ywn/btc_data.
by
ywnasdzkd
on 09/10/2022, 04:01:05 UTC
⭐ Merited by NotATether (2) ,ETFbitcoin (1)
-------------------------------------------------------------------------------------------------------------------------------
ywn@ywn-virtual-machine:~/bitcoin/bin$ bitcoind -connect="18.214.92.184"
Error: Cannot obtain a lock on data directory /home/ywn/btc_data. Bitcoin Core is probably already running.
ywn@ywn-virtual-machine:~/bitcoin/bin$
------------------------------------------------------------------------------------------------------------------------------

The bitcoin node I deployed is running, and I use “ bitcoind -connect="18.214.92.184" ” command to connect to the new node,
 but the above error occurs. what do I do?
I know that connect can be set via config file bitcoin.conf, but I want to set connect dynamically with command.




Ubuntu18
Bitcoin Core version v0.20.1