Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Mongodb start error: FileNotOpen: Failed to open "/opt/bitnami/mongodb/logs/mongodb.log" #8

Closed
anoduck opened this issue Jul 25, 2020 · 0 comments

Comments

@anoduck
Copy link

anoduck commented Jul 25, 2020

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.

  1. In your shell:
    mkdir -p logs && touch logs/mongodb.log

  2. Add the volume to docker-compose.yml below the bitnami volume:

volumes:
  - .:/bitnami
  - ./logs:/opt/bitnami/mongodb/logs  
  1. You may now create the containers and start the application.
    docker-compose up -d
synfinner added a commit to synfinner/poopak that referenced this issue Sep 10, 2020
Created placeholder files to ensure a smooth deployment, per teal33t#8

Updated crawler UA.
synfinner added a commit to synfinner/poopak that referenced this issue Sep 10, 2020
Per teal33t#8 , added the log folder to docker-compose
@anoduck anoduck closed this as completed Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant