Installation and data directory lock issues #12215

issue nQuantPlatforms openend this issue on January 18, 2018
  1. nQuantPlatforms commented at 5:15 am on January 18, 2018: none

    I’m using Raspbian Stretch and just installed the bitcoin to setup full node using following command sudo apt-get install bitcoin-qt bitcoind

    1. First I was not displayed with start screen to choose location for data directory as mentioned here https://bitcoin.org/en/full-node#ubuntu-1610
    2. I have mounted FTP drive folder where I want my data directory to be pointed.
    3. So I always have to start bitcoin from terminal with datadir option otherwise it starts downloading into default location and I cant download entire blockchain on my pi sdcard.
    4. Unfortunately that doesn’t work either. it always errors out saying can not obtain lock may be this and that using it.

    Issues:

    1. I assume its permission issue, but I can manually create, delete update file in that mounted location so why bitcoin app can not? is there special command it need to start with ? And no there is no other program using it or running that has it locked.

    2. What option is requires it to start with to show data directory location screen at start

  2. laanwj added the label Block storage on Jan 19, 2018
  3. laanwj commented at 1:30 pm on January 19, 2018: member
    Leveldb seems a bit finnicky with regard to file system support. It is very likely that ftp-mounted shares do not provide the locking functionality required.
  4. laanwj commented at 1:32 pm on January 19, 2018: member
    See also #10787, which is another instance of the problem (though on macosx), and #10922 which proposes a partitioning/symlinking scheme to work around issues like this.
  5. laanwj closed this on Jan 19, 2018

  6. nQuantPlatforms commented at 0:15 am on January 31, 2018: none

    Thanks,

    1. Tried your solution. I was able to create link for blocks but not for index in mounted ftp
    2. So I changed bitcoin code to look for index folder one level up and problem for index folder was solved
    3. But bitcoin still has issues to write blocks in ftp location at the soft link
    4. I thought its because linked folder issue.. so I changed code again to accept blockdir as argument to forcefully change block directory but got same issue

    debug.log ==> Unable to open file …./blk0000.dat

    Again.. why its so difficult for bitcoin core application to write at ftp location when I can manually create/delete/update files from within the raspberry.

    Suggestion: why not add settings in config file for index, blocks, chainstate locations

  7. MarcoFalke deleted a comment on Jan 31, 2018
  8. MarcoFalke locked this on Sep 8, 2021

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: 2024-11-21 12:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me