question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nodejs-mongo devfile sample issues

See original GitHub issue

Describe the bug

https://github.com/eclipse/che-devfile-registry/tree/master/devfiles/nodejs-mongo 3 issues

  • run the web app task opens URL that returns 404 (#13964, #13945)
  • “create test user” task gives no output and it’s not clear whether it works
  • when running run the web app task for a while, this Error happens
/projects/nodejs-mongodb-app/node_modules/mongodb/lib/server.js:242
        process.nextTick(function() { throw err; })
                                      ^
Error: connect ETIMEDOUT 10.109.232.241:27017
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
Emitted 'error' event at:
    at NativeConnection.Connection.error (/projects/nodejs-mongodb-app/node_modules/mongoose/lib/connection.js:443:8)
    at /projects/nodejs-mongodb-app/node_modules/mongoose/lib/connection.js:472:15
    at /projects/nodejs-mongodb-app/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js:59:21
    at /projects/nodejs-mongodb-app/node_modules/mongodb/lib/db.js:232:14
    at Server.<anonymous> (/projects/nodejs-mongodb-app/node_modules/mongodb/lib/server.js:240:9)
    at Object.onceWrapper (events.js:273:13)
    at Server.emit (events.js:182:13)
    at Pool.<anonymous> (/projects/nodejs-mongodb-app/node_modules/mongodb-core/lib/topologies/server.js:308:68)
    at Pool.emit (events.js:182:13)
    at Connection.<anonymous> (/projects/nodejs-mongodb-app/node_modules/mongodb-core/lib/connection/pool.js:115:12)
    at Object.onceWrapper (events.js:273:13)
    at Connection.emit (events.js:182:13)
    at Socket.<anonymous> (/projects/nodejs-mongodb-app/node_modules/mongodb-core/lib/connection/connection.js:144:49)
    at Object.onceWrapper (events.js:273:13)
    at Socket.emit (events.js:182:13)
    at emitErrorNT (internal/streams/destroy.js:82:8)
[nodemon] app crashed - waiting for file changes before starting...

Che version

  • nightly

Steps to reproduce

  1. import devfile https://github.com/eclipse/che-devfile-registry/tree/master/devfiles/nodejs-mongo
  2. run run the web app task
  3. ! page with URL getting 404 appears
  4. wait for some time doing nothing
  5. ! see Error in terminal
  6. run create test user
  7. ! nothing visible happens

Expected behavior

Runtime

  • minikube (include output of minikube version and kubectl version)

Screenshots

Installation method

  • chectl

Environment

  • my computer
    • Linux

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
slemeurcommented, Jul 24, 2019

Adding it to 7.1.0 as related to https://github.com/eclipse/che/issues/13945

0reactions
che-botcommented, Apr 8, 2020

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 3. Workspaces overview - Red Hat Customer Portal
Creating a workspace from code sample. Every stack includes a sample codebase, which is defined by the devfile of the stack. This section...
Read more >
How to build a Node.js and MongoDB Application with Docker ...
Containers resolve the problem of a code working on one operating system/computing ... I have created a sample login application using Nodejs and...
Read more >
Devfile Registry
... and more A suite of developer tools to help you develop, build, test, and update your code. Node.js; Angular. dotnet-basic icon. Sample...
Read more >
Deploy a Node.js + MongoDB web app to Azure
Azure App Service captures all messages logged to the console to assist you in diagnosing issues with your application. The sample app ...
Read more >
Find a Document — Node.js - MongoDB
Example. The following snippet finds a single document from the movies collection. It uses the following parameters: A query ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found