[ Bitcoin-Qt ] Linux client can't read directories with an @ in its name #6018

issue cig0 opened this issue on April 15, 2015
  1. cig0 commented at 11:42 PM on April 15, 2015: none

    Hi all, I'm trying to use a Btrfs subvolume for storing the blockchain and the wallet, however the Qt client seems to be unable to access a directory which its name is prefixed with an @. This is the error message I got: "A fatal error occurred. Bitcoin can no longer continue safely and will quit. EXCEPTION: N5boost12interprocess22interprocess_exceptionE
    No such file or directory
    bitcoin in Runaway exception"

    I already tried "./bitcoin-qt -debug" and "./bitcoin-qt --help-debug" to no avail as the window with the error message pops up and there isn't anything else I can do.

    Regards.

  2. cig0 renamed this:
    [ Bitcoin-Qt ] Linux client can't ready directories with an @
    [ Bitcoin-Qt ] Linux client can't ready directories with an @ in its name
    on Apr 15, 2015
  3. dexX7 commented at 4:06 AM on April 16, 2015: contributor

    Hey @msx: are you using Bitcoin Core 0.10 or a build based on the current master?

  4. cig0 commented at 1:04 PM on April 16, 2015: none

    Oops, I apologize for my very n00bish report :P

    Hello @dexX7, Yes, I tried bitcoin-0.10.0 which I downloaded from the website, on this system: OS: Fedora 21 x86_64 up-to-date kernel: 3.19.3 btrfs-progs: 3.18.1

    cat ~/.config/Bitcoin/Bitcoin-Qt.conf 
    [General]
    strDataDir=/home/@somedir/another_dir/@pretended_target_dir
    fRestartRequired=false
    fMinimizeToTray=false
    fMinimizeOnClose=false
    nDisplayUnit=0
    strThirdPartyTxUrls=
    fCoinControlFeatures=false
    nDatabaseCache=100
    nThreadsScriptVerif=0
    bSpendZeroConfChange=true
    fUseUPnP=true
    fListen=true
    fUseProxy=false
    addrProxy=127.0.0.1:9050
    language=
    nHelpMessageDialogWindowPos=@Point(400 250)
    nHelpMessageDialogWindowSize=@Size(800 400)
    

    I would be delighted to help you nail down this bug, let me know if I can be of further assistance.

  5. cig0 renamed this:
    [ Bitcoin-Qt ] Linux client can't ready directories with an @ in its name
    [ Bitcoin-Qt ] Linux client can't read directories with an @ in its name
    on Apr 16, 2015
  6. ajweiss commented at 2:19 PM on April 16, 2015: contributor

    Hi @msx,

    Qt's settings module gives special meaning to the at (@) symbol if it appears as the first character in a settings value. If you look at the configuration snippet you posted here, you can see it in the last two lines.

    Does the real string that you're attempting to use for your datadir meet this criteria?

  7. LivInTheLookingGlass commented at 2:44 PM on April 16, 2015: none

    If someone can give me an idea of what's going on, and where the definition is, I can work on a pull request for this.

  8. ajweiss commented at 2:54 PM on April 16, 2015: contributor

    Nevermind, the at symbols are fine.

    I was able to reproduce this... Check the permissions on your subvolume.

    Cheers!

    FWIW: btrfs subvolumes are really awesome for testing bitcoin. I use them for rollbacks and testing sync all the time.

  9. LivInTheLookingGlass commented at 2:57 PM on April 16, 2015: none

    So you're thinking that it was a permissions issue and not a definitions issue? Just trying to make sure I understand.

  10. ajweiss commented at 3:01 PM on April 16, 2015: contributor

    Yup.

    adam@viktor:~/dev/bitcoin-dist-0.10/bitcoin-0.10.0/bin$ sudo btrfs subvolume create /archive/@test
    Create subvolume '/archive/@test'
    adam@viktor:~/dev/bitcoin-dist-0.10/bitcoin-0.10.0/bin$ ./bitcoin-qt 
    
    
    ************************
    EXCEPTION: N5boost12interprocess22interprocess_exceptionE        
    No such file or directory        
    bitcoin in Runaway exception       
    
    adam@viktor:~/dev/bitcoin-dist-0.10/bitcoin-0.10.0/bin$ sudo chmod 777 /archive/@test/
    adam@viktor:~/dev/bitcoin-dist-0.10/bitcoin-0.10.0/bin$ ./bitcoin-qt
    
  11. LivInTheLookingGlass commented at 3:05 PM on April 16, 2015: none

    Very odd. Is there no way to just have a permissions check before QT launches? You'd think that would be useful.

  12. LivInTheLookingGlass commented at 3:08 PM on April 16, 2015: none

    For microsoft versions there's a quick test method. Otherwise we should just create a test file on open, and if that throws an error, then notify the user.

  13. cig0 commented at 6:05 PM on April 16, 2015: none

    I'M A TARD

    Effectively, I forgot to own the subvolume after creating it :clap: That's what happens when you are half-sleep, half-stupid.

    Sorry 4 the noise everyone, I'm closing this shameful ticket.

  14. cig0 closed this on Apr 16, 2015

  15. 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: 2026-04-17 09:15 UTC

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