Docker Issues
Fix containers that do not start, fail their health check or cannot be reached.
Fix containers that do not start, fail their health check or cannot be reached.
Container Issues
Container Not Starting
Check:
- Docker logs:
docker compose logs app - Environment variables
- Volume mounts
- Port conflicts
Solutions:
- Check logs for specific errors
- Verify
.envfile exists and is correct - Check that
FILE_ENCRYPTION_KEY(orFILE_ENCRYPTION_KEY_FILE) is set, is a random 32-byte key, and matches the stored data; the log names the cause. See Common Errors - Verify ports are available
"secret file not found" or "no such file" for file_encryption_key
compose.yml needs secrets/file_encryption_key next to it. Run setup.sh, or create the file as shown in Manual Setup.
If the app logs Cannot read FILE_ENCRYPTION_KEY_FILE (/run/secrets/file_encryption_key): EACCES, the file is not readable by uid 1001. Run chmod 444 secrets/file_encryption_key, or as root chown 1001:1001 it with mode 0400.
"Set either FILE_ENCRYPTION_KEY or FILE_ENCRYPTION_KEY_FILE, not both"
compose.yml already sets FILE_ENCRYPTION_KEY_FILE. Move the key from .env into secrets/file_encryption_key and leave FILE_ENCRYPTION_KEY= empty.
Health Check Failing
The worker has no health check, so only tma-cloud-app reports a health status.
Check:
docker inspect --format='{{.State.Health.Status}}' tma-cloud-appSolutions:
The health check asks /health, which answers as soon as the server accepts requests. A failing check means the app is not running or not listening:
- Read
docker compose logs appfor the startup error - Check that the database is reachable; the app stops at startup when it is not
Network Issues
Cannot Access Application
Check:
- Container is running:
docker compose ps - Port mapping is correct
- Firewall rules
- Container logs
Solutions:
- Verify port mapping:
docker compose ps - Check
PORTin.env; it sets the host port, and the container listens on 3000 - Open
http://localhost:<PORT>, using thePORTfrom.env(3000 by default)
Related Topics
- Docker Compose / Docker - Docker Compose and prebuilt images
- Environment Setup - Configuration
Last updated on