U
U
UNy2018-05-24 12:52:06
MongoDB
UNy, 2018-05-24 12:52:06

Mongodb only works with the internet?

Why does everything work fine when starting the server with the Internet, but without giving an error related to mongo:

MongoError: failed to connect to server [localhost:27017] on first connect [MongoError: getaddrinfo ENOENT localhost:27017]
    at Pool.<anonymous> (C:\Users\Vlad\WebstormProjects\untitled5\node_modules\connect-mongo\node_modules\mongodb-core\lib\topologies\server.js:336:35)
    at emitOne (events.js:116:13)
    at Pool.emit (events.js:211:7)
    at Connection.<anonymous> (C:\Users\Vlad\WebstormProjects\untitled5\node_modules\connect-mongo\node_modules\mongodb-core\lib\connection\pool.js:280:12)
    at Object.onceWrapper (events.js:317:30)
    at emitTwo (events.js:126:13)
    at Connection.emit (events.js:214:7)
    at Socket.<anonymous> (C:\Users\Vlad\WebstormProjects\untitled5\node_modules\connect-mongo\node_modules\mongodb-core\lib\connection\connection.js:189:49)
    at Object.onceWrapper (events.js:315:30)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PrAw, 2018-05-24
@UNy

I suspect that it makes sense to manually start the mongo service.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question