Too many open files?

What version of Dgraph are you using?

Master

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, OS)?

128GB Ram, Ubuntu 20.04

Steps to reproduce the issue (command/config used to run Dgraph).

  1. Start Dgraph Zero with ./dgraph zero
  2. Start Dgraph Alpha with ./dgraph alpha --lru_mb=32784 --tls_dir=tls --acl_secret_file=acl_secret_file --encryption_key_file=enc_key_file
  3. Start Dgraph Bank example with go run main.go

I’ve never had this error before… I just happen to open my Dgraph Alpha process and it crashed… with this error.

I get the following error:

E0804 00:49:49.882509    4434 mutation.go:207] error in building indexes, aborting :: error opening temp badger for reindexing: During db.vlog.open: Error while creating log file in valueLog.open: Sync value log dir. Path=/tmp/dgraph_index_155409059. Error=While opening directory: /tmp/dgraph_index_155409059.: open /tmp/dgraph_index_155409059: too many open files

Any ideas what this issue is? I can’t start my Go program anymore… :confused:

Fixed it by following some guides online to increase the open file limit. I don’t think this error was regarding Dgraph necessarily. I was just worried because i’ve never seen this error before, and figured maybe Dgraph was broken somehow :stuck_out_tongue:

Yes, using ulimit to increase the limit of open files per-process is the correct way to go about fixing this issue.

1 Like