Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13221

Expected boolean switch but found string

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Boolean options for the MongoDB configuration file list default values as True or False but mongod only parses true and false. I prefer that the manual get updated to change True/False to true/false to avoid confusion.

      SeeĀ https://docs.mongodb.com/manual/reference/configuration-options/#systemlog-options

      Steps to Reproduce

      While taking m103 from MongoDB University start mongod with...

      storage:
      dbPath: "/var/mongodb/db"
      systemLog:
      path: "/var/mongodb/db/mongod.log"
      destination: "file"
      logAppend: True
      net:
      bindIp : "127.0.0.1,192.168.103.100"
      port : 27000
      processManagement:
      fork : true
      security:
      authorization : enabled
      operationProfiling:
      mode : slowOp
      slowOpThresholdMs : 50
      

      And get this error message:

      $ mongod --config m2.conf
      Expected boolean switch but found string: False for option: systemLog.logAppend
      

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            mdcallag@gmail.com Mark Callaghan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              4 years, 12 weeks, 4 days ago