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

Open the full error page →

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.

permissions on /etc/mongo.key are too open — error opening file: /etc/mongo.key: permissions on /etc/mongo.key are too open (MongoDB)permissions…mongod exited with code 14 (data dir permission / lock) — mongod: Process exited with status 14 — Exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only directory (MongoDB)mongod exited with …rs.initiate failed: member not reachable / no host described in new configuration — 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 (MongoDB)rs.initiate failed:…Data directory not found / Permission denied — exception in initAndListen: NonExistentPath: Data directory /data/db not found (MongoDB)Data directory not …Unable to lock file: /data/db/mongod.lock Resource temporarily unavailable — 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 (MongoDB)Unable to lock file…Received disconnect: Too many authentication failures — Received disconnect from host port 22:2: Too many authentication failures (Linux)Received disconnect…Change streams are only supported on replica sets — MongoServerError: The $changeStream stage is only supported on replica sets (MongoDB)Change streams are …Error parsing YAML config file: yaml-cpp: error at line N — Error parsing YAML config file: yaml-cpp: error at line 12, column 5: illegal map value (MongoDB)Error parsing YAML …Replica set lost quorum: no primary elected — not primary and secondaryOk=false / No primary available after election timeout (MongoDB)Replica set lost qu…MongoServerError: Authentication failed (SCRAM-SHA-256 / authSource) — MongoServerError: Authentication failed. code: 18, codeName: 'AuthenticationFailed' (MongoDB)MongoServerError: A…daemon — Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (Docker)daemonsudoers — user is not in the sudoers file. This incident will be reported. (Linux)sudoerslisten EACCES — Error: listen EACCES: permission denied 0.0.0.0:80 (Node.js)listen EACCESCannotPullContainerError — ECS task stopped: CannotPullContainerError: pull image manifest has been retried ... / ref pull has been retried (AWS)CannotPullContainer…network not found — Error response from daemon: network X not found (Docker)network not foundPool overlaps — Error response from daemon: Pool overlaps with other one on this address space (Docker)Pool overlapsEPERM — Error: EPERM: operation not permitted, rename / unlink (Node.js)EPERMspawn EACCES — Error: spawn EACCES (Node.js)spawn EACCESnodemon crashed — [nodemon] app crashed - waiting for file changes before starting... (Node.js)nodemon crashedExited (0) — Docker container exits immediately (Exited (0) / Exited (1) right after start) (Docker)Exited (0)Restarting (1) — Docker container keeps restarting (Restarting (1) x seconds ago) (Docker)Restarting (1)Init:CrashLoopBackOff — Pod status Init:CrashLoopBackOff / Init:Error (Kubernetes)Init:CrashLoopBackO…REMOTE HOST IDENTIFICATION HAS CHANGED — WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! (ssh host key changed) (Linux)REMOTE HOST IDENTIF…Too many authentication failures — Received disconnect: Too many authentication failures (Linux)Too many authentica…Setting locale failed — perl: warning: Setting locale failed / bash: warning: setlocale: LC_ALL: cannot change locale (Linux)Setting locale fail…Transaction numbers are only allowed on a replica set member or mongos — MongoServerError: Transaction numbers are only allowed on a replica set member or mongos (MongoDB)Transaction numbers…NotWritablePrimary: not primary and secondaryOk=false — MongoServerError: not primary and secondaryOk=false / NotWritablePrimary: not master (MongoDB)NotWritablePrimary:…No primary found in replica set / ReplicaSetNoPrimary — MongoServerSelectionError: Server selection timed out after 30000 ms — topology type ReplicaSetNoPrimary (MongoDB)No primary found in…compose validation — docker compose: services.x Additional property y is not allowed / yaml: line N: mapping values are not allowed (Docker)compose validationdepends on undefined service — service "web" depends on undefined service "db": invalid compose project (Docker)depends on undefine…the attribute version is obsolete — WARN: the attribute `version` is obsolete, it will be ignored (Docker)the attribute versi…Could not find host matching read preference — MongoServerSelectionError: Could not find host matching read preference { mode: "secondary" } for set rs0 (MongoDB)Could not find host…Secondary too stale to catch up (RECOVERING) — MongoDB: We are too stale to use X as a sync source / replSet too stale to catch up — member in RECOVERING state (MongoDB)Secondary too stale…AlreadyInitialized: already initialized — MongoServerError: already initialized (rs.initiate on a configured replica set) (MongoDB)AlreadyInitialized:…bad auth : Authentication failed — MongoDB: MongoServerError: bad auth : Authentication failed (code 8000 / 18) (MongoDB)bad auth : Authenti…Can't connect from another host (bindIp 127.0.0.1) — MongoDB: connection refused / timed out from a remote host — mongod bindIp defaults to 127.0.0.1 (MongoDB)Can't connect from …MongoDB Atlas: connection timed out — IP not whitelisted — 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 (MongoDB)MongoDB Atlas: conn…

