Cannot obtain a lock on data directory #26397

issue zx0922 opened this issue on October 26, 2022
  1. zx0922 commented at 4:19 PM on October 26, 2022: none

    I got error while launch bitcoin core 23.0 on macos after I set data loction on my remote NAS, Error: Cannot obtain a lock on data directory /Volumes/Bitcoin Core Data. Bitcoin Core is probably already running.

    It's still error after I reinstall. And I can not find setting file at ~/Library/Application Support/Bitcoin/

  2. zx0922 added the label Bug on Oct 26, 2022
  3. hebasto commented at 4:25 PM on October 26, 2022: member

    on macos after I set data loction on my remote NAS,

    I doubt such a setup is supported.

  4. zx0922 commented at 7:21 AM on October 27, 2022: none

    on macos after I set data loction on my remote NAS,

    I doubt such a setup is supported.

    yes. But I can't set a new path

  5. hebasto commented at 8:41 AM on October 27, 2022: member

    Try to remove the .lock file from your data directory.

    If the problem still persists, it is related to macOS's fctnl() implementation, not to Bitcoin Core code.

    Going to close this issue.

  6. hebasto removed the label Bug on Oct 27, 2022
  7. hebasto closed this on Oct 27, 2022

  8. hebasto cross-referenced this on Oct 28, 2022 from issue v22.0 wallet freezes on Mac OS Ventura on arm64 by cryptodc1
  9. hebasto cross-referenced this on Nov 12, 2022 from issue Flushing block file to disk failed when using external drive on macOS Ventura by aureliusltd
  10. hebasto cross-referenced this on Nov 18, 2022 from issue Breking in Mac OS by mateusgalasso
  11. bitcoin locked this on Oct 27, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:53 UTC