# \[Solved\] Error starting last mattermost version from master \`\[Error: write after end\]\`

**URL:** <https://forum.mattermost.com/t/solved-error-starting-last-mattermost-version-from-master-error-write-after-end/386>\
**Category:** Troubleshooting\
**Created:** [October 21, 2015, 2:09pm UTC](https://forum.mattermost.com/t/solved-error-starting-last-mattermost-version-from-master-error-write-after-end/386 "2015-10-21T14:09:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlebleu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/jlebleu/32/26_2.png) [@jlebleu](https://forum.mattermost.com/u/jlebleu)\
**Post date:** [October 21, 2015, 2:09pm UTC](https://forum.mattermost.com/t/solved-error-starting-last-mattermost-version-from-master-error-write-after-end/386/1 "2015-10-21T14:09:14Z")

</div>

Hello,

When I try the last mattermost version from master I have the following error

Error: EMFILE, open ‘/home/jylebleu/devmisc/go/src/github.com/mattermost/platform/web/react/package.json’  
[Error: write after end]

Was not the case with version 1.0.0

git checkout v1.0.0  
make clean  
make run

Is ok

I have the same error with tag v1.1.0 and later

Any clue ?

---

<div class="post-metadata">

**Author:** ![coreyhulen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/coreyhulen/32/25_2.png) [@coreyhulen](https://forum.mattermost.com/u/coreyhulen)\
**Post date:** [October 21, 2015, 2:50pm UTC](https://forum.mattermost.com/t/solved-error-starting-last-mattermost-version-from-master-error-write-after-end/386/2 "2015-10-21T14:50:21Z")

</div>

From [https://github.com/mattermost/platform/blob/master/doc/developer/Setup.md](https://github.com/mattermost/platform/blob/master/doc/developer/Setup.md)

```auto
Set up your Go workspace
mkdir ~/go
Add the following to your ~/.bash_profile
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
ulimit -n 8096
If you don't increase the file handle limit you may see some weird build issues with browserify or npm.

```

I think you need the ulimit increased.

---

<div class="post-metadata">

**Author:** ![jlebleu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/jlebleu/32/26_2.png) [@jlebleu](https://forum.mattermost.com/u/jlebleu)\
**Post date:** [October 21, 2015, 3:03pm UTC](https://forum.mattermost.com/t/solved-error-starting-last-mattermost-version-from-master-error-write-after-end/386/3 "2015-10-21T15:03:30Z")

</div>

Thank you very much you got it !

Shame on me I was on the way to reread carefully the doc.  
Everything works well  
Good job
