ECONNREFUSED on runtime

Hi all,

I am running a web app which daily is receiving lots of data and hence manipulating them and storing them into the database. The web app has an open connection for storing the data and the data is received by scrapers multiple times a day.

Mongodb throws the following error unexpectedly at times where I don’t even have a clue what’s causing it and where:

MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017
  at Timeout._onTimeout (/var/www/website.com/node_modules/mongodb/lib/core/sdam/topology.js:439:30)
  at listOnTimeout (internal/timers.js:555:17)
  at processTimers (internal/timers.js:498:7) {
reason: TopologyDescription {
  type: 'Single',
  setName: null,
  maxSetVersion: null,
  maxElectionId: null,
  servers: Map(1) { 'localhost:27017' => [ServerDescription] },
  stale: false,
  compatible: true,
  compatibilityError: null,
  logicalSessionTimeoutMinutes: null,
  heartbeatFrequencyMS: 10000,
  localThresholdMS: 15,
  commonWireVersion: 9
}}

This makes me having to stare at the website 24/7 because I simply don’t know when this error will happen and why. After spending hours researching, all the answers are about starting mongodb the right way, but my problem is not this. The problem is that mongodb starts when I restart my server, but during the runtime, mongodb will be completely disconnected.

What can I do in this case? Sadly, I am not a mongodb guru…

means that you application is trying to connect to a local instance of MongoDB that is currently down.

A server like MongoDB will terminate for 2 reasons:

  1. You terminate it yourself
  2. It crashes

In both cases the logs are needed for further investigation.

Hi Steve,

Thank you for your answer. I was wondering where I could find the logs to investigate this problem?

The location is specified in your configuration file.

If not specified, you will find the defaults at

Hi Steve,

I finally managed to get the logs from the mongodb (the file was 24G) and got the error:

{“t”:{"$date":“2021-07-28T20:20:34.148+00:00”},“s”:“F”, “c”:"-", “id”:23079, “ctx”:“listener”,“msg”:“Invariant failure”,“attr”:{“expr”:"_isShutdown",“file”:“src/mongo/db/client_out_of_line_executor.cpp”,“line”:58}}
{“t”:{"$date":“2021-07-28T20:20:34.148+00:00”},“s”:“F”, “c”:"-", “id”:23080, “ctx”:“listener”,“msg”:"\n\n***aborting after invariant() failure\n\n"}
{“t”:{"$date":“2021-07-28T20:20:34.148+00:00”},“s”:“F”, “c”:“CONTROL”, “id”:4757800, “ctx”:“listener”,“msg”:“Writing fatal message”,“attr”:{“message”:“Got signal: 6 (Aborted).\n”}}
{“t”:{"$date":“2021-07-28T20:20:34.155+00:00”},“s”:“E”, “c”:“CONTROL”, “id”:31430, “ctx”:“listener”,“msg”:“Error collecting stack trace”,“attr”:{“error”:“unw_get_proc_name(5652C5B1ACA1): unspecified (general) error\nerror: unw_step: unspecified (general) error\nunw_get_proc_name(5652C5B1ACA1): unspecified (general) error\nerror: unw_step: unspecified (general) error\n”}}
{“t”:{"$date":“2021-07-28T20:20:34.155+00:00”},“s”:“I”, “c”:“CONTROL”, “id”:31431, “ctx”:“listener”,“msg”:“BACKTRACE: {bt}”,“attr”:{“bt”:{“backtrace”:[{“a”:“5652C5B1ACA1”,“b”:“5652C2E2C000”,“o”:“2CEECA1”}],“processInfo”:{“mongodbVersion”:“4.4.3”,“gitVersion”:“913d6b62acfbb344dde1b116f4161360acd8fd13”,“compiledModules”:[],“uname”:{“sysname”:“Linux”,“release”:“5.3.0-19-generic”,“version”:"#20-Ubuntu SMP Fri Oct 18 09:04:39 UTC 2019",“machine”:“x86_64”},“somap”:[{“b”:“5652C2E2C000”,“elfType”:3,“buildId”:“C97735C67E92F5EF20BB0BB02993106784C97ADC”}]}}}}
{“t”:{"$date":“2021-07-28T20:20:34.155+00:00”},“s”:“I”, “c”:“CONTROL”, “id”:31427, “ctx”:“listener”,“msg”:" Frame: {frame}",“attr”:{“frame”:{“a”:“5652C5B1ACA1”,“b”:“5652C2E2C000”,“o”:“2CEECA1”}}}

I’m still not sure what it means, so I am showing you below all the messages prior this error:

