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

[dev.sh] trying to run from source "fcntl: too many open files" error #150

Open
gubatron opened this issue Jun 2, 2020 · 2 comments
Open

Comments

@gubatron
Copy link

gubatron commented Jun 2, 2020

I'm on macOS 10.15.4 (Catalina), golang 1.14.3 darwin/amd64

Cloned the repo and tried running ./dev.sh, it always stops here.
I usually raise the number of file descriptors allowed to see if this goes away, but any clue why this happens? (and how many file descriptors/sockets does chainquery actually need?)

$./dev.sh 
Starting service
migration/bindata.go
fcntl: too many open files

Note: other than this, I already setup the mysql 'chainquery' database with user 'lbry' password 'lbry', however I did not install the blockchain server, it'd be great if I could point this chainquery to an existing node as I'm running low on space and wouldn't want to download a full blockchain to this laptop. Is that possible? running chainquery against a remote blockchain instance?

@tiger5226
Copy link
Collaborator

Sorry for the late reply. @kauffj did flag this to me but I misread the flag.
Chainquery db uses 55GB to store the data. If you are running low on space for a lbrycrd node(which needs 15GB approximately), then there will definitely be an issue with the chainquery structured data in the database.

I use macos Catalina as well and am using 1.14.2 of go. I dont recall ever seeing that message. I may have increased it years ago. Definitely try increasing it since its os specific. My current settings are:

maxfiles: 49152
maxfilesperproc:24576

@kauffj
Copy link

kauffj commented Jun 3, 2020

chainquery lite mode when 😁

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

3 participants