BlockSci icon indicating copy to clipboard operation
BlockSci copied to clipboard

Descriptive Error in file permission problems

Open siccegge opened this issue 5 years ago • 2 comments

Hi!

Seems blcksci python module sees an empty database only

Reproduction Steps

# /srv/scratch/bitcoin/usr/bin/blocksci_parser blocksci.conf doctor
407GB of free disk space available.
OK: Open files limit of 131072.

Checking configuration for issues.
OK: Found data directory on disk.
OK: Found disk parser settings in config.

Constructing chain index from scratch. This may take a few minutes.
100.0% done fetching block headers
OK: Most recent block found in coin directory has height 419000 (in file 561)

No significant issues detected.
{
    "chainConfig": {
        "coinName": "bitcoin",
        "dataDirectory": "/srv/scratch/bitcoin/srv/blocksci",
        "pubkeyPrefix": [
            0
        ],
        "scriptPrefix": [
            5
        ],
        "segwitActivationHeight": 481824,
        "segwitPrefix": "bc"
    },
    "parser": {
        "disk": {
            "blockMagic": 3652501241,
            "coinDirectory": "/srv/scratch/bitcoin/home/.bitcoin/",
            "hashFuncName": "doubleSha256"
        },
        "maxBlockNum": 419000
    },
    "version": 5
}
chain.blocks.height
> array([], dtype=int64)

Full Print of the jupyter notebook: BlockSci.pdf

System Information

Using AMI: no BlockSci version: 6d50682c53ab6ac00aeea0629cc75300a7b60f1a Blockchain: Bitcoin Parser: Disk Total memory: 384 GB

siccegge avatar Aug 03 '20 11:08 siccegge

Whenever I had this issue the reason was insufficient permissions, i.e., parsed as root, and then running Python as a regular user.

mplattner avatar Aug 03 '20 12:08 mplattner

Indeed. Just came across this conclusion using strace. chown fixed it.

siccegge avatar Aug 03 '20 12:08 siccegge