{“t”:{"$date":“2021-07-28T20:18:51.607+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn335”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:42546”,“client”:“conn335”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:18:51.610+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn336”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:42548”,“client”:“conn336”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:18:53.030+00:00”},“s”:“I”, “c”:“COMMAND”, “id”:51803, “ctx”:“conn21”,“msg”:“Slow query”,“attr”:{“type”:“command”,“ns”:“webDB.div_1_data”,“command”:{“getMore”:6529189870248944908,“collection”:“div_1_data”,“batchSize”:1000,“lsid”:{“id”:{"$uuid":“d7df2820-e567-4e10-afd5-a7a9f8b5e234”}},"$db":“webDB”},“originatingCommand”:{“find”:“div_1_data”,“filter”:{“div_id”:“5f1c948a24f71e5a7b07f669”},“sort”:{“created_at”:-1},“returnKey”:false,“showRecordId”:false,“lsid”:{“id”:{"$uuid":“d7df2820-e567-4e10-afd5-a7a9f8b5e234”}},"$db":“webDB”},“planSummary”:“IXSCAN { div_id: 1, created_at: -1 }”,“cursorid”:6529189870248944908,“keysExamined”:450,“docsExamined”:450,“fromMultiPlanner”:true,“cursorExhausted”:true,“numYields”:6,“nreturned”:450,“reslen”:91244,“locks”:{“ReplicationStateTransition”:{“acquireCount”:{“w”:7}},“Global”:{“acquireCount”:{“r”:7}},“Database”:{“acquireCount”:{“r”:7}},“Collection”:{“acquireCount”:{“r”:7}},“Mutex”:{“acquireCount”:{“r”:1}}},“storage”:{“data”:{“bytesRead”:17550019,“timeReadingMicros”:91246}},“protocol”:“op_msg”,“durationMillis”:100}}
{“t”:{"$date":“2021-07-28T20:18:57.734+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn337”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:42900”,“client”:“conn337”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:18:57.737+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn338”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:42902”,“client”:“conn338”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:18:59.118+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn339”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:43082”,“client”:“conn339”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:00.266+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn340”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:43384”,“client”:“conn340”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:00.269+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn341”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:43386”,“client”:“conn341”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:01.333+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn342”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:43486”,“client”:“conn342”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:01.341+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn343”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:43488”,“client”:“conn343”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:02.071+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn344”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:43492”,“client”:“conn344”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:02.111+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn345”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:43494”,“client”:“conn345”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:05.641+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn346”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:43748”,“client”:“conn346”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:05.645+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn347”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:43750”,“client”:“conn347”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:06.381+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn348”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:44004”,“client”:“conn348”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:06.383+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn349”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:44006”,“client”:“conn349”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:08.240+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn350”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:44110”,“client”:“conn350”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:08.263+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn351”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:44114”,“client”:“conn351”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:08.266+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn352”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:44116”,“client”:“conn352”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:10.770+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn353”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:44140”,“client”:“conn353”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:51.293+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn392”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:45798”,“client”:“conn392”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:51.405+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn393”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:45818”,“client”:“conn393”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:51.627+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn394”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:45862”,“client”:“conn394”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:51.629+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn395”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:45864”,“client”:“conn395”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:51.942+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn396”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46116”,“client”:“conn396”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:52.727+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn397”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46166”,“client”:“conn397”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:52.731+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn398”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46168”,“client”:“conn398”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:53.597+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn399”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46176”,“client”:“conn399”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:53.599+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn400”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46178”,“client”:“conn400”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:55.031+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn401”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46334”,“client”:“conn401”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:55.033+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn402”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46336”,“client”:“conn402”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:55.648+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn403”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46560”,“client”:“conn403”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:55.650+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn404”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46562”,“client”:“conn404”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:56.132+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn405”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46676”,“client”:“conn405”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:56.998+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn406”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46776”,“client”:“conn406”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:57.001+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn407”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46778”,“client”:“conn407”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:57.043+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn408”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46782”,“client”:“conn408”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:19:57.053+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn409”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46784”,“client”:“conn409”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:00.075+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn410”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46810”,“client”:“conn410”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:00.578+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn411”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46824”,“client”:“conn411”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:00.580+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn412”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46826”,“client”:“conn412”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:02.132+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn413”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46832”,“client”:“conn413”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:03.231+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn414”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46838”,“client”:“conn414”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:04.101+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn415”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46856”,“client”:“conn415”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:05.536+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn416”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46878”,“client”:“conn416”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:05.799+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn417”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46888”,“client”:“conn417”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:05.801+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn418”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46890”,“client”:“conn418”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:06.152+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn419”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46894”,“client”:“conn419”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:07.006+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn420”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46902”,“client”:“conn420”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:07.009+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn421”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46904”,“client”:“conn421”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:07.503+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn422”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46908”,“client”:“conn422”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:07.554+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn423”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46912”,“client”:“conn423”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:11.095+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn424”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46920”,“client”:“conn424”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:16.302+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn425”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46988”,“client”:“conn425”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:17.510+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn426”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:46990”,“client”:“conn426”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:22.900+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn427”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47012”,“client”:“conn427”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:22.903+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn428”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47016”,“client”:“conn428”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:23.227+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn429”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47022”,“client”:“conn429”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:23.229+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn430”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47024”,“client”:“conn430”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:24.414+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn431”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47042”,“client”:“conn431”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:24.416+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn432”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47044”,“client”:“conn432”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:26.932+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn433”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47064”,“client”:“conn433”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:26.935+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn434”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47066”,“client”:“conn434”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:29.854+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn435”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47180”,“client”:“conn435”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:29.857+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn436”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47182”,“client”:“conn436”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:30.566+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn437”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47222”,“client”:“conn437”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:30.573+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn438”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47224”,“client”:“conn438”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:31.479+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn439”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47336”,“client”:“conn439”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:31.481+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn440”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47338”,“client”:“conn440”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:33.041+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn441”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47390”,“client”:“conn441”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:33.047+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn442”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47392”,“client”:“conn442”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:33.421+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn443”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47398”,“client”:“conn443”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:33.424+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn444”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47400”,“client”:“conn444”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:33.438+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn445”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47402”,“client”:“conn445”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:33.751+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn446”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47432”,“client”:“conn446”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:33.954+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn447”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47824”,“client”:“conn447”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}
{“t”:{"$date":“2021-07-28T20:20:34.001+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:51800, “ctx”:“conn448”,“msg”:“client metadata”,“attr”:{“remote”:“127.0.0.1:47836”,“client”:“conn448”,“doc”:{“driver”:{“name”:“nodejs”,“version”:“3.6.6”},“os”:{“type”:“Linux”,“name”:“linux”,“architecture”:“x64”,“version”:“5.3.0-19-generic”},“platform”:"'Node.js v14.17.0, LE (unified)"}}}

Looks like it crashed
What is your os?
Check this link.It may help

Mongo v4.4.3 crash “invariant in client_out_of_line_executor.cpp”