feedback on standing up Gitter for the first time
I'm on f430addd and just attempted to walk through https://gitlab.com/gitlab-org/gitter/webapp#install-prerequisites as suggested by @MadLittleMods at https://gitter.im/gitterHQ/gitter?at=5b806250844de2337cdc85d4 and after many steps (I might create a separate issue about how onerous it was to set up Twitter) I was hoping that npm start
would result in Gitter running at http://localhost:5000 but it failed with the following stacktrace:
Last login: Sat Aug 25 14:53:49 on ttys013
murphy:~ pdurbin$ cd gitlab.org/gitlab-org/webapp/
murphy:webapp pdurbin$ npm start
> gitter-webapp@19.2.0 start /Users/pdurbin/gitlab.org/gitlab-org/webapp
> gulp watch
autoprefixer-core was deprecated. Use autoprefixer package.
[14:54:52] Using gulpfile ~/gitlab.org/gitlab-org/webapp/gulpfile.js
[14:54:52] Starting 'watch'...
[14:54:52] Starting watch stage [ [ 'css:watch', 'process:watch' ] ]
[14:54:52] Starting 'css:watch'...
Starting to watch Less
Starting to watch Less
[14:54:52] Finished 'css:watch' after 6.38 ms
[14:54:52] Starting 'process:watch:server'...
[14:54:53] Finished 'process:watch:server' after 169 ms
[14:54:53] Starting 'process:watch:static'...
[14:54:53] [nodemon] 1.18.3
[14:54:53] [nodemon] reading config ./nodemon.json
[14:54:53] [nodemon] to restart at any time, enter `rs`
[14:54:53] [nodemon] ignoring: ./modules/topics-ui/browser/**/* ./modules/topics-ui/shared/**/* ./modules/api-client/**/* ./modules/web-push/browser ./modules/web-push/service-worker **/test/**
[14:54:53] [nodemon] watching: /Users/pdurbin/gitlab.org/gitlab-org/webapp/server/**/* /Users/pdurbin/gitlab.org/gitlab-org/webapp/shared/**/* /Users/pdurbin/gitlab.org/gitlab-org/webapp/modules/**/*
[14:54:53] [nodemon] watching extensions: js,json,hbs
[14:54:53] [nodemon] starting `node web.js --cdn:use true`
[14:54:53] [nodemon] forking
[14:54:53] [nodemon] child pid: 61324
2018-08-25T18:54:54.373Z - info: Starting server/static.js
2018-08-25T18:54:54.383Z - info: Starting server/web.js
depMap has 142 keys.
depMap has 109 keys.
[14:54:55] [nodemon] watching 896 files
2018-08-25T18:54:58.756Z - info: Listening on 5001
express-session deprecated req.secret; provide secret option
at Object.installFull (/Users/pdurbin/gitlab.org/gitlab-org/webapp/server/web/express.js:109:13)
at Object.<anonymous> (/Users/pdurbin/gitlab.org/gitlab-org/webapp/server/web.js:22:26)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/pdurbin/gitlab.org/gitlab-org/webapp/web.js:7:1)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.runMain (module.js:611:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:160:9)
at bootstrap_node.js:507:3
building done
2018-08-25T18:54:59.911Z - error: No error reporting is enabled so just logging to logger:
{ exception:
{ message: 'OAuth2Strategy requires a clientID option',
stack: 'TypeError: OAuth2Strategy requires a clientID option\n at Strategy.OAuth2Strategy (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/@gitterhq/passport-oauth2/lib/strategy.js:83:34)\n at new Strategy (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/@gitterhq/passport-github/lib/passport-github/strategy.js:61:18)\n at Object.<anonymous> (/Users/pdurbin/gitlab.org/gitlab-org/webapp/server/web/strategies/github-user.js:173:26)\n at Module._compile (module.js:577:32)\n at loader (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/babel-register/lib/node.js:144:5)\n at Object.require.extensions.(anonymous function) [as .js] (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/babel-register/lib/node.js:154:7)\n at Module.load (module.js:494:32)\n at tryModuleLoad (module.js:453:12)\n at Function.Module._load (module.js:445:3)\n at Module.require (module.js:504:17)\n at require (internal/module.js:20:19)\n at Object.<anonymous> (/Users/pdurbin/gitlab.org/gitlab-org/webapp/server/web/passport.js:8:26)\n at Module._compile (module.js:577:32)\n at loader (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/babel-register/lib/node.js:144:5)\n at Object.require.extensions.(anonymous function) [as .js] (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/babel-register/lib/node.js:154:7)\n at Module.load (module.js:494:32)\n at tryModuleLoad (module.js:453:12)\n at Function.Module._load (module.js:445:3)\n at Module.require (module.js:504:17)\n at require (internal/module.js:20:19)\n at Object.<anonymous> (/Users/pdurbin/gitlab.org/gitlab-org/webapp/server/web.js:24:1)\n at Module._compile (module.js:577:32)\n at Object.Module._extensions..js (module.js:586:10)\n at Module.load (module.js:494:32)\n at tryModuleLoad (module.js:453:12)\n at Function.Module._load (module.js:445:3)\n at Module.require (module.js:504:17)\n at require (internal/module.js:20:19)\n at Object.<anonymous> (/Users/pdurbin/gitlab.org/gitlab-org/webapp/web.js:7:1)\n at Module._compile (module.js:577:32)\n at Object.Module._extensions..js (module.js:586:10)\n at Module.load (module.js:494:32)\n at tryModuleLoad (module.js:453:12)\n at Function.Module._load (module.js:445:3)\n at Module.runMain (module.js:611:10)\n at run (bootstrap_node.js:394:7)\n at startup (bootstrap_node.js:160:9)\n at bootstrap_node.js:507:3',
name: 'TypeError' },
meta:
{ errorString: 'TypeError: OAuth2Strategy requires a clientID option',
type: 'uncaught' },
tags: { host: 'murphy.local', job: 'web' } }
2018-08-25T18:54:59.914Z - error: ----------------------------------------------------------------
2018-08-25T18:54:59.914Z - error: -- A VeryBadThing has happened.
2018-08-25T18:54:59.914Z - error: ----------------------------------------------------------------
2018-08-25T18:54:59.914Z - error: Uncaught exceptionTypeError: OAuth2Strategy requires a clientID option
{ message: 'OAuth2Strategy requires a clientID option',
name: 'TypeError' }
2018-08-25T18:54:59.915Z - error: TypeError: OAuth2Strategy requires a clientID option
at Strategy.OAuth2Strategy (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/@gitterhq/passport-oauth2/lib/strategy.js:83:34)
at new Strategy (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/@gitterhq/passport-github/lib/passport-github/strategy.js:61:18)
at Object.<anonymous> (/Users/pdurbin/gitlab.org/gitlab-org/webapp/server/web/strategies/github-user.js:173:26)
at Module._compile (module.js:577:32)
at loader (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/pdurbin/gitlab.org/gitlab-org/webapp/server/web/passport.js:8:26)
at Module._compile (module.js:577:32)
at loader (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/Users/pdurbin/gitlab.org/gitlab-org/webapp/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/pdurbin/gitlab.org/gitlab-org/webapp/server/web.js:24:1)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/pdurbin/gitlab.org/gitlab-org/webapp/web.js:7:1)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.runMain (module.js:611:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:160:9)
at bootstrap_node.js:507:3
2018-08-25T18:54:59.915Z - error: Uncaught exceptionTypeError: OAuth2Strategy requires a clientID option forcing shutdown
2018-08-25T18:54:59.933Z - info: Web server shutdown successfully in 1ms
[14:54:59] [nodemon] app crashed - waiting for file changes before starting...
[14:55:00] gulp-postcss: router-chat.css
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/router-chat.css:5978:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
[14:55:00] gulp-postcss: router-app.css
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/router-app.css:8082:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
[14:55:01] gulp-postcss: router-nli-chat.css
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/router-nli-chat.css:4897:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/router-nli-chat.css:7957:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
[14:55:02] gulp-postcss: router-nli-embed-chat.css
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/router-nli-embed-chat.css:4919:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
[14:55:03] gulp-postcss: router-archive-home.css
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/router-archive-home.css:6402:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/router-archive-home.css:8912:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
[14:55:04] gulp-postcss: router-archive-chat.css
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/router-archive-chat.css:6373:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
[14:55:05] gulp-postcss: router-embed-chat.css
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/router-embed-chat.css:4919:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
[14:55:06] gulp-postcss: router-archive-links.css
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/router-archive-links.css:6402:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/router-archive-links.css:9023:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
[14:55:06] gulp-postcss: dark-theme.css
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/dark-theme.css:110:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
autoprefixer: /Users/pdurbin/gitlab.org/gitlab-org/webapp/public/less/dark-theme.css:292:3: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
building done
Container#eachAtRule is deprecated. Use Container#walkAtRules instead.
I could use some advice on how to troubleshoot this. Thanks!
Edited by Philip Durbin