Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node app.js fails #1298

Open
kindlydodo opened this issue May 20, 2024 · 1 comment
Open

node app.js fails #1298

kindlydodo opened this issue May 20, 2024 · 1 comment

Comments

@kindlydodo
Copy link

What i do:
I follow https://github.com/sahat/hackathon-starter?tab=readme-ov-file#getting-started

Step:
node app.js

fails:

Run this app using "npm start" to include sass/scss/css builds.

(node:16202) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
App is running on http://localhost:8080 in development mode.
Press CTRL-C to stop.
MongoServerSelectionError: connect ECONNREFUSED ::1:27017, connect ECONNREFUSED 127.0.0.1:27017
    at Timeout._onTimeout (/home/besc/work/node-Starter/node_modules/mongoose/node_modules/mongodb/lib/sdam/topology.js:278:38)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7) {
  reason: TopologyDescription {
    type: 'Unknown',
    servers: Map(1) { 'localhost:27017' => [ServerDescription] },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: null,
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [Symbol(errorLabels)]: Set(0) {}
}

@YasharF
Copy link
Collaborator

YasharF commented May 26, 2024

It looks like haven't setup a mongodb instance. See the Prereq section in the readme.md for the full list of prereqs for running the app :) : https://github.com/sahat/hackathon-starter?tab=readme-ov-file#prerequisites

MongoServerSelectionError: connect ECONNREFUSED ::1:27017, connect ECONNREFUSED 127.0.0.1:27017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants