Post
Topic
Board Bitcoin Technical Support
Merits 3 from 2 users
Re: Cannot obtain a lock on data directory /home/ywn/btc_data.
by
serhack
on 09/10/2022, 19:55:28 UTC
⭐ Merited by NotATether (2) ,ETFbitcoin (1)
Identify all the Bitcoin core processes, kill those "gracely" and then follow the steps that other users indicated. Your device can not obtain a lock on the folder because another process is using it.

Simply running bitcoin-cli stop in a terminal will shut it down. No process identification necessary.

Yes, another possibility. I think you should specify the custom datadir for that.

By the way, if I have more than one Bitcoin node running in the same machine, using that command, what will be the node stopped?