Skip to content

Instantly share code, notes, and snippets.

@Unitech
Created April 19, 2019 22:40
Show Gist options
  • Save Unitech/cad55bef540ff6cc20e400fa8935dff6 to your computer and use it in GitHub Desktop.
Save Unitech/cad55bef540ff6cc20e400fa8935dff6 to your computer and use it in GitHub Desktop.
oauth_1 | 2019-04-19T22:01:55: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
oauth_1 | 2019-04-19T22:01:55: PM2 log: App [app:0] starting in -fork mode-
oauth_1 | 2019-04-19T22:01:55: PM2 log: App [app:0] online
oauth_1 | Trying to etablish connection to mongodb
oauth_1 | (node:73) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
oauth_1 | Connection to database ready, waiting for configuration ...
oauth_1 | Configuration loaded from database
oauth_1 | (node:73) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
oauth_1 | [oAuth] Ready 3100
oauth_1 | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
oauth_1 | at ServerResponse.setHeader (_http_outgoing.js:470:11)
oauth_1 | at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:718:10)
oauth_1 | at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:163:12)
oauth_1 | at ServerResponse.json (/usr/src/app/node_modules/express/lib/response.js:249:15)
oauth_1 | at _0x3410c0.(anonymous function) (/usr/src/app/src/oauth/routes.js:1:20982)
oauth_1 | at Strategy.strategy.error (/usr/src/app/node_modules/passport/lib/middleware/authenticate.js:333:18)
oauth_1 | at Object.onceWrapper (events.js:277:13)
oauth_1 | at LdapAuth.emit (events.js:194:15)
oauth_1 | at LdapAuth.EventEmitter.emit (domain.js:441:20)
oauth_1 | at LdapAuth._handleError (/usr/src/app/node_modules/ldapauth-fork/lib/ldapauth.js:171:8)
oauth_1 | at Client.emit (events.js:189:13)
oauth_1 | at Client.EventEmitter.emit (domain.js:441:20)
oauth_1 | at TLSSocket.onSocketError (/usr/src/app/node_modules/ldapjs/lib/client/client.js:1169:12)
oauth_1 | at TLSSocket.emit (events.js:189:13)
oauth_1 | at TLSSocket.EventEmitter.emit (domain.js:441:20)
oauth_1 | at emitErrorNT (internal/streams/destroy.js:82:8)
oauth_1 | at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
oauth_1 | at process._tickCallback (internal/process/next_tick.js:63:19)
oauth_1 | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
oauth_1 | at ServerResponse.setHeader (_http_outgoing.js:470:11)
oauth_1 | at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:718:10)
oauth_1 | at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:163:12)
oauth_1 | at ServerResponse.json (/usr/src/app/node_modules/express/lib/response.js:249:15)
oauth_1 | at _0x3410c0.(anonymous function) (/usr/src/app/src/oauth/routes.js:1:20982)
oauth_1 | at Strategy.strategy.error (/usr/src/app/node_modules/passport/lib/middleware/authenticate.js:333:18)
oauth_1 | at Object.onceWrapper (events.js:277:13)
oauth_1 | at LdapAuth.emit (events.js:194:15)
oauth_1 | at LdapAuth.EventEmitter.emit (domain.js:441:20)
oauth_1 | at LdapAuth._handleError (/usr/src/app/node_modules/ldapauth-fork/lib/ldapauth.js:171:8)
oauth_1 | at Client.emit (events.js:189:13)
oauth_1 | at Client.EventEmitter.emit (domain.js:441:20)
oauth_1 | at TLSSocket.onSocketError (/usr/src/app/node_modules/ldapjs/lib/client/client.js:1169:12)
oauth_1 | at TLSSocket.emit (events.js:189:13)
oauth_1 | at TLSSocket.EventEmitter.emit (domain.js:441:20)
oauth_1 | at emitErrorNT (internal/streams/destroy.js:82:8)
oauth_1 | at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
oauth_1 | at process._tickCallback (internal/process/next_tick.js:63:19)
oauth_1 | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
oauth_1 | at ServerResponse.setHeader (_http_outgoing.js:470:11)
oauth_1 | at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:718:10)
oauth_1 | at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:163:12)
oauth_1 | at ServerResponse.json (/usr/src/app/node_modules/express/lib/response.js:249:15)
oauth_1 | at _0x3410c0.(anonymous function) (/usr/src/app/src/oauth/routes.js:1:20982)
oauth_1 | at Strategy.strategy.error (/usr/src/app/node_modules/passport/lib/middleware/authenticate.js:333:18)
oauth_1 | at Object.onceWrapper (events.js:277:13)
oauth_1 | at LdapAuth.emit (events.js:194:15)
oauth_1 | at LdapAuth.EventEmitter.emit (domain.js:441:20)
oauth_1 | at LdapAuth._handleError (/usr/src/app/node_modules/ldapauth-fork/lib/ldapauth.js:171:8)
oauth_1 | at Client.emit (events.js:189:13)
oauth_1 | at Client.EventEmitter.emit (domain.js:441:20)
oauth_1 | at TLSSocket.onSocketError (/usr/src/app/node_modules/ldapjs/lib/client/client.js:1169:12)
oauth_1 | at TLSSocket.emit (events.js:189:13)
oauth_1 | at TLSSocket.EventEmitter.emit (domain.js:441:20)
oauth_1 | at emitErrorNT (internal/streams/destroy.js:82:8)
oauth_1 | at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
oauth_1 | at process._tickCallback (internal/process/next_tick.js:63:19)
oauth_1 | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
oauth_1 | at ServerResponse.setHeader (_http_outgoing.js:470:11)
oauth_1 | at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:718:10)
oauth_1 | at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:163:12)
oauth_1 | at ServerResponse.json (/usr/src/app/node_modules/express/lib/response.js:249:15)
oauth_1 | at _0x3410c0.(anonymous function) (/usr/src/app/src/oauth/routes.js:1:20982)
oauth_1 | at Strategy.strategy.error (/usr/src/app/node_modules/passport/lib/middleware/authenticate.js:333:18)
oauth_1 | at Object.onceWrapper (events.js:277:13)
oauth_1 | at LdapAuth.emit (events.js:194:15)
oauth_1 | at LdapAuth.EventEmitter.emit (domain.js:441:20)
oauth_1 | at LdapAuth._handleError (/usr/src/app/node_modules/ldapauth-fork/lib/ldapauth.js:171:8)
oauth_1 | at Client.emit (events.js:189:13)
oauth_1 | at Client.EventEmitter.emit (domain.js:441:20)
oauth_1 | at TLSSocket.onSocketError (/usr/src/app/node_modules/ldapjs/lib/client/client.js:1169:12)
oauth_1 | at TLSSocket.emit (events.js:189:13)
oauth_1 | at TLSSocket.EventEmitter.emit (domain.js:441:20)
oauth_1 | at emitErrorNT (internal/streams/destroy.js:82:8)
oauth_1 | at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
oauth_1 | at process._tickCallback (internal/process/next_tick.js:63:19)
oauth_1 | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
oauth_1 | at ServerResponse.setHeader (_http_outgoing.js:470:11)
oauth_1 | at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:718:10)
oauth_1 | at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:163:12)
oauth_1 | at ServerResponse.json (/usr/src/app/node_modules/express/lib/response.js:249:15)
oauth_1 | at _0x3410c0.(anonymous function) (/usr/src/app/src/oauth/routes.js:1:20982)
oauth_1 | at Strategy.strategy.error (/usr/src/app/node_modules/passport/lib/middleware/authenticate.js:333:18)
oauth_1 | at Object.onceWrapper (events.js:277:13)
oauth_1 | at LdapAuth.emit (events.js:194:15)
oauth_1 | at LdapAuth.EventEmitter.emit (domain.js:441:20)
oauth_1 | at LdapAuth._handleError (/usr/src/app/node_modules/ldapauth-fork/lib/ldapauth.js:171:8)
oauth_1 | at Client.emit (events.js:189:13)
oauth_1 | at Client.EventEmitter.emit (domain.js:441:20)
oauth_1 | at TLSSocket.onSocketError (/usr/src/app/node_modules/ldapjs/lib/client/client.js:1169:12)
oauth_1 | at TLSSocket.emit (events.js:189:13)
oauth_1 | at TLSSocket.EventEmitter.emit (domain.js:441:20)
oauth_1 | at emitErrorNT (internal/streams/destroy.js:82:8)
oauth_1 | at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
oauth_1 | at process._tickCallback (internal/process/next_tick.js:63:19)
oauth_1 | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
oauth_1 | at ServerResponse.setHeader (_http_outgoing.js:470:11)
oauth_1 | at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:718:10)
oauth_1 | at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:163:12)
oauth_1 | at ServerResponse.json (/usr/src/app/node_modules/express/lib/response.js:249:15)
oauth_1 | at _0x3410c0.(anonymous function) (/usr/src/app/src/oauth/routes.js:1:20982)
oauth_1 | at Strategy.strategy.error (/usr/src/app/node_modules/passport/lib/middleware/authenticate.js:333:18)
oauth_1 | at Object.onceWrapper (events.js:277:13)
oauth_1 | at LdapAuth.emit (events.js:194:15)
oauth_1 | at LdapAuth.EventEmitter.emit (domain.js:441:20)
oauth_1 | at LdapAuth._handleError (/usr/src/app/node_modules/ldapauth-fork/lib/ldapauth.js:171:8)
oauth_1 | at Client.emit (events.js:189:13)
oauth_1 | at Client.EventEmitter.emit (domain.js:441:20)
oauth_1 | at TLSSocket.onSocketError (/usr/src/app/node_modules/ldapjs/lib/client/client.js:1169:12)
oauth_1 | at TLSSocket.emit (events.js:189:13)
oauth_1 | at TLSSocket.EventEmitter.emit (domain.js:441:20)
oauth_1 | at emitErrorNT (internal/streams/destroy.js:82:8)
oauth_1 | at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
oauth_1 | at process._tickCallback (internal/process/next_tick.js:63:19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment