Mattermost, Inc.

Can't run fresh clone

Hi everybody,
I have a problem with ‘make run’

git clone https://github.com/mattermost/platform.git
cd platform
git branch

  • master

[linux@platform]$ make run

npm WARN optional dep failed, continuing fsevents@1.0.2

mattermost@0.0.1 build-libs /home/linux/golang/src/github.com/mattermost/platform/web/react
browserify -r crypto -r autolinker -r flux -r keymirror -r marked -r object-assign -r twemoji | uglifyjs -c -m --screw-ie8 > …/static/js/libs.min.js

WARN: Side effects in initialization of unused variable mod [-:6372,6]
WARN: Dropping unused variable hmac [-:10005,4]
WARN: Dropping unreachable code [-:11939,2]
WARN: Dropping unused variable present [-:12015,6]
WARN: Dropping unused variable prevKey [-:12029,6]
WARN: Side effects in initialization of unused variable asn1 [-:12614,4]
WARN: Side effects in initialization of unused variable bignum [-:12668,4]
WARN: Side effects in initialization of unused variable Buffer [-:12944,4]
WARN: Side effects in initialization of unused variable asn1 [-:12946,4]
WARN: Side effects in initialization of unused variable SEVEN [-:15054,4]
WARN: Side effects in initialization of unused variable n [-:15562,6]
WARN: Side effects in initialization of unused variable mLen [-:15564,6]
WARN: Dropping unused variable hLen2 [-:15567,6]
WARN: Side effects in initialization of unused variable p2 [-:15599,6]
WARN: Dropping unused variable constants [-:15639,4]
WARN: Dropping unused function forEach [-:16306,9]
WARN: Side effects in initialization of unused variable Duplex [-:16473,6]
mkdir -p web/static/js
starting react processor
starting go web server
starting compass watch
[linux@platform]$

mattermost@0.0.1 start /home/linux/golang/src/github.com/mattermost/platform/web/react
watchify --fast -x crypto -x node -x autolinker -x flux -x keymirror -x marked -x object-assign -x twemoji -o …/static/js/bundle.js -v -d ./**/*.jsx

Compass is watching for changes. Press Ctrl-C to Stop.
[10/08/15 20:32:48] [INFO] Current version is 1.0.0 (BUILD_NUMBER/BUILD_DATE/BUILD_HASH)
[10/08/15 20:32:48] [INFO] Current working directory is /home/linux/golang/src/github.com/mattermost/platform
[10/08/15 20:32:48] [INFO] Loaded config file from /home/linux/golang/src/github.com/mattermost/platform/config/config.json
[10/08/15 20:32:48] [INFO] Server is initializing…
[10/08/15 20:32:48] [INFO] Pinging sql master database
[10/08/15 20:32:48] [INFO] Pinging sql replica-0 database
[10/08/15 20:32:48] [DEBG] Initializing user api routes
[10/08/15 20:32:48] [DEBG] Initializing team api routes
[10/08/15 20:32:48] [DEBG] Initializing channel api routes
[10/08/15 20:32:48] [DEBG] Initializing post api routes
[10/08/15 20:32:48] [DEBG] Initializing web socket api routes
[10/08/15 20:32:48] [DEBG] Initializing file api routes
[10/08/15 20:32:48] [DEBG] Initializing command api routes
[10/08/15 20:32:48] [DEBG] Initializing admin api routes
[10/08/15 20:32:48] [DEBG] Initializing oauth api routes
[10/08/15 20:32:48] [DEBG] Initializing webhook api routes
[10/08/15 20:32:48] [DEBG] Parsing server templates at /home/linux/golang/src/github.com/mattermost/platform/api/templates/
[10/08/15 20:32:48] [DEBG] Initializing web routes
[10/08/15 20:32:48] [DEBG] Using static directory at /home/linux/golang/src/github.com/mattermost/platform/web/static/
[10/08/15 20:32:48] [DEBG] Parsing templates at /home/linux/golang/src/github.com/mattermost/platform/web/templates/
[10/08/15 20:32:48] [INFO] Starting Server…
[10/08/15 20:32:48] [INFO] Server is listening on :8065
[10/08/15 20:32:48] [INFO] RateLimiter is enabled
Error: EMFILE, open '/home/linux/golang/src/github.com/mattermost/platform/web/react/package.json’
Error: EMFILE, open ‘/home/linux/golang/src/github.com/mattermost/platform/web/react/package.json’
[Error: write after end]
Error: EMFILE, open ‘/home/linux/golang/src/github.com/mattermost/platform/web/react/package.json’
[Error: write after end]
Error: EMFILE, open ‘/home/linux/golang/src/github.com/mattermost/platform/web/react/package.json’
[Error: write after end]

Trying to open frontpage will give following error:

[linux@platform]$ [10/08/15 20:37:42] [DEBG] /
[10/08/15 20:37:43] [DEBG] /api/v1/admin/log_client
[10/08/15 20:37:43] [EROR] /api/v1/admin/log_client:client code=500 rid=uhiahtb5b3gg5xn9uwqn58tjza uid=3f7ewei1g7yu3ggtq9o9ajf8ac ip=127.0.0.1 msg: TypeError: window.setup_home_page is not a function row: 114 col: 1 stack: TypeError: window.setup_home_page is not a function url: http://dockerhost:8065/ [details: ]

