0.20.0 update broke symbolic link for blocks folder #19209

issue siroccal openend this issue on June 8, 2020
  1. siroccal commented at 1:03 pm on June 8, 2020: none

    Describe the issue

    After upgrading to 0.20.0, I can’t use a symbolic link for the blocks folder anymore.

    What behavior did you expect?

    I expect to be able to use a symbolic link for the blocks folder.

    Bitcoin Core closing with this error:

    0************************
    1EXCEPTION: N5boost10filesystem16filesystem_errorE
    2boost::filesystem::create_directory: File exists: "/home/user/.var/app/org.bitcoincore.bitcoin-qt/data/blocks"
    3
    4bitcoin in Runaway exception
    

    How reliably can you reproduce the issue, what are the steps to do so?

    Move the blocks folder to anywhere outside the bitcoin folder, like /media/data/blocks or /home/user/blocks, and make a symbolic link from the original data/blocks to the new location. Then try to start Bitcoin Core.

    What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)?

    0.20.0 from Flathub.

    What type of machine are you observing the error on (OS/CPU and disk type)?

    Fedora Linux.

  2. fanquake added the label Linux/Unix on Jun 8, 2020
  3. MarcoFalke commented at 1:12 pm on June 8, 2020: member

    @A6GibKm any idea why this could happen?

    For reference (not sure if relevant):

    Unclear to me, but maybe flatpak override $APP --filesystem=$FOLDER might do it?

  4. siroccal commented at 1:22 pm on June 8, 2020: none

    Unclear to me, but maybe flatpak override $APP --filesystem=$FOLDER might do it?

    Oh, nice, that command makes it work fine.

  5. A6GibKm commented at 2:29 pm on June 8, 2020: none
    I don’t know what might have triggered a change in behavior when updating, but not being able to access symlinks is to be expected when there are no explicit app permissions.
  6. MarcoFalke commented at 2:35 pm on June 8, 2020: member
    ok, closing then
  7. MarcoFalke closed this on Jun 8, 2020

  8. DrahtBot locked this on Feb 15, 2022

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

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