Problems moving to Atlas Search Local Deployment via Docker

Hello,

I have a MongoDB database running with docker compose and I’m trying to move over to use Atlas Search.

Previously the configuration in our docker-compose file was:

services:
  mongodb:
    <<: *networks
    container_name: mongodb
    image: mongo:8.0
    volumes:
      - mongodb:/data/db
    ports:
      - "27017:27017"

After following this guide I changed it to:

  mongodb:
    <<: *networks
    container_name: mongodb
    image: mongodb/mongodb-atlas-local:8.0.3
    volumes:
      - mongodb:/data/db
    ports:
      - "27017:27017"

When connected in Compass I see no option to interact with Search Indexes.

From MongoDB Node package (v6.10)

When running the following command to create the search index:

  await dbName.collection("collection_name").createSearchIndex({
        name: "autocomplete",
        definition: {
            mappings: {
                dynamic: false,
                fields: {
                    "attributes.value": {
                        foldDiacritics: true,
                        maxGrams: 15,
                        minGrams: 2,
                        tokenization: "edgeGram",
                        type: "autocomplete"
                    }
                }
            }
        }
    });

I get this error:

MongoServerError: Using Atlas Search Database Commands and the $listSearchIndexes aggregation stage requires additional configuration. Please connect to Atlas or an AtlasCLI local deployment to enable. For more information on how to connect, see https://dochub.mongodb.org/core/atlas-cli-deploy-local-reqs.

Any help would be greatly appreciated.

Thanks in advance

@Gareth_Lowrie would you be able to share the Compass log file? https://mongodb.prakticum-team.ru/docs/compass/current/troubleshooting/logs/

I’m getting a “new users can’t share attachments” @Massimiliano_Marcon am I able to DM you some how?

