everythings work fine but the mongodb fails on startup everytime.
log:
TypeScript
Generating random MongoDB keyfile...
/bin/bash: line 9: : No such file or directory
has something to do with this, but cannot really figure it out (from docs template):
TypeScript
entrypoint:
- /bin/bash
- -c
- |
set -e
KEYFILE_PATH="/data/keyfile/mongo-keyfile"
INIT_FLAG="/data/db/.mongodb_initialized"
# Generate keyfile if it doesn't exist
if [ ! -f "$KEYFILE_PATH" ]; then
echo "Generating random MongoDB keyfile..."
mkdir -p /data/keyfile
openssl rand -base64 756 > "$KEYFILE_PATH"
fi
chmod 400 "$KEYFILE_PATH"
chown mongodb:mongodb "$KEYFILE_PATH" 2>/dev/null || chown 999:999 "$KEYFILE_PATH"
TL;DR
Docker Compose MongoDB setup is failing on startup due to a missing directory for the MongoDB keyfile generation script. To fix this, ensure the directory structure is correct in the script and that the Docker volumes are properly mapped.Recommended threads
- Auth broken after update from 1.8.0 to 1...
So ive been having issues creating, deleting or updating users on my appwrite instance after i updated from 1.8.0 to version 1.9.0. When trying to create a user...
- Realtime not processing messages
When subscribing to realtime events of database, the client's websocket receives the messages in the websocket feed, but doesn't call the specific message handl...
- problem with some tables (cant read rows...
I have a weird problem with some tables - they wont show the rows (in console it is stuck loading). I checked in mariadb directly and the collection can be read...