[linux@platform]$ uname -a
Linux xxx 4.1.5-200.fc22.x86_64 #1 SMP Mon Aug 10 23:38:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
(mysql-mattermost)

I have successfully been able to use Mattermost with FC22 but recent pull broke it.

we’ve recently upgraded eslint.

can you try

sudo npm i -g eslint
sudo npm i -g eslint-plugin-react

Tried those commands

sudo npm i -g eslint

/bin/eslint -> /lib/node_modules/eslint/bin/eslint.js
npm WARN unmet dependency /lib/node_modules/block-stream requires inherits@’~2.0.0’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/fstream requires inherits@’~2.0.0’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/fstream-ignore requires inherits@‘2’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/fstream-npm requires inherits@‘2’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/glob requires inherits@‘2’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/npmconf requires inherits@’~2.0.0’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/tar requires inherits@‘2’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
eslint@1.6.0 /lib/node_modules/eslint
├── escape-string-regexp@1.0.3
├── object-assign@2.1.1
├── path-is-absolute@1.0.0
├── path-is-inside@1.0.1
├── user-home@1.1.1
├── strip-json-comments@1.0.4
├── xml-escape@1.0.0
├── estraverse-fb@1.3.1
├── globals@8.11.0
├── estraverse@4.1.0
├── text-table@0.2.0
├── esutils@2.0.2
├── to-single-quotes@1.0.4 (get-stdin@3.0.2)
├── to-double-quotes@1.0.2 (get-stdin@3.0.2)
├── shelljs@0.3.0
├── espree@2.2.5
├── is-resolvable@1.0.0 (tryit@1.0.1)
├── debug@2.2.0 (ms@0.7.1)
├── json-stable-stringify@1.0.0 (jsonify@0.0.0)
├── doctrine@0.7.0 (isarray@0.0.1, esutils@1.1.6)
├── optionator@0.5.0 (fast-levenshtein@1.0.7, type-check@0.3.1, deep-is@0.1.3, levn@0.2.5, prelude-ls@1.1.2, wordwrap@0.0.3)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── chalk@1.1.1 (supports-color@2.0.0, ansi-styles@2.1.0, has-ansi@2.0.0, strip-ansi@3.0.0)
├── concat-stream@1.5.0 (inherits@2.0.1, typedarray@0.0.6, readable-stream@2.0.2)
├── minimatch@2.0.10 (brace-expansion@1.1.1)
├── glob@5.0.15 (inherits@2.0.1, once@1.3.2, inflight@1.0.4)
├── is-my-json-valid@2.12.2 (jsonpointer@2.0.0, generate-function@2.0.0, xtend@4.0.0, generate-object-property@1.2.0)
├── lodash.omit@3.1.0 (lodash._arraymap@3.0.0, lodash._pickbyarray@3.0.2, lodash._bindcallback@3.0.1, lodash.restparam@3.6.1, lodash._baseflatten@3.1.4, lodash.keysin@3.0.8, lodash._pickbycallback@3.0.0, lodash._basedifference@3.0.3)
├── lodash.merge@3.3.2 (lodash._arraycopy@3.0.0, lodash._arrayeach@3.0.0, lodash.isarguments@3.0.4, lodash.istypedarray@3.0.2, lodash._getnative@3.9.1, lodash.keysin@3.0.8, lodash.isarray@3.0.4, lodash.keys@3.1.2, lodash.isplainobject@3.2.0, lodash.toplainobject@3.0.0, lodash._createassigner@3.1.1)
├── lodash.clonedeep@3.0.2 (lodash._bindcallback@3.0.1, lodash._baseclone@3.3.0)
├── file-entry-cache@1.2.4 (object-assign@4.0.1, flat-cache@1.0.9)
├── inquirer@0.9.0 (strip-ansi@3.0.0, figures@1.4.0, cli-width@1.0.1, ansi-regex@2.0.0, through@2.3.8, readline2@0.1.1, run-async@0.1.0, rx-lite@2.5.2, lodash@3.10.1)
├── handlebars@4.0.3 (async@1.4.2, optimist@0.6.1, source-map@0.4.4, uglify-js@2.4.24)
├── js-yaml@3.4.2 (esprima@2.2.0, argparse@1.0.2)
└── escope@3.2.0 (esrecurse@3.1.1, estraverse@3.1.0, es6-weak-map@0.1.4, es6-map@0.1.1)

[linux@platform]$ sudo npm i -g eslint-plugin-react
npm http GET https://registry.npmjs.org/eslint-plugin-react
npm http 304 https://registry.npmjs.org/eslint-plugin-react
npm WARN unmet dependency /lib/node_modules/block-stream requires inherits@’~2.0.0’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/fstream requires inherits@’~2.0.0’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/fstream-ignore requires inherits@‘2’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/fstream-npm requires inherits@‘2’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/glob requires inherits@‘2’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/npmconf requires inherits@’~2.0.0’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /lib/node_modules/tar requires inherits@‘2’ but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
eslint-plugin-react@3.5.1 /lib/node_modules/eslint-plugin-react

Looks like you’re hitting a file limit error. see https://github.com/substack/node-browserify/issues/431

I have the line below in my .bash_profile on mac.
ulimit -n 4096

Yep. That fixed it.
Thanx.