{"t":{"$date":"2024-10-31T09:33:41.992Z"},"s":"I","c":"COMPASS-MAIN","id":1001000001,"ctx":"logging","msg":"Starting logging","attr":{"version":"1.44.5","nodeVersion":"20.16.0","electronVersion":"30.5.1","chromeVersion":"124.0.6367.243","platform":"darwin","arch":"arm64","osReleaseName":null,"osReleaseVersion":null,"pendingEarlyLogEventCount":2,"missingOptionalDeps":[]}}
{"t":{"$date":"2024-10-31T09:33:41.808Z"},"s":"I","c":"COMPASS-PREFERENCES","id":1001000153,"ctx":"preferences","msg":"Skipping global configuration file due to error","attr":{"filename":"/etc/mongodb-compass.conf","error":"ENOENT: no such file or directory, open '/etc/mongodb-compass.conf'","code":"ENOENT"}}
{"t":{"$date":"2024-10-31T09:33:41.810Z"},"s":"I","c":"COMPASS-PREFERENCES","id":1001000158,"ctx":"preferences","msg":"Parsed command line flags","attr":{"options":["_"]}}
{"t":{"$date":"2024-10-31T09:33:41.995Z"},"s":"I","c":"COMPASS-MAIN","id":1001000327,"ctx":"Application","msg":"Configured proxy","attr":{"options":{"useEnvironmentVariableProxies":true}}}
{"t":{"$date":"2024-10-31T09:33:41.996Z"},"s":"I","c":"COMPASS-TELEMETRY","id":1001000094,"ctx":"Telemetry","msg":"Enabling Telemetry reporting"}
{"t":{"$date":"2024-10-31T09:33:41.996Z"},"s":"I","c":"COMPASS-TELEMETRY","id":1001000093,"ctx":"Telemetry","msg":"Loading telemetry config","attr":{"telemetryCapableEnvironment":true,"hasAnalytics":true,"telemetryAnonymousId":"46b03ae9-90c3-4b6d-b412-51ea42c02993","state":"enabled","queuedEvents":0}}
{"t":{"$date":"2024-10-31T09:33:41.996Z"},"s":"I","c":"COMPASS-MAIN","id":1001000169,"ctx":"Protocol handling","msg":"Modifying protocol handlers","attr":{"action":"install","protocols":null}}
{"t":{"$date":"2024-10-31T09:33:42.021Z"},"s":"I","c":"COMPASS-MAIN","id":1001000307,"ctx":"Application","msg":"SafeStorage initialized","attr":{"enablePlainTextEncryption":false,"isAvailable":true,"backend":null}}
{"t":{"$date":"2024-10-31T09:33:42.023Z"},"s":"I","c":"CONNECTION-STORAGE","id":1001000271,"ctx":"Connection Storage","msg":"Connections already migrated"}
{"t":{"$date":"2024-10-31T09:33:42.032Z"},"s":"I","c":"COMPASS-ATLAS-SERVICE","id":1001000210,"ctx":"AtlasService","msg":"Atlas service initialized","attr":{"config":{"atlasApiBaseUrl":"https://mongodb.prakticum-team.ru/proxy/cloud.mongodb.com/api/private","atlasLogin":{"clientId":"0oajzdcznmE8GEyio297","issuer":"https://auth.mongodb.com/oauth2/default"},"authPortalUrl":"https://account.mongodb.com/account/login","wsBaseUrl":"","cloudBaseUrl":""}}}
{"t":{"$date":"2024-10-31T09:33:42.032Z"},"s":"I","c":"COMPASS-AUTO-UPDATES","id":1001000130,"ctx":"AutoUpdateManager","msg":"Initializing"}
{"t":{"$date":"2024-10-31T09:33:42.032Z"},"s":"I","c":"COMPASS-AUTO-UPDATES","id":1001000133,"ctx":"AutoUpdateManager","msg":"Setting up updateManager","attr":{"endpoint":"https://compass.mongodb.com","product":"compass","channel":"stable","platform":"darwin","arch":"arm64","version":"1.44.5","updateCheckInterval":14400000,"initialUpdateDelay":30000,"supported":true,"enabled":true}}
{"t":{"$date":"2024-10-31T09:33:42.041Z"},"s":"I","c":"COMPASS-MAIN","id":1001000125,"ctx":"AutoEncryption","msg":"Found MongoDB Crypt library","attr":{"cryptSharedLibPath":"/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/build/assets/mongo_crypt_v1.27d8866b2fa4bcc3fa99.dylib","externalOverride":null}}
{"t":{"$date":"2024-10-31T09:33:42.088Z"},"s":"I","c":"COMPASS-MAIN","id":1001000327,"ctx":"BrowserWindow","msg":"Configured proxy","attr":{"options":{"useEnvironmentVariableProxies":true}}}
{"t":{"$date":"2024-10-31T09:33:42.759Z"},"s":"I","c":"COMPASS-APP","id":1001000092,"ctx":"Main Window","msg":"Rendering app container","attr":{"autoConnectEnabled":false}}
{"t":{"$date":"2024-10-31T09:33:42.764Z"},"s":"I","c":"ATLAS-SERVICE","id":1001000297,"ctx":"AtlasService","msg":"Making a fetch","attr":{"url":"https://mongodb.prakticum-team.ru/proxy/cloud.mongodb.com/api/private/unauth/ai/api/v1/hello/46b03ae9-90c3-4b6d-b412-51ea42c02993"}}
{"t":{"$date":"2024-10-31T09:33:42.824Z"},"s":"W","c":"OIDC-PLUGIN","id":1002000016,"ctx":"AtlasService-oidc","msg":"Authentication failed","attr":{"error":"Auth flows are not allowed when sign in is not triggered by user"}}
{"t":{"$date":"2024-10-31T09:33:42.825Z"},"s":"I","c":"COMPASS-ATLAS-SERVICE","id":1001000299,"ctx":"AtlasService","msg":"Making an unauthenticated fetch","attr":{"url":"https://auth.mongodb.com/oauth2/default/v1/introspect?client_id=0oajzdcznmE8GEyio297"}}
{"t":{"$date":"2024-10-31T09:33:42.885Z"},"s":"W","c":"OIDC-PLUGIN","id":1002000016,"ctx":"AtlasService-oidc","msg":"Authentication failed","attr":{"error":"Auth flows are not allowed when sign in is not triggered by user"}}
{"t":{"$date":"2024-10-31T09:33:42.885Z"},"s":"I","c":"COMPASS-ATLAS-SERVICE","id":1001000299,"ctx":"AtlasService","msg":"Making an unauthenticated fetch","attr":{"url":"https://auth.mongodb.com/oauth2/default/v1/userinfo"}}
{"t":{"$date":"2024-10-31T09:33:42.960Z"},"s":"I","c":"COMPASS-INTERCOM","id":1001000116,"ctx":"Intercom","msg":"Loading intercom script"}
{"t":{"$date":"2024-10-31T09:33:42.960Z"},"s":"I","c":"COMPASS-INTERCOM","id":1001000111,"ctx":"Intercom","msg":"Intercom booted with metadata","attr":{"user_id":"46b03ae9-90c3-4b6d-b412-51ea42c02993","app_id":"p57suhg7","created_at":1718118887,"app_name":"MongoDB Compass","app_version":"1.44.5","app_stage":"production"}}
{"t":{"$date":"2024-10-31T09:33:43.149Z"},"s":"I","c":"ATLAS-SERVICE","id":1001000309,"ctx":"AtlasService","msg":"Received API response","attr":{"url":"https://mongodb.prakticum-team.ru/proxy/cloud.mongodb.com/api/private/unauth/ai/api/v1/hello/46b03ae9-90c3-4b6d-b412-51ea42c02993","status":200,"statusText":""}}
{"t":{"$date":"2024-10-31T09:33:43.149Z"},"s":"I","c":"ATLAS-AI-SERVICE","id":1001000300,"ctx":"AtlasAIService","msg":"Fetched if the AI feature is enabled","attr":{"enabled":true,"featureResponse":{"features":{"GEN_AI_COMPASS":{"enabled":true}}}}}
{"t":{"$date":"2024-10-31T09:33:43.682Z"},"s":"I","c":"COMPASS-ATLAS-SERVICE","id":1001000301,"ctx":"AtlasService","msg":"Fetch errored","attr":{"url":"https://auth.mongodb.com/oauth2/default/v1/userinfo","err":{"name":"NetworkError","statusCode":401,"errorCode":"401","detail":"Unauthorized"}}}
{"t":{"$date":"2024-10-31T09:33:43.690Z"},"s":"I","c":"COMPASS-ATLAS-SERVICE","id":1001000301,"ctx":"AtlasService","msg":"Fetch errored","attr":{"url":"https://auth.mongodb.com/oauth2/default/v1/introspect?client_id=0oajzdcznmE8GEyio297","err":{"name":"NetworkError","statusCode":400,"errorCode":"400","detail":"Bad Request"}}}
{"t":{"$date":"2024-10-31T09:33:44.201Z"},"s":"I","c":"COMPASS-CONNECTIONS","id":1001000004,"ctx":"Connection UI","msg":"Initiating connection attempt","attr":{"isAutoconnectAttempt":false}}
{"t":{"$date":"2024-10-31T09:33:44.204Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000014,"ctx":"Connection 0","msg":"Connecting","attr":{"url":"mongodb://localhost/?directConnection=true&appName=MongoDB+Compass","csfle":null}}
{"t":{"$date":"2024-10-31T09:33:44.243Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000049,"ctx":"compass-connect","msg":"Loaded system CA list","attr":{"caCount":307,"asyncFallbackError":null,"systemCertsError":null,"messages":["Removing certificate for 'CN=Basic Attestation User Sub CA1\nO=Apple Inc.\nST=California' because issuer 'CN=Basic Attestation User Root CA\nO=Apple Inc.\nST=California' could not be found (serial no '78d8e11bdb670c68')","Removing certificate for 'CN=com.apple.systemdefault\nO=System Identity' because issuer 'CN=com.apple.systemdefault\nO=System Identity' could not be found (serial no '0de5689b')","Removing certificate for 'CN=com.apple.kerberos.kdc\nO=System Identity' because issuer 'CN=com.apple.kerberos.kdc\nO=System Identity' could not be found (serial no '48bcd2a9')"]}}
{"t":{"$date":"2024-10-31T09:33:44.247Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000042,"ctx":"compass-connect","msg":"Initiating connection attempt","attr":{"uri":"mongodb://localhost/?directConnection=true&appName=MongoDB+Compass","driver":{"name":"nodejs","version":"6.9.0"},"devtoolsConnectVersion":"3.3.1","host":"localhost:27017"}}
{"t":{"$date":"2024-10-31T09:33:44.248Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000021,"ctx":"Connection 0","msg":"Topology description changed","attr":{"isWritable":false,"isMongos":false,"previousType":"Unknown","newType":"Single"}}
{"t":{"$date":"2024-10-31T09:33:44.248Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000019,"ctx":"Connection 0","msg":"Server opening","attr":{"address":"localhost:27017"}}
{"t":{"$date":"2024-10-31T09:33:44.262Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000022,"ctx":"Connection 0","msg":"Server heartbeat succeeded","attr":{"connectionId":"localhost:27017","duration":3}}
{"t":{"$date":"2024-10-31T09:33:44.262Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000035,"ctx":"compass-connect","msg":"Server heartbeat succeeded","attr":{"connectionId":"localhost:27017"}}
{"t":{"$date":"2024-10-31T09:33:44.263Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000018,"ctx":"Connection 0","msg":"Server description changed","attr":{"address":"localhost:27017","error":null,"previousType":"Unknown","newType":"Standalone"}}
{"t":{"$date":"2024-10-31T09:33:44.263Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000021,"ctx":"Connection 0","msg":"Topology description changed","attr":{"isWritable":true,"isMongos":false,"previousType":"Single","newType":"Single"}}
{"t":{"$date":"2024-10-31T09:33:44.263Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000037,"ctx":"compass-connect","msg":"Connection attempt finished"}
{"t":{"$date":"2024-10-31T09:33:44.267Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":1,"duration":0,"commandName":"ping"}}
{"t":{"$date":"2024-10-31T09:33:44.268Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000015,"ctx":"Connection 0","msg":"Connected","attr":{"isWritable":true,"isMongos":false}}
{"t":{"$date":"2024-10-31T09:33:44.309Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":1,"duration":9,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:44.310Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000053,"ctx":"Connection 0","msg":"Running currentOp","attr":{"result":{"inprog":[{"type":"op","host":"MacBook-Pro:27017","desc":"conn56","connectionId":56,"client":"127.0.0.1:51341","appName":"MongoDB Compass","clientMetadata":{"application":{"name":"MongoDB Compass"},"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.16.0, LE","os":{"name":"darwin","architecture":"arm64","version":"24.1.0","type":"Darwin"}},"active":true,"currentOpTime":"2024-10-31T09:33:44.308+00:00","isFromUserConnection":true,"threaded":true,"opid":99330,"lsid":{"id":{"$binary":{"base64":"i3U7W2aiT9iPGHulx8Ywdw==","subType":"04"}},"uid":{"$binary":{"base64":"47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=","subType":"00"}}},"secs_running":0,"microsecs_running":600,"op":"command","ns":"admin.$cmd.aggregate","redacted":false,"command":{"aggregate":1,"pipeline":[{"$currentOp":{"allUsers":true,"idleConnections":false,"truncateOps":false}}],"cursor":{},"lsid":{"id":{"$binary":{"base64":"i3U7W2aiT9iPGHulx8Ywdw==","subType":"04"}}},"$db":"admin"},"queryFramework":"classic","numYields":0,"queues":{"ingress":{"admissions":1,"totalTimeQueuedMicros":0},"execution":{"admissions":0,"totalTimeQueuedMicros":0}},"currentQueue":null,"locks":{},"waitingForLock":false,"lockStats":{},"waitingForFlowControl":false,"flowControlStats":{}},{"type":"op","host":"MacBook-Pro:27017","desc":"Checkpointer","active":true,"currentOpTime":"2024-10-31T09:33:44.308+00:00","isFromUserConnection":false,"opid":4154,"op":"none","ns":"","redacted":false,"command":{},"numYields":0,"queues":{"ingress":{"admissions":0,"totalTimeQueuedMicros":0},"execution":{"admissions":0,"totalTimeQueuedMicros":0}},"currentQueue":null,"locks":{},"waitingForLock":false,"lockStats":{},"waitingForFlowControl":false,"flowControlStats":{}},{"type":"op","host":"MacBook-Pro:27017","desc":"JournalFlusher","active":true,"currentOpTime":"2024-10-31T09:33:44.308+00:00","isFromUserConnection":false,"opid":3072,"op":"none","ns":"","redacted":false,"command":{},"numYields":0,"queues":{"ingress":{"admissions":0,"totalTimeQueuedMicros":0},"execution":{"admissions":0,"totalTimeQueuedMicros":0}},"currentQueue":null,"locks":{},"waitingForLock":false,"lockStats":{},"waitingForFlowControl":false,"flowControlStats":{}}]}}}
{"t":{"$date":"2024-10-31T09:33:44.311Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":1,"duration":1,"commandName":"hostInfo"}}
{"t":{"$date":"2024-10-31T09:33:44.313Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":1,"duration":1,"commandName":"buildInfo"}}
{"t":{"$date":"2024-10-31T09:33:44.314Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":2,"duration":2,"commandName":"top"}}
{"t":{"$date":"2024-10-31T09:33:44.314Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000062,"ctx":"Connection 0","msg":"Running top","attr":{"result":{"totals":{"note":"all times in microseconds","admin.$cmd.aggregate":{"total":{"time":2372,"count":5},"readLock":{"time":0,"count":0},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":2372,"count":5}},"admin.atlascli":{"total":{"time":13158,"count":8},"readLock":{"time":13158,"count":8},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":13158,"count":8}},"admin.system.version":{"total":{"time":150,"count":1},"readLock":{"time":150,"count":1},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":0,"count":0}},"config.collections":{"total":{"time":1591,"count":4},"readLock":{"time":1591,"count":4},"writeLock":{"time":0,"count":0},"queries":{"time":1591,"count":4},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":0,"count":0}},"config.system.sessions":{"total":{"time":25770,"count":104},"readLock":{"time":2882,"count":24},"writeLock":{"time":22888,"count":80},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":21730,"count":60},"remove":{"time":1158,"count":20},"commands":{"time":2882,"count":24}},"config.transactions":{"total":{"time":2154,"count":12},"readLock":{"time":2154,"count":12},"writeLock":{"time":0,"count":0},"queries":{"time":2154,"count":12},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":0,"count":0}},"local.system.replset":{"total":{"time":14,"count":1},"readLock":{"time":14,"count":1},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":0,"count":0}},"db-service-tenant-id-here.attributes":{"total":{"time":148451,"count":8},"readLock":{"time":148451,"count":8},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":148451,"count":8}},"db-service-tenant-id-here.exports":{"total":{"time":59712,"count":8},"readLock":{"time":59712,"count":8},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":59712,"count":8}},"db-service-tenant-id-here.migrations":{"total":{"time":63969,"count":8},"readLock":{"time":63969,"count":8},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":63969,"count":8}},"db-service-tenant-id-here.permissions":{"total":{"time":116365,"count":8},"readLock":{"time":116365,"count":8},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":116365,"count":8}},"db-service-tenant-id-here.roles":{"total":{"time":86805,"count":8},"readLock":{"time":86805,"count":8},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":86805,"count":8}},"db-service-tenant-id-here.segmentcreationbulks":{"total":{"time":76026,"count":8},"readLock":{"time":76026,"count":8},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":76026,"count":8}},"db-service-tenant-id-here.segments":{"total":{"time":63490,"count":8},"readLock":{"time":63490,"count":8},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":63490,"count":8}},"db-service-tenant-id-here.temporaryactions":{"total":{"time":66851,"count":8},"readLock":{"time":66851,"count":8},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":66851,"count":8}},"db-service-tenant-id-here.temporarybulks":{"total":{"time":46174,"count":8},"readLock":{"time":46174,"count":8},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":46174,"count":8}},"db-service-tenant-id-here.users":{"total":{"time":1667710,"count":596},"readLock":{"time":1667710,"count":596},"writeLock":{"time":0,"count":0},"queries":{"time":2459,"count":4},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":1665251,"count":592}},"db-service-tenant-id-here.view-segments":{"total":{"time":2417,"count":8},"readLock":{"time":2417,"count":8},"writeLock":{"time":0,"count":0},"queries":{"time":0,"count":0},"getmore":{"time":0,"count":0},"insert":{"time":0,"count":0},"update":{"time":0,"count":0},"remove":{"time":0,"count":0},"commands":{"time":2417,"count":8}}},"ok":1}}}
{"t":{"$date":"2024-10-31T09:33:44.317Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":1,"duration":5,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:44.318Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":2,"duration":2,"commandName":"connectionStatus"}}
{"t":{"$date":"2024-10-31T09:33:44.318Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":3,"duration":5,"commandName":"connectionStatus"}}
{"t":{"$date":"2024-10-31T09:33:44.318Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":1,"duration":1,"commandName":"hostInfo"}}
{"t":{"$date":"2024-10-31T09:33:44.319Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":2,"duration":1,"commandName":"buildInfo"}}
{"t":{"$date":"2024-10-31T09:33:44.319Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":3,"duration":1,"commandName":"getParameter"}}
{"t":{"$date":"2024-10-31T09:33:44.320Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000030,"ctx":"Connection 0","msg":"Driver command failed","attr":{"address":"127.0.0.1:27017","serverConnectionId":1,"duration":2,"commandName":"atlasVersion","failure":"no such command: 'atlasVersion'"}}
{"t":{"$date":"2024-10-31T09:33:44.320Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":2,"duration":2,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:44.321Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000024,"ctx":"Connection 0","msg":"Running instance","attr":{"serverVersion":"8.0.1","genuineMongoDB":{"isGenuine":true,"dbType":"mongodb"},"dataLake":{"isDataLake":false,"version":null},"featureCompatibilityVersion":"8.0"}}
{"t":{"$date":"2024-10-31T09:33:44.321Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000030,"ctx":"Connection 0","msg":"Driver command failed","attr":{"address":"127.0.0.1:27017","serverConnectionId":5,"duration":2,"commandName":"atlasVersion","failure":"no such command: 'atlasVersion'"}}
{"t":{"$date":"2024-10-31T09:33:44.321Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":4,"duration":2,"commandName":"getParameter"}}
{"t":{"$date":"2024-10-31T09:33:44.321Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000024,"ctx":"Connection 0","msg":"Running instance","attr":{"serverVersion":"8.0.1","genuineMongoDB":{"isGenuine":true,"dbType":"mongodb"},"dataLake":{"isDataLake":false,"version":null},"featureCompatibilityVersion":"8.0"}}
{"t":{"$date":"2024-10-31T09:33:44.323Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":4,"duration":0,"commandName":"listDatabases"}}
{"t":{"$date":"2024-10-31T09:33:44.323Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000033,"ctx":"Connection 0","msg":"Running listDatabases","attr":{"nameOnly":true,"databasesCount":18}}
{"t":{"$date":"2024-10-31T09:33:44.331Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":4,"duration":5,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.331Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"admin"}}
{"t":{"$date":"2024-10-31T09:33:44.331Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":5,"duration":6,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.331Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"db-service-tenant-id-here"}}
{"t":{"$date":"2024-10-31T09:33:44.332Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":2,"duration":6,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.332Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"authentication-service"}}
{"t":{"$date":"2024-10-31T09:33:44.332Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":3,"duration":6,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.332Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"config"}}
{"t":{"$date":"2024-10-31T09:33:44.332Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":1,"duration":6,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.332Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"db-service-tenant-id-here"}}
{"t":{"$date":"2024-10-31T09:33:44.343Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":5,"duration":11,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.343Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"organization-service"}}
{"t":{"$date":"2024-10-31T09:33:44.346Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":3,"duration":15,"commandName":"dbStats"}}

{"t":{"$date":"2024-10-31T09:33:44.346Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"db-service-tenant-id-here"}}
{"t":{"$date":"2024-10-31T09:33:44.346Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":2,"duration":15,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.346Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"db-service-tenant-id-here"}}
{"t":{"$date":"2024-10-31T09:33:44.347Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":1,"duration":14,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.347Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"service-integration-87898100-fa2e-4c4f-9265-ad7f53c9783e"}}
{"t":{"$date":"2024-10-31T09:33:44.347Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":7,"duration":15,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.347Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"db-service-tenant-id-here"}}
{"t":{"$date":"2024-10-31T09:33:44.347Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":4,"duration":16,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.347Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"db-service-tenant-id-here"}}
{"t":{"$date":"2024-10-31T09:33:44.348Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":5,"duration":5,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.348Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"db-service-tenant-id-here"}}
{"t":{"$date":"2024-10-31T09:33:44.348Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":3,"duration":1,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.348Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"survey-service"}}
{"t":{"$date":"2024-10-31T09:33:44.348Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":1,"duration":2,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.348Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"user-service"}}
{"t":{"$date":"2024-10-31T09:33:44.348Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":6,"duration":1,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.349Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"local"}}
{"t":{"$date":"2024-10-31T09:33:44.349Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":8,"duration":1,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.349Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"db-service-tenant-id-here"}}
{"t":{"$date":"2024-10-31T09:33:44.350Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":2,"duration":3,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.350Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"db-service-tenant-id-here"}}
{"t":{"$date":"2024-10-31T09:33:44.350Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":9,"duration":1,"commandName":"dbStats"}}
{"t":{"$date":"2024-10-31T09:33:44.350Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000057,"ctx":"Connection 0","msg":"Running databaseStats","attr":{"ns":"db-service-tenant-id-here"}}
{"t":{"$date":"2024-10-31T09:33:47.365Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":9,"duration":9,"commandName":"listCollections"}}
{"t":{"$date":"2024-10-31T09:33:47.366Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000032,"ctx":"Connection 0","msg":"Running listCollections","attr":{"db":"db-service-tenant-id-here","nameOnly":false,"collectionsCount":12}}
{"t":{"$date":"2024-10-31T09:33:47.403Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":2,"duration":9,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:47.403Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000178,"ctx":"Connection 0","msg":"Running collectionStats","attr":{"ns":"db-service-tenant-id-here.exports","result":{"ns":"db-service-tenant-id-here.exports","name":"exports","database":"db-service-tenant-id-here","is_capped":false,"document_count":12,"document_size":5284,"avg_document_size":440,"storage_size":20480,"free_storage_size":0,"index_count":1,"index_size":20480}}}
{"t":{"$date":"2024-10-31T09:33:47.406Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":8,"duration":12,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:47.406Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000178,"ctx":"Connection 0","msg":"Running collectionStats","attr":{"ns":"db-service-tenant-id-here.migrations","result":{"ns":"db-service-tenant-id-here.migrations","name":"migrations","database":"db-service-tenant-id-here","is_capped":false,"document_count":237,"document_size":27275,"avg_document_size":115,"storage_size":24576,"free_storage_size":0,"index_count":1,"index_size":20480}}}
{"t":{"$date":"2024-10-31T09:33:47.416Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":1,"duration":21,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:47.416Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000178,"ctx":"Connection 0","msg":"Running collectionStats","attr":{"ns":"db-service-tenant-id-here.roles","result":{"ns":"db-service-tenant-id-here.roles","name":"roles","database":"db-service-tenant-id-here","is_capped":false,"document_count":24,"document_size":17397,"avg_document_size":724,"storage_size":24576,"free_storage_size":0,"index_count":2,"index_size":40960}}}
{"t":{"$date":"2024-10-31T09:33:47.423Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":5,"duration":28,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:47.423Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000178,"ctx":"Connection 0","msg":"Running collectionStats","attr":{"ns":"db-service-tenant-id-here.segments","result":{"ns":"db-service-tenant-id-here.segments","name":"segments","database":"db-service-tenant-id-here","is_capped":false,"document_count":1789,"document_size":535688,"avg_document_size":299,"storage_size":151552,"free_storage_size":0,"index_count":2,"index_size":81920}}}
{"t":{"$date":"2024-10-31T09:33:47.423Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":3,"duration":29,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:47.423Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000178,"ctx":"Connection 0","msg":"Running collectionStats","attr":{"ns":"db-service-tenant-id-here.segmentcreationbulks","result":{"ns":"db-service-tenant-id-here.segmentcreationbulks","name":"segmentcreationbulks","database":"db-service-tenant-id-here","is_capped":false,"document_count":0,"document_size":0,"avg_document_size":0,"storage_size":4096,"free_storage_size":0,"index_count":2,"index_size":8192}}}
{"t":{"$date":"2024-10-31T09:33:47.424Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":6,"duration":29,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:47.424Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000178,"ctx":"Connection 0","msg":"Running collectionStats","attr":{"ns":"db-service-tenant-id-here.permissions","result":{"ns":"db-service-tenant-id-here.permissions","name":"permissions","database":"db-service-tenant-id-here","is_capped":false,"document_count":107,"document_size":19370,"avg_document_size":181,"storage_size":28672,"free_storage_size":0,"index_count":2,"index_size":45056}}}
{"t":{"$date":"2024-10-31T09:33:47.424Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":9,"duration":30,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:47.424Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000178,"ctx":"Connection 0","msg":"Running collectionStats","attr":{"ns":"db-service-tenant-id-here.attributes","result":{"ns":"db-service-tenant-id-here.attributes","name":"attributes","database":"db-service-tenant-id-here","is_capped":false,"document_count":21,"document_size":8521,"avg_document_size":405,"storage_size":20480,"free_storage_size":0,"index_count":4,"index_size":81920}}}
{"t":{"$date":"2024-10-31T09:33:47.425Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":7,"duration":30,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:47.425Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000178,"ctx":"Connection 0","msg":"Running collectionStats","attr":{"ns":"db-service-tenant-id-here.temporarybulks","result":{"ns":"db-service-tenant-id-here.temporarybulks","name":"temporarybulks","database":"db-service-tenant-id-here","is_capped":false,"document_count":0,"document_size":0,"avg_document_size":0,"storage_size":4096,"free_storage_size":0,"index_count":2,"index_size":8192}}}
{"t":{"$date":"2024-10-31T09:33:47.425Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":4,"duration":31,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:47.425Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000178,"ctx":"Connection 0","msg":"Running collectionStats","attr":{"ns":"db-service-tenant-id-here.temporaryactions","result":{"ns":"db-service-tenant-id-here.temporaryactions","name":"temporaryactions","database":"db-service-tenant-id-here","is_capped":false,"document_count":0,"document_size":0,"avg_document_size":0,"storage_size":4096,"free_storage_size":0,"index_count":2,"index_size":8192}}}
{"t":{"$date":"2024-10-31T09:33:47.425Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000030,"ctx":"Connection 0","msg":"Driver command failed","attr":{"address":"127.0.0.1:27017","serverConnectionId":11,"duration":2,"commandName":"aggregate","failure":"PlanExecutor error during aggregation :: caused by :: Namespace db-service-tenant-id-here.view-segments is a view, not a collection"}}
{"t":{"$date":"2024-10-31T09:33:47.425Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000178,"ctx":"Connection 0","msg":"Running collectionStats","attr":{"ns":"db-service-tenant-id-here.view-segments","result":{"ns":"db-service-tenant-id-here.view-segments","name":"view-segments","database":"db-service-tenant-id-here","is_capped":null,"document_count":0,"document_size":null,"avg_document_size":0,"storage_size":0,"free_storage_size":0,"index_count":0,"index_size":0}}}
{"t":{"$date":"2024-10-31T09:33:47.429Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":10,"duration":5,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:47.429Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000178,"ctx":"Connection 0","msg":"Running collectionStats","attr":{"ns":"db-service-tenant-id-here.users","result":{"ns":"db-service-tenant-id-here.users","name":"users","database":"db-service-tenant-id-here","is_capped":false,"document_count":24518,"document_size":50565108,"avg_document_size":2062,"storage_size":11059200,"free_storage_size":40960,"index_count":4,"index_size":5779456}}}
{"t":{"$date":"2024-10-31T09:33:49.119Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000030,"ctx":"Connection 0","msg":"Driver command failed","attr":{"address":"127.0.0.1:27017","serverConnectionId":10,"duration":1,"commandName":"aggregate","failure":"Using Atlas Search Database Commands and the $listSearchIndexes aggregation stage requires additional configuration. Please connect to Atlas or an AtlasCLI local deployment to enable. For more information on how to connect, see https://dochub.mongodb.org/core/atlas-cli-deploy-local-reqs."}}
{"t":{"$date":"2024-10-31T09:33:49.120Z"},"s":"E","c":"COMPASS-DATA-SERVICE","id":1001000058,"ctx":"Connection 0","msg":"Failed to perform data service operation","attr":{"op":"getSearchIndexes","message":{"errorResponse":{"ok":0,"errmsg":"Using Atlas Search Database Commands and the $listSearchIndexes aggregation stage requires additional configuration. Please connect to Atlas or an AtlasCLI local deployment to enable. For more information on how to connect, see https://dochub.mongodb.org/core/atlas-cli-deploy-local-reqs.","code":31082,"codeName":"SearchNotEnabled"},"ok":0,"code":31082,"codeName":"SearchNotEnabled"},"ns":"db-service-tenant-id-here.users"}}
{"t":{"$date":"2024-10-31T09:33:49.120Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000237,"ctx":"Connection 0","msg":"Running isListSearchIndexesSupported","attr":{"ns":"db-service-tenant-id-here.users"}}
{"t":{"$date":"2024-10-31T09:33:49.183Z"},"s":"I","c":"COMPASS-CRUD-UI","id":1001000073,"ctx":"Documents","msg":"Refreshing documents","attr":{"ns":"db-service-tenant-id-here.users","withFilter":false,"findOptions":{"sort":null,"projection":null,"skip":0,"limit":25,"collation":null,"maxTimeMS":60000,"promoteValues":false,"bsonRegExp":true},"countOptions":{"skip":0,"maxTimeMS":5000,"signal":{},"hint":"_id_"}}}
{"t":{"$date":"2024-10-31T09:33:49.213Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":10,"duration":10,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:49.213Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000181,"ctx":"Connection 0","msg":"Running aggregate","attr":{"ns":"db-service-tenant-id-here.users","stages":["$limit"],"maxTimeMS":60000}}
{"t":{"$date":"2024-10-31T09:33:49.218Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":11,"duration":16,"commandName":"listIndexes"}}
{"t":{"$date":"2024-10-31T09:33:49.219Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":4,"duration":16,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:49.219Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000181,"ctx":"Connection 0","msg":"Running aggregate","attr":{"ns":"db-service-tenant-id-here.users","stages":["$indexStats","$project"],"maxTimeMS":null}}
{"t":{"$date":"2024-10-31T09:33:49.219Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":9,"duration":17,"commandName":"listCollections"}}
{"t":{"$date":"2024-10-31T09:33:49.219Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000179,"ctx":"Connection 0","msg":"Running collectionInfo","attr":{"ns":"db-service-tenant-id-here"}}
{"t":{"$date":"2024-10-31T09:33:49.263Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":3,"duration":60,"commandName":"find"}}
{"t":{"$date":"2024-10-31T09:33:49.263Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000060,"ctx":"Connection 0","msg":"Running find","attr":{"ns":"config.collections","maxTimeMS":60000}}
{"t":{"$date":"2024-10-31T09:33:49.264Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":5,"duration":62,"commandName":"find"}}
{"t":{"$date":"2024-10-31T09:33:49.265Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000060,"ctx":"Connection 0","msg":"Running find","attr":{"ns":"db-service-tenant-id-here.users","maxTimeMS":60000}}
{"t":{"$date":"2024-10-31T09:33:49.314Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":7,"duration":111,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:49.314Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000047,"ctx":"Connection 0","msg":"Running indexes","attr":{"ns":"db-service-tenant-id-here.users"}}
{"t":{"$date":"2024-10-31T09:33:49.314Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":6,"duration":112,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:33:49.315Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000181,"ctx":"Connection 0","msg":"Running aggregate","attr":{"ns":"db-service-tenant-id-here.users","stages":["$match","$count"],"maxTimeMS":5000}}
{"t":{"$date":"2024-10-31T09:34:12.046Z"},"s":"I","c":"COMPASS-AUTO-UPDATES","id":1001000135,"ctx":"AutoUpdateManager","msg":"Checking for updates ..."}
{"t":{"$date":"2024-10-31T09:34:12.814Z"},"s":"I","c":"COMPASS-AUTO-UPDATES","id":1001000126,"ctx":"AutoUpdateManager","msg":"Update not available"}
{"t":{"$date":"2024-10-31T09:34:29.175Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":6,"duration":1,"commandName":"listIndexes"}}
{"t":{"$date":"2024-10-31T09:34:29.176Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":7,"duration":2,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:34:29.176Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000181,"ctx":"Connection 0","msg":"Running aggregate","attr":{"ns":"db-service-tenant-id-here.users","stages":["$indexStats","$project"],"maxTimeMS":null}}
{"t":{"$date":"2024-10-31T09:34:29.182Z"},"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"127.0.0.1:27017","serverConnectionId":5,"duration":7,"commandName":"aggregate"}}
{"t":{"$date":"2024-10-31T09:34:29.182Z"},"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000047,"ctx":"Connection 0","msg":"Running indexes","attr":{"ns":"db-service-tenant-id-here.users"}}

@Gareth_Lowrie this is strange. From the Compass logs I can see that Compass is indeed unable to list Atlas Search indexes, which is the criteria to determine whether the feature gets enabled or not.

However, I can’t reproduce the behavior on my side. If I do

docker run -p 27017:27017 mongodb/mongodb-atlas-local:8.0.3

Which should give me roughly the same environment you are setting up in Compose, I can connect with Compass and manage my search indexes.

I can see you are an Atlas customer. Do you mind if I drop you an email?

Hello @Massimiliano_Marcon,

I’m running mongodb-atlas-local using docker compose with multiple instance to create a replica set. I’m having the same problem as @Gareth_Lowrie and couldn’t solve it.

Error: MongoServerError: Using Atlas Search Database Commands and the $listSearchIndexes aggregation stage requires additional configuration. Please connect to Atlas or an AtlasCLI local deployment to enable.

This is my docker compose file:

  mongodb:
    image: mongodb/mongodb-atlas-local:8.0.3
    restart: unless-stopped
    ports:
      - 27017:27017
    extra_hosts:
      - "host.docker.internal:host-gateway"
    volumes:
      - mongodb_config:/data/configdb
      - mongodb_data:/data/db
    command: ["/usr/bin/mongod", "--replSet", "rs0", "--bind_ip_all", "--port", "27017", "--keyFile", "/data/configdb/mongo-keyfile"]
    healthcheck:
      test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'host.docker.internal:27017',priority:1},{_id:1,host:'host.docker.internal:27018',priority:0.5},{_id:2,host:'host.docker.internal:27019',priority:0.5}]}) }" | mongosh --port 27017 --quiet
      interval: 5s
      timeout: 30s
      start_period: 0s
      start_interval: 1s
      retries: 30

  mongodb_second:
    image: mongodb/mongodb-atlas-local:8.0.3
    command: ["/usr/bin/mongod", "--replSet", "rs0", "--bind_ip_all", "--port", "27018", "--keyFile", "/data/configdb/mongo-keyfile"]
    ports:
      - 27018:27018
    extra_hosts:
      - "host.docker.internal:host-gateway"
    volumes:
      - "mongodb_second_data:/data/db"
      - "mongodb_second_config:/data/configdb"

  mongodb_third:
    image: mongodb/mongodb-atlas-local:8.0.3
    command: ["/usr/bin/mongod", "--replSet", "rs0", "--bind_ip_all", "--port", "27019", "--keyFile", "/data/configdb/mongo-keyfile"]
    ports:
      - 27019:27019
    extra_hosts:
      - "host.docker.internal:host-gateway"
    volumes:
      - "mongodb_third_data:/data/db"
      - "mongodb_third_config:/data/configdb"

PS: When I run only one mongodb service without --replSet (as a single instance/node) it works perfectly fine and can create and list searchIndexes.

Thanks in advance

@Abdellatif_Edlby you don’t need all that setup. When you use the mongodb/mongodb-atlas-local:8.0.3 image you already have a replica set without requiring any extra configuration. In fact, by configuring your own command you are preventing the container to start up as it’s supposed to start up, with all the services in place, including Atlas Search.

The image also implements the proper healthcheck, so the container goes into a healthy status once mongod and mongot (Atlas Search) are up and running properly.

What is in the documentation is all you need.

Thank you @Massimiliano_Marcon for your reply, I changed the docker compose file now its like this:

  mongodb_primary:
    image: mongodb/mongodb-atlas-local:8.0.3
    container_name: 'mongodb_primary'
    environment:
      - MONGODB_INITDB_ROOT_USERNAME=user
      - MONGODB_INITDB_ROOT_PASSWORD=pass
    restart: unless-stopped
    ports:
      - 27017:27017
    volumes:
      - mongodb_config:/data/configdb
      - mongodb_data:/data/db

  mongodb_second:
    container_name: mongodb_secondary
    image: mongodb/mongodb-atlas-local:8.0.3
    environment:
      - MONGODB_INITDB_ROOT_USERNAME=user
      - MONGODB_INITDB_ROOT_PASSWORD=pass
    depends_on:
      - mongodb_primary
    volumes:
      - "mongodb_second_data:/data/db"
      - "mongodb_second_config:/data/configdb"

  mongodb_arbiter:
    container_name: mongodb_arbiter
    image: mongodb/mongodb-atlas-local:8.0.3
    environment:
      - MONGODB_INITDB_ROOT_USERNAME=user
      - MONGODB_INITDB_ROOT_PASSWORD=pass
    depends_on:
      - mongodb_primary
    volumes:
      - "mongodb_third_data:/data/db"
      - "mongodb_third_config:/data/configdb"

The reason I had the healthcheck it to make sure my first mongodb-atlas-local service to run as primary and automatically add the others to the replica set.

Now with this setup I’m back to the old error where if I start with docker compose up it will run perfectly BUT when I do docker compose down and then start it again all of the services doesn’t start correctly I think.

Logs with error: mongodb_arbiter | {"t":{"$date":"2024-11-12T08:58:59.160+00:00"},"s":"I", "c":"-", "id":4939300, "ctx":"monitoring-keys-for-HMAC","msg":"Failed to refresh key cache","attr":{"error":"ReadConcernMajorityNotAvailableYet: Read concern majority reads are currently not possible.","nextWakeupMillis":800}} mongodb_secondary | {"t":{"$date":"2024-11-12T08:58:59.165+00:00"},"s":"I", "c":"-", "id":4939300, "ctx":"monitoring-keys-for-HMAC","msg":"Failed to refresh key cache","attr":{"error":"ReadConcernMajorityNotAvailableYet: Read concern majority reads are currently not possible.","nextWakeupMillis":800}} mongodb_primary | {"t":{"$date":"2024-11-12T08:58:59.445+00:00"},"s":"I", "c":"-", "id":4939300, "ctx":"monitoring-keys-for-HMAC","msg":"Failed to refresh key cache","attr":{"error":"ReadConcernMajorityNotAvailableYet: Read concern majority reads are currently not possible.","nextWakeupMillis":1000}}

And the only way to start it again is to delete all the docker volumes and start it again.
Also because each service start its own replica set and each service has its own keyfile generated when I try to use rs.add() it does add the service to the primary replica but can’t connect to it because of the keyfile I think…

AuthenticationFailed: SCRAM authentication failed, storedKey mismatch

Thank you for your time

mongodb_primary is already a self-container 1 node replica set and you don’t need anything else. So you don’t need mongodb_second and mongodb_arbiter, nor do you need to manually configure the replica set with rs.add().

Can you try removing the volume mongodb_config:/data/configdb and see if the error disappears?

When I remove mongodb_config:/data/configdb I get this error Unable to acquire security key[s]

When you say self-container 1 node replica set how can I create and add new members to this replica set, isn’t its another service like mongodb_second ?

Sorry, I meant “self-contained” but mistyped. Why do you need a replica set with multiple members?

For example by default when you want to start a replica set and add members initially we use this rs.initiate({ _id: "rs0", members: [ { _id: 0, host: "mongodb_primary:27017" }, { _id: 1, host: "mongodb_secondary:27017" }, { _id: 2, host: "mongodb_arbiter:27017" } ] });

But in this case mongodb_primary already has a running replicaSet so I need to use rs.add() to add more hosts as secondaries to the replicaSet which are mongodb_secondary and mongodb_arbiter and each one needs to be in a docker service right ?

That’s how I thought it works, but I’m having a problem with their keyfile because each one of these services generate it’s keyfile (so not the same one) and can’t communicate.

In Other scenario where I run only ONE service mongodb_primary first run works perfectly fine, then if I do docker compose down and start again it says "PrimarySteppedDown: No primary exists currently" and ReadConcernMajorityNotAvailableYet: Read concern majority reads are currently not possible

@Abdellatif_Edlby thank you again for hopping on a call this morning. I reviewed the issue internally and I think I have a solution. Can you check if everything works as expected if you do:

services:
    mongodb_primary:
      image: mongodb/mongodb-atlas-local:8.0.3
      environment:
        - MONGODB_INITDB_ROOT_USERNAME=user
        - MONGODB_INITDB_ROOT_PASSWORD=pass
      restart: unless-stopped
      ports:
        - 27017:27017
      volumes:
        - mongodb_data:/data

volumes:
  mongodb_data:

Just tried the solution you suggested it did work but the data is not saved, so if I do docker compose up add some documents then docker compose down after I start it again there is no documents anymore.

So I don’t think it’s valid, also tried with this setup:

  mongodb_primary:
    image: mongodb/mongodb-atlas-local:8.0.3
    container_name: 'mongodb_primary'
    environment:
      - MONGODB_INITDB_ROOT_USERNAME=user
      - MONGODB_INITDB_ROOT_PASSWORD=pass
    restart: unless-stopped
    ports:
      - 27017:27017
    volumes:
      - mongodb_global:/data
      - mongodb_data:/data/db
      - mongodb_config:/data/configdb

Tried it with and without the /data/configdb and did not work as expected :frowning:

UPDATE: I think I found what’s wrong with it, when you use this configuration:

  mongodb_primary:
    image: mongodb/mongodb-atlas-local:8.0.3
    container_name: 'mongodb_primary'
    environment:
      - MONGODB_INITDB_ROOT_USERNAME=user
      - MONGODB_INITDB_ROOT_PASSWORD=pass
    restart: unless-stopped
    ports:
      - 27017:27017
    volumes:
      - mongodb_data:/data/db
      - mongodb_config:/data/configdb

The problem with it as I said in the call we had is the first run works, then after docker compose down and start again it will not start (error about its not primary or something like this)

When I’m checking MongoDB Compass I could connect to it but can’t do anything, so I check the config with rs.config() and if its master with rs.isMaster()

{
  topologyVersion: {
    processId: ObjectId('6733765ddb5d3795402f14b3'),
    counter: Long('6')
  },
  hosts: [ '5c1529bb8355:27017' ],
  setName: '5c1529bb8355',
  setVersion: 1,
  ismaster: true,
  secondary: false,
  primary: '5c1529bb8355:27017',
  me: '5c1529bb8355:27017',
  electionId: ObjectId('7fffffff0000000000000002'),
  lastWrite: {
    opTime: { ts: Timestamp({ t: 1731425885, i: 7 }), t: Long('2') },
    lastWriteDate: 2024-11-12T15:38:05.000Z,
    majorityOpTime: { ts: Timestamp({ t: 1731425885, i: 7 }), t: Long('2') },
    majorityWriteDate: 2024-11-12T15:38:05.000Z
  },
  maxBsonObjectSize: 16777216,
  maxMessageSizeBytes: 48000000,
  maxWriteBatchSize: 100000,
  localTime: 2024-11-12T15:38:05.932Z,
  logicalSessionTimeoutMinutes: 30,
  connectionId: 10,
  minWireVersion: 0,
  maxWireVersion: 25,
  readOnly: false,
  ok: 1,
  isWritablePrimary: true
}

If you try to shut it down then start it again you get this when you do rs.isMaster()

{
  topologyVersion: {
    processId: ObjectId('673376efb07df71989b66545'),
    counter: Long('0')
  },
  ismaster: false,
  secondary: false,
  info: 'Does not have a valid replica set config',
  isreplicaset: true,
  maxBsonObjectSize: 16777216,
  maxMessageSizeBytes: 48000000,
  maxWriteBatchSize: 100000,
  localTime: 2024-11-12T15:40:37.327Z,
  logicalSessionTimeoutMinutes: 30,
  connectionId: 5,
  minWireVersion: 0,
  maxWireVersion: 25,
  readOnly: false,
  ok: 1,
  isWritablePrimary: false
}

Docker Error:

mongodb_primary  | Error: error checking mongod: error pinging: server selection error: server selection timeout, current topology: { Type: ReplicaSetNoPrimary, Servers: [] }
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.647+00:00"},"s":"I",  "c":"CONTROL",  "id":23377,   "ctx":"SignalHandler","msg":"Received signal","attr":{"signal":2,"error":"Interrupt"}}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.647+00:00"},"s":"I",  "c":"CONTROL",  "id":23378,   "ctx":"SignalHandler","msg":"Signal was sent by kill(2)","attr":{"pid":1,"uid":998}}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.647+00:00"},"s":"I",  "c":"CONTROL",  "id":23381,   "ctx":"SignalHandler","msg":"will terminate after current cmd ends"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.647+00:00"},"s":"I",  "c":"REPL",     "id":4784900, "ctx":"SignalHandler","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":15000}}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.647+00:00"},"s":"I",  "c":"REPL",     "id":4794602, "ctx":"SignalHandler","msg":"Attempting to enter quiesce mode"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.647+00:00"},"s":"I",  "c":"STORAGE",  "id":7333402, "ctx":"SignalHandler","msg":"Shutting down the DiskSpaceMonitor"}
mongodb_primary  | Usage:
mongodb_primary  |   runner server [flags]
mongodb_primary  |
mongodb_primary  | Flags:
mongodb_primary  |   -h, --help   help for server
mongodb_primary  |
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.648+00:00"},"s":"I",  "c":"-",        "id":6371601, "ctx":"SignalHandler","msg":"Shutting down the FLE Crud thread pool"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.648+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"FLECrudNetwork","msg":"Killing all outstanding egress activity."}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.648+00:00"},"s":"I",  "c":"COMMAND",  "id":4784901, "ctx":"SignalHandler","msg":"Shutting down the MirrorMaestro"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.648+00:00"},"s":"I",  "c":"REPL",     "id":40441,   "ctx":"SignalHandler","msg":"Stopping TopologyVersionObserver"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.648+00:00"},"s":"I",  "c":"REPL",     "id":40447,   "ctx":"TopologyVersionObserver","msg":"Stopped TopologyVersionObserver"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.648+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"MirrorMaestro","msg":"Killing all outstanding egress activity."}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.648+00:00"},"s":"I",  "c":"SHARDING", "id":4784902, "ctx":"SignalHandler","msg":"Shutting down the WaitForMajorityService"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.649+00:00"},"s":"I",  "c":"CONTROL",  "id":4784903, "ctx":"SignalHandler","msg":"Shutting down the LogicalSessionCache"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.649+00:00"},"s":"I",  "c":"-",        "id":7350601, "ctx":"SignalHandler","msg":"Shutting down the QueryAnalysisSampler"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.649+00:00"},"s":"I",  "c":"NETWORK",  "id":8314100, "ctx":"SignalHandler","msg":"Shutdown: Closing listener sockets"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.649+00:00"},"s":"I",  "c":"NETWORK",  "id":23017,   "ctx":"listener","msg":"removing socket file","attr":{"path":"/tmp/mongodb-27017.sock"}}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.650+00:00"},"s":"I",  "c":"NETWORK",  "id":4784905, "ctx":"SignalHandler","msg":"Shutting down the global connection pool"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.650+00:00"},"s":"I",  "c":"CONTROL",  "id":4784906, "ctx":"SignalHandler","msg":"Shutting down the FlowControlTicketholder"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.650+00:00"},"s":"I",  "c":"-",        "id":20520,   "ctx":"SignalHandler","msg":"Stopping further Flow Control ticket acquisitions."}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.650+00:00"},"s":"I",  "c":"REPL",     "id":4784907, "ctx":"SignalHandler","msg":"Shutting down the replica set node executor"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.650+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"ReplNodeDbWorkerNetwork","msg":"Killing all outstanding egress activity."}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.650+00:00"},"s":"I",  "c":"CONTROL",  "id":4784908, "ctx":"SignalHandler","msg":"Shutting down the PeriodicThreadToAbortExpiredTransactions"}
mongodb_primary  | panic: error checking mongod: error pinging: server selection error: server selection timeout, current topology: { Type: ReplicaSetNoPrimary, Servers: [] }
mongodb_primary  |
mongodb_primary  | goroutine 1 [running]:
mongodb_primary  | main.main()
mongodb_primary  |      /app/cmd/runner/main.go:65 +0x16c
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.650+00:00"},"s":"I",  "c":"REPL",     "id":4784909, "ctx":"SignalHandler","msg":"Shutting down the ReplicationCoordinator"}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.650+00:00"},"s":"I",  "c":"REPL",     "id":5074000, "ctx":"SignalHandler","msg":"Shutting down the replica set aware services."}
mongodb_primary  | {"t":{"$date":"2024-11-12T15:19:26.650+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"QueryAnalysisWriterNetwork","msg":"Killing all outstanding egress activity."}
mongodb_primary exited with code 0

if you use rs.reconfig() and change the first member host to the docker service name it will work for a brief time then stop on its own.

Can you try this configuration that we just updated in our docs? Note the the hostname addition in the compose file.

Thanks for the reply @Massimiliano_Marcon from what I see it worked perfectly now!
Will try to add some databases, documents and will see what happens if I turn it off and on using docker.

Why was the error happening was it only the hostname ?

Thanks again

Yes, the hostname was the only problem. When mongod is started and the replica set is configured, the node is is assigned the Docker’s hostname as the name of host that is added to the replica set, so it’s easier to connect to it from the other services in Compose. If you don’t specify hostname, Docker will assign a random name every time you restart the container but that may conflict with the data that is persisted in the volume.

1 Like