Directly related (9)

mongod exited with code 14 (data dir permission / lock)MongoDB

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.

rs.initiate failed: member not reachable / no host described in new configurationMongoDB

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.

Data directory not found / Permission deniedMongoDB

exception in initAndListen: NonExistentPath: Data directory /data/db not found

mongod can't use the data path.

Unable to lock file: /data/db/mongod.lock Resource temporarily unavailableMongoDB

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: Too many authentication failuresLinux

Received disconnect from host port 22:2: Too many authentication failures

The ssh-agent offered too many keys before the right one.

Change streams are only supported on replica setsMongoDB

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 NMongoDB

Error parsing YAML config file: yaml-cpp: error at line 12, column 5: illegal map value

mongod.conf has invalid YAML.

Replica set lost quorum: no primary electedMongoDB

not primary and secondaryOk=false / No primary available after election timeout

A majority of voting members isn't available.

MongoServerError: Authentication failed (SCRAM-SHA-256 / authSource)MongoDB

MongoServerError: Authentication failed. code: 18, codeName: 'AuthenticationFailed'

The credentials or auth database were wrong.

Two steps away (27)

daemonDocker

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.

sudoersLinux

user is not in the sudoers file. This incident will be reported.

Your account isn’t allowed to use sudo.

listen EACCESNode.js

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.

CannotPullContainerErrorAWS

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.

network not foundDocker

Error response from daemon: network X not found

The container or Compose project refers to a Docker network that doesn’t exist (any more).

Pool overlapsDocker

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).

EPERMNode.js

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.

spawn EACCESNode.js

Error: spawn EACCES

Node tried to execute a file that isn’t executable (missing +x permission) or isn’t a program.

nodemon crashedNode.js

[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.

Exited (0)Docker

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…

Restarting (1)Docker

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.

Init:CrashLoopBackOffKubernetes

Pod status Init:CrashLoopBackOff / Init:Error

An init container keeps failing, so the pod’s main containers never start.

REMOTE HOST IDENTIFICATION HAS CHANGEDLinux

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…

Too many authentication failuresLinux

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).

Setting locale failedLinux

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.

Transaction numbers are only allowed on a replica set member or mongosMongoDB

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.

NotWritablePrimary: not primary and secondaryOk=falseMongoDB

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.

No primary found in replica set / ReplicaSetNoPrimaryMongoDB

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).

compose validationDocker

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).

depends on undefined serviceDocker

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.

the attribute version is obsoleteDocker

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.

Could not find host matching read preferenceMongoDB

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.

Secondary too stale to catch up (RECOVERING)MongoDB

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.

AlreadyInitialized: already initializedMongoDB

MongoServerError: already initialized (rs.initiate on a configured replica set)

`rs.initiate()` was called on a node that already has a replica set configuration.

bad auth : Authentication failedMongoDB

MongoDB: MongoServerError: bad auth : Authentication failed (code 8000 / 18)

MongoDB (often Atlas) rejected the username/password in the connection string.

Can't connect from another host (bindIp 127.0.0.1)MongoDB

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.

MongoDB Atlas: connection timed out — IP not whitelistedMongoDB

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.