# Error -\> ReferenceError: cat is not defined

**URL:** <https://forums.percona.com/t/error-referenceerror-cat-is-not-defined/20661>\
**Category:** Percona Server for MongoDB\
**Created:** [March 16, 2023, 10:33pm UTC](https://forums.percona.com/t/error-referenceerror-cat-is-not-defined/20661 "2023-03-16T22:33:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matts](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@matts](https://forums.percona.com/u/matts)\
**Post date:** [March 16, 2023, 10:33pm UTC](https://forums.percona.com/t/error-referenceerror-cat-is-not-defined/20661/1 "2023-03-16T22:33:01Z")

</div>

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.

```auto
# 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:

```

```auto
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

---

<div class="post-metadata">

**Author:** ![matts](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@matts](https://forums.percona.com/u/matts)\
**Post date:** [March 16, 2023, 10:49pm UTC](https://forums.percona.com/t/error-referenceerror-cat-is-not-defined/20661/2 "2023-03-16T22:49:31Z")

</div>

Well, rubber ducking for the win. I commented out further in my config file until I found the offending line. It was the fact that there was no /var/lib/mongo directory. Once I mounted a volume to handle that it worked. The ReferenceError message was just masking the real problem.  
Thanks!  
Matt
