Dgraph error: Main process exited, code=exited, status=2/INVALIDARGUMENT


(Nguyễn Thanh Phi (Backend MWG)) #1

I don’t know what happen, but today i see this error. Yesterday was healthy but sick today :sob:

Can't read the proc file. Err: open /proc/self/stat: too many open files
exiting because of error: log: cannot create log: open /tmp/dgraph.dgraph-87.dgraph.log.ERROR.20190625-092202.6020: too man open files
dgraph-alpha.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
dgraph-alpha.service: Failed with result 'exit-code'.


I run cluster with this config on 3 separate server:

dgraph zero --my=SERVER1:5080 --replicas 3 --idx 1 --bindall=true --wal /var/run/dgraph/zw
dgraph alpha --my=SERVER1:7080 --lru_mb=20000 --zero=SERVER1:5080 --badger.tables=ram -p /var/run/dgraph/p -w /var/run/dgraph/w 
 
 
dgraph zero -o 1 --my=SERVER2:5081 --replicas 3 --peer SERVER1:5080 --bindall=true --idx 2  --wal /var/run/dgraph/zw
dgraph alpha --my=SERVER2:7081 --lru_mb=20000 --zero=SERVER1:5080 -o 1 --badger.tables=ram -p /var/run/dgraph/p -w /var/run/dgraph/w 
 
 
dgraph zero -o 2 --my=SERVER3:5082 --replicas 3 --peer SERVER1:5080 --bindall=true --idx 3 --wal /var/run/dgraph/zw
dgraph alpha --my=SERVER3:7082 --lru_mb=20000 --zero=SERVER1:5080 -o 2 --badger.tables=ram -p /var/run/dgraph/p -w /var/run/dgraph/w

please help me


(Michel Conrado) #2

You can increase the value for this. Just check how on Google or something based on your OS.