-
Bug
-
Resolution: Done
-
Major
-
2.2.0.GA
-
None
0. deploy CRW 2.2.0 as follows:
/opt/crwctl/bin/crwctl server:start --self-signed-cert --che-operator-image=quay.io/crw/crw-2-rhel8-operator:latest --listr-renderer=verbose -n my-crw
Using latest https://github.com/redhat-developer/codeready-workspaces-chectl/releases/tag/2.2.0-RC1-7b87dc4
1. Once deployed, select the mongodb example from the Getting Started page.
2. Once loaded, from the Terminal > Run Task... menu, select:
- npm: install [succeeds]
- npm: start [fails]
- npm: debug [fails]
> nodejs-mongodb-sample@1.0.0 start /projects/nodejs-mongodb-sample > node app.js (node:406) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. App listening on port 8080 Press Ctrl+C to quit. Disconnected: unable to reconnect to mongodb://user:password@mongodb-34-rhel7:27017/guestbook Terminal will be reused by tasks. /projects/nodejs-mongodb-sample/node_modules/mongodb/lib/topologies/server.js:240 throw err; ^ Error: Disconnected: unable to reconnect to mongodb://user:password@mongodb-34-rhel7:27017/guestbook at NativeConnection.db.on (/projects/nodejs-mongodb-sample/routes/messages.js:16:11) at NativeConnection.emit (events.js:198:13) at NativeConnection.set (/projects/nodejs-mongodb-sample/node_modules/mongoose/lib/connection.js:117:12) at /projects/nodejs-mongodb-sample/node_modules/mongoose/lib/connection.js:634:26 at err (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/operations/execute_operation.js:76:14) at executeCallback (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/operations/execute_operation.js:67:25) at err (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/operations/connect.js:192:23) at connectCallback (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/operations/connect.js:340:5) at server.connect (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/operations/connect.js:407:14) at Server.<anonymous> (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/topologies/server.js:237:11) at Object.onceWrapper (events.js:286:20) at Server.emit (events.js:198:13) at Pool.<anonymous> (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/core/topologies/server.js:429:21) at Pool.emit (events.js:198:13) at connect (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/core/connection/pool.js:580:14) at makeConnection (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/core/connection/connect.js:39:11) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! nodejs-mongodb-sample@1.0.0 start: `node app.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the nodejs-mongodb-sample@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/theia/.npm/_logs/2020-06-15T21_42_43_044Z-debug.log
or
audited 248 packages in 2.969s found 3 vulnerabilities (2 low, 1 moderate) run `npm audit fix` to fix them, or `npm audit` for details Debugger listening on ws://127.0.0.1:9229/0f455d35-b140-4a31-82df-c527690986d9 For help, see: https://nodejs.org/en/docs/inspector (node:98) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. App listening on port 8080 Press Ctrl+C to quit. Disconnected: unable to reconnect to mongodb://user:password@mongodb-34-rhel7:27017/guestbook /projects/nodejs-mongodb-sample/node_modules/mongodb/lib/topologies/server.js:240 throw err; ^ Error: Disconnected: unable to reconnect to mongodb://user:password@mongodb-34-rhel7:27017/guestbook at NativeConnection.db.on (/projects/nodejs-mongodb-sample/routes/messages.js:16:11) at NativeConnection.emit (events.js:198:13) at NativeConnection.set (/projects/nodejs-mongodb-sample/node_modules/mongoose/lib/connection.js:117:12) at /projects/nodejs-mongodb-sample/node_modules/mongoose/lib/connection.js:634:26 at err (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/operations/execute_operation.js:76:14) at executeCallback (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/operations/execute_operation.js:67:25) at err (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/operations/connect.js:192:23) at connectCallback (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/operations/connect.js:340:5) at server.connect (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/operations/connect.js:407:14) at Server.<anonymous> (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/topologies/server.js:237:11) at Object.onceWrapper (events.js:286:20) at Server.emit (events.js:198:13) at Pool.<anonymous> (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/core/topologies/server.js:429:21) at Pool.emit (events.js:198:13) at connect (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/core/connection/pool.js:580:14) at makeConnection (/projects/nodejs-mongodb-sample/node_modules/mongodb/lib/core/connection/connect.js:39:11)