{"t":{"$date":"2023-10-17T09:02:27.548Z"},"s":"I","c":"MONGOSH","id":1000000000,"ctx":"log","msg":"Starting log","attr":{"execPath":"/opt/mongodb/mongosh/mongosh-2.0.1-linux-x64/bin/mongosh","envInfo":{"EDITOR":null,"NODE_OPTIONS":null,"TERM":"xterm-256color"},"version":"2.0.1","distributionKind":"compiled","buildArch":"x64","buildPlatform":"linux","buildTarget":"linux-x64","buildTime":"2023-09-14T09:24:48.742Z","gitVersion":"225d4603f0d43d500a8847beaa980e906e9a35be","nodeVersion":"v20.6.1","opensslVersion":"3.0.10+quic","sharedOpenssl":false,"runtimeArch":"x64","runtimePlatform":"linux","deps":{"nodeDriverVersion":"6.0.0","libmongocryptVersion":"1.9.0-20230828+git8e7f69f1c0","libmongocryptNodeBindingsVersion":"6.0.0"}}} {"t":{"$date":"2023-10-17T09:02:27.553Z"},"s":"I","c":"MONGOSH","id":1000000005,"ctx":"config","msg":"User updated"} {"t":{"$date":"2023-10-17T09:02:27.554Z"},"s":"I","c":"MONGOSH","id":1000000048,"ctx":"config","msg":"Loading global configuration file","attr":{"filename":"/etc/mongosh.conf","found":false}} {"t":{"$date":"2023-10-17T09:02:27.574Z"},"s":"E","c":"DEVTOOLS-CONNECT","id":1000000041,"ctx":"mongosh-deps","msg":"Missing optional dependency","attr":{"name":"saslprep","error":"Cannot find module 'saslprep'"}} {"t":{"$date":"2023-10-17T09:02:27.576Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000042,"ctx":"mongosh-connect","msg":"Initiating connection attempt","attr":{"uri":"mongodb://@localhost:39017/?directConnection=true&serverSelectionTimeoutMS=2000&authMechanism=PLAIN&appName=mongosh+2.0.1","driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.1"},"devtoolsConnectVersion":"2.4.1","host":"localhost:39017"}} {"t":{"$date":"2023-10-17T09:02:27.582Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000035,"ctx":"mongosh-connect","msg":"Server heartbeat succeeded","attr":{"connectionId":"localhost:39017"}} {"t":{"$date":"2023-10-17T09:02:27.619Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000037,"ctx":"mongosh-connect","msg":"Connection attempt finished"} {"t":{"$date":"2023-10-17T09:02:27.672Z"},"s":"I","c":"MONGOSH","id":1000000004,"ctx":"connect","msg":"Connecting to server","attr":{"session_id":"652e4da3950ef3cc09d6282c","userId":null,"telemetryAnonymousId":"65296d1a09b9c38fca247bb4","connectionUri":"","is_atlas":false,"is_localhost":true,"is_do":false,"server_version":"6.0.9","node_version":"v20.6.1","mongosh_version":"2.0.1","server_os":"linux","server_arch":"x86_64","is_enterprise":true,"auth_type":"PLAIN","is_data_federation":false,"is_stream":false,"dl_version":null,"atlas_version":null,"is_genuine":true,"non_genuine_server_name":"mongodb","is_local_atlas":false,"fcv":"5.0","api_version":null,"api_strict":null,"api_deprecation_errors":null}} {"t":{"$date":"2023-10-17T09:02:27.688Z"},"s":"I","c":"MONGOSH","id":1000000010,"ctx":"shell-api","msg":"Initialized context","attr":{"method":"setCtx","arguments":{}}} {"t":{"$date":"2023-10-17T09:02:27.690Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000024,"ctx":"snippets","msg":"Fetching snippet index","attr":{"refreshMode":"allow-cached"}} {"t":{"$date":"2023-10-17T09:02:27.690Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000019,"ctx":"snippets","msg":"Loaded snippets","attr":{"installdir":"/local/home/mongod/.mongodb/mongosh/snippets"}} {"t":{"$date":"2023-10-17T09:02:27.739Z"},"s":"I","c":"MONGOSH","id":1000000014,"ctx":"repl","msg":"Loading .mongoshrc.js"} {"t":{"$date":"2023-10-17T09:02:27.739Z"},"s":"I","c":"MONGOSH","id":1000000012,"ctx":"shell-api","msg":"Loading file via load()","attr":{"nested":false,"filename":"/local/home/mongod/.mongoshrc.js"}} {"t":{"$date":"2023-10-17T09:02:27.912Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"prompt = function () {\n if ((rs.status().info == \"mongos\")) {\n return rs.status().info + \":[\" + db.version() + \"] > \";\n }\n switch (rs.status().myState) {\n case 1:\n stateStr = \"PRIMARY\";\n break;\n case 2:\n stateStr = \"SECONDARY\";\n break;\n case 7:\n stateStr = \"ARBITER\";\n break;\n default:\n stateStr = \"MongoDB\";\n break;\n }\n return db.hostInfo().system.hostname.toUpperCase().split(\":\").shift().split(\".\").shift() + \":\" + rs.status().set + \":\" + stateStr + \"> \";\n};\ndb.getMongo().setReadPref('nearest')"}} {"t":{"$date":"2023-10-17T09:02:27.985Z"},"s":"I","c":"MONGOSH-SP","id":1000000040,"ctx":"connect","msg":"Reconnect because of changed connection options"} {"t":{"$date":"2023-10-17T09:02:27.985Z"},"s":"E","c":"DEVTOOLS-CONNECT","id":1000000041,"ctx":"mongosh-deps","msg":"Missing optional dependency","attr":{"name":"saslprep","error":"Cannot find module 'saslprep'"}} {"t":{"$date":"2023-10-17T09:02:27.987Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000042,"ctx":"mongosh-connect","msg":"Initiating connection attempt","attr":{"uri":"mongodb://@localhost:39017/?directConnection=true&serverSelectionTimeoutMS=2000&authMechanism=PLAIN&appName=mongosh+2.0.1","driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.1"},"devtoolsConnectVersion":"2.4.1","host":"localhost:39017"}} {"t":{"$date":"2023-10-17T09:02:27.988Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000035,"ctx":"mongosh-connect","msg":"Server heartbeat succeeded","attr":{"connectionId":"localhost:39017"}} {"t":{"$date":"2023-10-17T09:02:28.031Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000037,"ctx":"mongosh-connect","msg":"Connection attempt finished"} {"t":{"$date":"2023-10-17T09:02:28.068Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2023-10-17T09:02:28.069Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"status","class":"ReplicaSet","arguments":{}}} {"t":{"$date":"2023-10-17T09:02:28.070Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"test","arguments":{"db":"admin"}}} {"t":{"$date":"2023-10-17T09:02:28.072Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"status","class":"ReplicaSet","arguments":{}}} {"t":{"$date":"2023-10-17T09:02:28.072Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"test","arguments":{"db":"admin"}}} {"t":{"$date":"2023-10-17T09:02:28.074Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"hostInfo","class":"Database","db":"test","arguments":{}}} {"t":{"$date":"2023-10-17T09:02:28.075Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"test","arguments":{"db":"admin"}}} {"t":{"$date":"2023-10-17T09:02:28.078Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"status","class":"ReplicaSet","arguments":{}}} {"t":{"$date":"2023-10-17T09:02:28.078Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"test","arguments":{"db":"admin"}}} {"t":{"$date":"2023-10-17T09:02:28.081Z"},"s":"I","c":"MONGOSH","id":1000000002,"ctx":"repl","msg":"Started REPL","attr":{"version":"2.0.1"}} {"t":{"$date":"2023-10-17T09:02:28.105Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2023-10-17T09:02:28.123Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"status","class":"ReplicaSet","arguments":{}}} {"t":{"$date":"2023-10-17T09:02:28.126Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"test","arguments":{"db":"admin"}}} {"t":{"$date":"2023-10-17T09:02:28.127Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"rs.printSecondaryReplicationInfo();"}} {"t":{"$date":"2023-10-17T09:02:28.155Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"printSecondaryReplicationInfo","class":"ReplicaSet","arguments":{}}} {"t":{"$date":"2023-10-17T09:02:28.158Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"test","arguments":{"db":"local"}}} {"t":{"$date":"2023-10-17T09:02:28.159Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getCollection","class":"Database","db":"local","arguments":{"coll":"system.replset"}}} {"t":{"$date":"2023-10-17T09:02:28.160Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"countDocuments","class":"Collection","db":"local","coll":"system.replset","arguments":{"query":{},"options":{}}}} {"t":{"$date":"2023-10-17T09:02:28.161Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"status","class":"ReplicaSet","arguments":{}}} {"t":{"$date":"2023-10-17T09:02:28.161Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"test","arguments":{"db":"admin"}}} {"t":{"$date":"2023-10-17T09:02:28.163Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"hostInfo","class":"Database","db":"test","arguments":{}}} {"t":{"$date":"2023-10-17T09:02:28.164Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"test","arguments":{"db":"admin"}}} {"t":{"$date":"2023-10-17T09:02:28.164Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"status","class":"ReplicaSet","arguments":{}}} {"t":{"$date":"2023-10-17T09:02:28.168Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"test","arguments":{"db":"admin"}}} {"t":{"$date":"2023-10-17T09:02:28.197Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"MongoshInternalError: [COMMON-90001] Mongosh not initialized yet","attr":{"name":"MongoshInternalError","code":"COMMON-90001","scope":"COMMON","metadata":null,"message":"[COMMON-90001] Mongosh not initialized yet","stack":"MongoshInternalError: [COMMON-90001] Mongosh not initialized yet\n at async h.eval (/tmp/m/boxednode/mongosh/node-v20.6.1/out/Release/node:10:19517)\n at MongoshNodeRepl.eval (/tmp/m/boxednode/mongosh/node-v20.6.1/out/Release/node:10:68293)\n at MongoshNodeRepl.getShellPrompt (/tmp/m/boxednode/mongosh/node-v20.6.1/out/Release/node:10:72664)\n at MongoshNodeRepl.runtimeState (/tmp/m/boxednode/mongosh/node-v20.6.1/out/Release/node:10:71592)","cause":null}}