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

**URL:** <https://discuss.dgraph.io/t/dgraph-error-main-process-exited-code-exited-status-2-invalidargument/4665>\
**Category:** Dgraph\
**Created:** [June 25, 2019, 3:07am UTC](https://discuss.dgraph.io/t/dgraph-error-main-process-exited-code-exited-status-2-invalidargument/4665 "2019-06-25T03:07:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuonglaivinhhang1](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/tuonglaivinhhang1/32/1843_2.png) [@tuonglaivinhhang1](https://discuss.dgraph.io/u/tuonglaivinhhang1)\
**Post date:** [June 25, 2019, 3:07am UTC](https://discuss.dgraph.io/t/dgraph-error-main-process-exited-code-exited-status-2-invalidargument/4665/1 "2019-06-25T03:07:29Z")

</div>

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

```auto
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'.

```

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/d/d8d3e78ca8bbd13c52ef98edf6fadf8aa31b0cac.png)  
I run cluster with this config on 3 separate server:

```auto
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

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [June 25, 2019, 3:56am UTC](https://discuss.dgraph.io/t/dgraph-error-main-process-exited-code-exited-status-2-invalidargument/4665/2 "2019-06-25T03:56:29Z")

</div>

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