MongoDB

Configuration

Docker

Image

Compose

Debugging/error handling

Exit code 14

Keywords

"FileNotOpen", "Failed to open archive file"

Explanation

This exit code is formally defined as:

Exploration

This error typically implies a system-level issue that prevents MongoDB from starting successfully.

Known Fixes 1 - MongoDB by Bitnami running in Kubernetes

This fix addresses an issue where the disk space allocated for MongoDB was filled to 100%

  • Update the statefulset resource so that the container's command is sleep 1000000.

  • Allow the MongoDB pod instances to restart

  • Get a shell into each of them and use df -h to view the available diskspace

  • Observe that /bitnami/mongodb is at 100% or near that

  • Using MongoDB logs, figure out where it is trying to write to, in this fix, the issue was with the diagnostic data and the following command was run to free up disk space:

Reference/useful links

Last updated