Hi there,
I’m running Percona via the percona-server-mongodb:6.0.4 container
When I give it a config file option via --config /etc/mongod.conf it throws the above error.
I’m running this on a STIG compliant security hardened Red Hat Enterprise Linux 8.7 in a docker container. I’ve been working on this and perhaps someone who is not as new to mongo/percona as I am would be able to shed some light on this. I’ve pasted the full messages I see in the docker logs.
I’ve also pasted my config file as it currently stands.
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongo
journal:
enabled: true
# engine: wiredTiger
# engine: inMemory
# Storage engine various options
# More info for wiredTiger: https://docs.mongodb.com/v4.4/reference/configuration-options/#storage-wiredtiger-options
# wiredTiger:
# engineConfig:
# cacheSizeGB: 1
# checkpointSizeMB: 1000
# statisticsLogDelaySecs: 0
# journalCompressor: snappy
# directoryForIndexes: false
# collectionConfig:
# blockCompressor: snappy
# indexConfig:
# prefixCompression: true
# More info for inMemory: https://www.percona.com/doc/percona-server-for-mongodb/4.4/inmemory.html#configuring-percona-memory-engine
# inMemory:
# engineConfig:
# inMemorySizeGB: 1
# statisticsLogDelaySecs: 0
# Two options below can be used for wiredTiger and inMemory storage engines
setParameter:
auditAuthorizationSuccess: true
# wiredTigerConcurrentReadTransactions: 128
# wiredTigerConcurrentWriteTransactions: 128
# where to write logging data.
# systemLog:
# destination: file
# logAppend: true
# path: /var/log/mongo/mongod.log
processManagement:
# fork: true
pidFilePath: /var/run/mongod.pid
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
# tls:
# mode: requireTLS
# certificateKeyFile: /certs/settings_db/cert.pem
# CAFile: /certs/settings_db/key.pem
# allowInvalidCertificates: false
# allowConnectionsWithoutCertificates: false
# FIPSMode: true
security:
javascriptEnabled: false
authorization: enabled
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options:
# auditLog:
# destination: file
# format: BSON
# path: /var/log/mongo/audit/auditLog.bson
# filter: '{ atype: { $in: [ "createCollection", "dropCollection" ] } }' # If filters are desired
#snmp:
ReferenceError: cat is not defined
ReferenceError: cat is not defined
+ exec mongod --config /etc/mongod.conf --auth
{"t":{"$date":"2023-03-16T22:25:01.002Z"},"s":"I", "c":"CONTROL", "id":5760901, "ctx":"-","msg":"Applied --setParameter options","attr":{"serverParameters":{"auditAuthorizationSuccess":{"default":false,"value":true}}}}
Thanks!
Matt