gui: freezes on Ubuntu 20.04 when using a different data location #19313

issue AndaPlays openend this issue on June 17, 2020
  1. AndaPlays commented at 6:58 pm on June 17, 2020: none

    Hey, so I installed Bitcoin Core via the files provided on Bitcoin.org (Linux txz), on a fresh Ubuntu 20.04 VM. I followed the Instruction from the site too.

    When prompted with the “Welcome” window, I chose a different directory in a mounted SMB share. After clicking on “Ok”, Bitcoin Core will start but will stay on the loading screen. I did check the directory and Bitcoin Core did create a few files(no debug tho), so It has Read & Write permissions.

    I tried it with the files from Bitcoin.org, Snap Store, and with the repo from luke-jr. Always getting the same error. When using the default settings, It works.

    Also Bitcoin Core will not show anything in the window for searching a different directory.

  2. MarcoFalke commented at 7:10 pm on June 17, 2020: member

    Please check your debug.log for possible causes; Alternatively you can upload it here.

    You can find the debug.log in your data dir.

  3. AndaPlays commented at 7:23 pm on June 17, 2020: none
    @MarcoFalke Well with a custom datadir Bitcoin Core will only create the .bitcoin folder and within this folder the files: bitcoind.pid, folder “block”, folder “wallets” and .lock. Nothing else, doesn’t matter how long I wait. folder
  4. MarcoFalke commented at 7:32 pm on June 17, 2020: member
    Can you either attach gdb to see where it hangs or start it from the command line with -printtoconsole enabled?
  5. AndaPlays commented at 7:52 pm on June 17, 2020: none
    @MarcoFalke I get node@node:~$ /usr/local/bin/bitcoin-qt -printtoconsole Error: Unable to create the PID file '/media/bitcoin/.bitcoin/bitcoind.pid': No such file or directory node@node:~$ /usr/local/bin/bitcoin-qt -printtoconsole Error: Unable to create the PID file '/media/bitcoin/.bitcoin/bitcoind.pid': No such file or directory node@node:~$
  6. AndaPlays commented at 3:12 pm on June 21, 2020: none
    I don’t know why but starting Bitcoin Core via the command /usr/local/bin/bitcoin-qt -datadir=/media/bitcoin/ did work and runs just fine now. So I guess the initial setup/GUI has a problem.
  7. MarcoFalke added the label GUI on Jun 21, 2020
  8. MarcoFalke renamed this:
    Bitcoin Core freezes on Ubuntu 20.04 when using a different data location
    gui: freezes on Ubuntu 20.04 when using a different data location
    on Jun 21, 2020
  9. ryanofsky commented at 8:54 pm on June 22, 2020: member

    So many bizarre things happening here. If everything is working now, maybe close this issue, otherwise we probably need more information about the problem. You can run bitcoin-qt -choosedatadir to get intro screen to show up again.

    • “Bitcoin Core will not show anything in the window for searching a different directory” video is very strange, completely empty directory tree, maybe a qt bug?
    • Also very strange how loading screen hangs with no text. Not even Unable to create the PID file error you reported later. When that error is triggered locally, I see a popup dialog, not a blank loading screen. I would try running strace bitcoin-qt to see where loading is getting stuck and what the system is trying to do.

    To narrow down why datadir /media/bitcoin works but not /media/bitcoin/.bitcoin doesn’t work it would help to experiment:

    • Check filesystem permissions, try liberalizing adding full read write and other access for everyone to debug
    • Check share permissions, again see if liberalizing helps
    • Check smb mount options, try removing restrictions
    • Maybe try a different smb server, or different filesystem (fat vs ntfs), or turning on auditing to look for errors
    • Try using using a folder name that doesn’t have leading dot in “.bitcoin”

    Also feel free to share more information about your smb mount options, smb server config, which ubuntu image is being used, host vm, host os, etc

  10. MarcoFalke added the label Waiting for author on Jun 25, 2020
  11. jarolrod commented at 2:41 pm on February 19, 2021: member

    See: https://bitcointalk.org/index.php?topic=2673041.0

    The user documents that bitcoin core will not work with the datadir located on their SMB file share drive. The user also explains that it works using their NFS drive.

    Considering the vulnerabilities that have plagued SMB (WannaCry, EternalBlue), maybe it’s better to move to a different filesystem.

  12. hebasto commented at 7:52 am on October 3, 2021: member
    Closing?
  13. fanquake commented at 2:57 am on October 4, 2021: member
    Given no additional information, closing for now.
  14. fanquake closed this on Oct 4, 2021

  15. DrahtBot locked this on Oct 30, 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-11-21 09:12 UTC

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