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

mongod server stops accepting new connections while active ones still work

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 4.4.14, 5.0.8
    • None
    • None
    • ALL

    Description

      We have a single mongod container running using the official docker image (we've tried both mongo:4.4.14 and mongo:5.0.8) that at some point stops accepting new connections and any connection requests just time out.

      We start the container via docker-compose with:

       

        mongo:
          image: mongo:5.0.8
          container_name: mongo_database
          command: mongod
          ports:
            - 27017:27017
          volumes:
            - ./dbs/mongo:/data/db
          logging:
            driver: "none" 

      This issue occurs every 12-24 hours, but so far we've noticed that if we comment out the last two lines above

       

       

      #   logging:       
      #     driver: "none" 

      then it becomes much more rare. I've attached the stack trace collected after the server has stopped accepting any new connections. Configuring mongod to write its log to a file has the same effect of reducing the rate of failure considerably.

      I've attached the stack trace after the server has stopped accepting new connections.

      gdb_2022-05-31_09-41-54.txt

       

       

      Attachments

        Activity

          People

            chris.kelly@mongodb.com Chris Kelly
            svet@efemarai.com Svet Penkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: