Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many files while use blocksci through crontab #446

Open
TOP-Youya opened this issue Dec 7, 2020 · 0 comments
Open

Too many files while use blocksci through crontab #446

TOP-Youya opened this issue Dec 7, 2020 · 0 comments

Comments

@TOP-Youya
Copy link

Hi, thanks for the great work.
I have a problem while using blocksci by cron.
if I run a python file in linux terminal , the blocksci can be used as normal, but while i add this python file as a cron task ,the blocksci will throw a exception.

Traceback (most recent call last): File "/root/btc_search/filter_btc.py", line 15, in <module> CHAIN = blocksci.Blockchain(config.BLOCKSCI) File "/root/BlockSci/blockscipy/blocksci/__init__.py", line 296, in new_init old_init(self, loc) RuntimeError: Could not open hash index with error: While opendir: /root/.bitcoin/blocksci_data/hashIndex: Too many open files ~

import blocksci
try:
        CHAIN = blocksci.Blockchain(config.BLOCKSCI)
        print(1)
    except Exception as e:
        print(e)

about "too many files ", I have googled about a solution by changing system config “open files”,but it does't work.

System Information

Using AMI: no
BlockSci version: (please provide a commit id if you're on a development branch)
Blockchain: bitcoin
Parser: Disk ,RPC
Total memory: 64GB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant