Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-94078

Enterprise Docker Image does not work with Authentication and InMemory storage engine

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Build
    • ALL
    • Hide

      execute the following docker command:

      docker run -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=test mongodb/mongodb-enterprise-server:7.0.2-ubuntu2204 --storageEngine=inMemory

      this will result in the following error message

      Cannot start server. Detected data files in /data/db created by the 'wiredTiger' storage engine, but the specified storage engine was 'inMemory'
      Show
      execute the following docker command: docker run -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=test mongodb/mongodb-enterprise-server:7.0.2-ubuntu2204 --storageEngine=inMemory this will result in the following error message Cannot start server. Detected data files in /data/db created by the 'wiredTiger' storage engine, but the specified storage engine was 'inMemory'

      The provided Docker Image for the enterprise edition of mongodb does not work when authentication is enabled and the InMemory storage engine is used. 

      If authentication is used, then the entry point script starts a mongodb without authentication first and adds the specified admin user. Then the server is restarted with authentication enabled. The Problem is, that during the initial run of the serivce, the storage engine is not specified and therefore wiredTiger is used. This leads to an error message upon restart.

            Assignee:
            zac.codiamat@mongodb.com Zac Codiamat
            Reporter:
            meinrad.jean-richard@post.ch Meinrad Jean-Richard
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: