Error map
permissions on /etc/mongo.key are too open error opening file: /etc/mongo.key: permissions on /etc/mongo.key are too open
MongoDB · layer 5, Data
Centre: this error. First ring: errors it is linked with (9). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (9)
mongod: Process exited with status 14 — Exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only directory
`mongod` couldn't start because the data directory or log/socket file isn't writable or already locked.
MongoDB: replSetInitiate quorum check failed: Could not connect to mongo2:27017 / No host described in new configuration 1 for replica set rs0 maps to this node
`rs.initiate()`/`rs.add()` couldn't reach a listed member or the config doesn't include the current node's hostname.
exception in initAndListen: NonExistentPath: Data directory /data/db not found
mongod can't use the data path.
DBPathInUse: Unable to lock the lock file: /data/db/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /data/db directory
Another mongod holds the data directory.
Received disconnect from host port 22:2: Too many authentication failures
The ssh-agent offered too many keys before the right one.
MongoServerError: The $changeStream stage is only supported on replica sets
Change streams need a replica set or sharded cluster.
Error parsing YAML config file: yaml-cpp: error at line 12, column 5: illegal map value
mongod.conf has invalid YAML.
not primary and secondaryOk=false / No primary available after election timeout
A majority of voting members isn't available.
MongoServerError: Authentication failed. code: 18, codeName: 'AuthenticationFailed'
The credentials or auth database were wrong.
Two steps away (27)
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
The docker CLI can’t talk to the Docker engine — it isn’t running, or your user can’t access the socket.
user is not in the sudoers file. This incident will be reported.
Your account isn’t allowed to use sudo.
Error: listen EACCES: permission denied 0.0.0.0:80
Node isn’t allowed to bind that port — ports below 1024 need root on Linux/macOS, and some Windows ports are reserved.
ECS task stopped: CannotPullContainerError: pull image manifest has been retried ... / ref pull has been retried
The ECS task couldn’t pull its image — no network route to the registry, missing ECR permissions, or a wrong image tag.
Error response from daemon: network X not found
The container or Compose project refers to a Docker network that doesn’t exist (any more).
Error response from daemon: Pool overlaps with other one on this address space
Docker tried to create a network whose subnet clashes with an existing Docker network (or a VPN/host route).
Error: EPERM: operation not permitted, rename / unlink
The OS refused a file operation — on Windows usually because another process (antivirus, editor, indexer) has the file locked.
Error: spawn EACCES
Node tried to execute a file that isn’t executable (missing +x permission) or isn’t a program.
[nodemon] app crashed - waiting for file changes before starting...
Your app threw an error on startup; nodemon is waiting for a file change to retry.
Docker container exits immediately (Exited (0) / Exited (1) right after start)
The container started and its main process finished at once, so the container stopped — Docker containers only live as long as PI…
Docker container keeps restarting (Restarting (1) x seconds ago)
The container crashes on start and its restart policy (always/unless-stopped/on-failure) starts it again in a loop.
Pod status Init:CrashLoopBackOff / Init:Error
An init container keeps failing, so the pod’s main containers never start.
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! (ssh host key changed)
The server’s SSH host key differs from the one saved in ~/.ssh/known_hosts — usually because the server was rebuilt or the IP was…
Received disconnect: Too many authentication failures
Your SSH agent offered too many keys before the right one, and the server cut the connection (MaxAuthTries, default 6).
perl: warning: Setting locale failed / bash: warning: setlocale: LC_ALL: cannot change locale
Your session asks for a locale (often forwarded by SSH from your Mac/PC) that isn’t generated on the server.
MongoServerError: Transaction numbers are only allowed on a replica set member or mongos
You started a transaction (or used retryWrites) on a standalone MongoDB server, which doesn't support them.
MongoServerError: not primary and secondaryOk=false / NotWritablePrimary: not master
A write (or read without secondary preference) hit a secondary — the primary changed or you connected directly to a secondary.
MongoServerSelectionError: Server selection timed out after 30000 ms — topology type ReplicaSetNoPrimary
The driver sees the replica set members but none is a primary (election failing or members unreachable).
docker compose: services.x Additional property y is not allowed / yaml: line N: mapping values are not allowed
The compose file is invalid YAML or uses a key Compose doesn’t recognise at that level (usually an indentation mistake).
service "web" depends on undefined service "db": invalid compose project
A service lists depends_on (or links/networks) for a service name that isn’t defined in the Compose file(s) being used.
WARN: the attribute `version` is obsolete, it will be ignored
A harmless Compose v2 warning: the top-level version: line in docker-compose.yml is no longer used.
MongoServerSelectionError: Could not find host matching read preference { mode: "secondary" } for set rs0
The requested read preference (secondary, nearest with tags) matches no available member.
MongoDB: We are too stale to use X as a sync source / replSet too stale to catch up — member in RECOVERING state
A secondary fell so far behind that the primary's oplog no longer covers the gap, so it can't resync by replaying.
MongoServerError: already initialized (rs.initiate on a configured replica set)
`rs.initiate()` was called on a node that already has a replica set configuration.
MongoDB: MongoServerError: bad auth : Authentication failed (code 8000 / 18)
MongoDB (often Atlas) rejected the username/password in the connection string.
MongoDB: connection refused / timed out from a remote host — mongod bindIp defaults to 127.0.0.1
MongoDB only listens on localhost by default, so remote clients can't connect.
MongoServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted
Atlas rejects connections from IP addresses that aren't in the project's Network Access list.