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

failed to connect to server #97

Open
lomirus opened this issue Dec 12, 2022 · 0 comments
Open

failed to connect to server #97

lomirus opened this issue Dec 12, 2022 · 0 comments

Comments

@lomirus
Copy link

lomirus commented Dec 12, 2022

$ mongoku start
  __  __                         _          
 |  \/  | ___  _ __   __ _  ___ | | ___   _ 
 | |\/| |/ _ \| '_ \ / _` |/ _ \| |/ / | | |
 | |  | | (_) | | | | (_| | (_) |   <| |_| |
 |_|  |_|\___/|_| |_|\__, |\___/|_|\_\\__,_|
                     |___/                  
[Mongoku] Starting...
(node:33597) [MONGODB DRIVER] Warning: 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.
(Use `node --trace-warnings ...` to show where the warning was created)
Error while connecting to localhost:27017: undefined failed to connect to server [localhost:27017] on first connect [Error: connect ECONNREFUSED ::1:27017
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1283:16) {
  name: 'MongoNetworkError'
}]
[Mongoku] listening on port 3100
$ mongosh
Current Mongosh Log ID:	6397161dd4cd5a191e2d4185
Connecting to:		mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.6.1
Using MongoDB:		6.0.3
Using Mongosh:		1.6.1

For mongosh info see: https://docs.mongodb.com/mongodb-shell/

------
   The server generated these startup warnings when booting
   2022-12-12T19:42:21.536+08:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem
   2022-12-12T19:42:21.725+08:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
   2022-12-12T19:42:21.725+08:00: vm.max_map_count is too low
------

------
   Enable MongoDB's free cloud-based monitoring service, which will then receive and display
   metrics about your deployment (disk utilization, CPU, operation statistics, etc).
   
   The monitoring data will be available on a MongoDB website with a unique URL accessible to you
   and anyone you share the URL with. MongoDB may use this information to make product
   improvements and to suggest MongoDB products and deployment options to you.
   
   To enable free monitoring, run the following command: db.enableFreeMonitoring()
   To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
------
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

1 participant