You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most recent version of mongodb fails to start on docker-compose up -d with error: FileNotOpen: Failed to open "/opt/bitnami/mongodb/logs/mongodb.log"
Fix
After some tinkering a simple resolution was discovered to resolve the problem. Create a local volume inside the CWD to hold the log file and create the log file.
In your shell: mkdir -p logs && touch logs/mongodb.log
Add the volume to docker-compose.yml below the bitnami volume:
Error
Most recent version of mongodb fails to start on
docker-compose up -d
with error:FileNotOpen: Failed to open "/opt/bitnami/mongodb/logs/mongodb.log"
Fix
After some tinkering a simple resolution was discovered to resolve the problem. Create a local volume inside the CWD to hold the log file and create the log file.
In your shell:
mkdir -p logs && touch logs/mongodb.log
Add the volume to docker-compose.yml below the bitnami volume:
docker-compose up -d
The text was updated successfully, but these errors were encountered: