Basic Max Troubleshooting
- Logged in user:
max - Base directory:
/opt/answerrocket - View running Docker containers:
docker ps
Restarting Docker
To restart the containers:
./scripts/prod-compose.sh restartTo fully bring the containers down and back up (some config changes and issues require this rather than a restart):
./scripts/prod-compose.sh down
./scripts/prod-compose.sh up -dThe
-dflag stands for "detached." It brings up the containers without your terminal session being attached to them.
Investigating Issues
1. Check container health
Start by viewing all running Docker containers to see if any are unhealthy:
docker psSix containers are required for Max to run as expected:
nginxwebhostrocketfleetmaxappserverrabbitmongodb
Additional containers can be running without causing issues.
2. Check Docker logs
For any unhealthy container, check its logs:
docker logs [container]Replace [container] with the name of the container you are investigating, such as ar-webhost-1.
To cut down on clutter, use these flags:
-ffollows the logs live--tail [number]shows only the last X lines
Example:
docker logs -f --tail 50 ar-webhost-1Tip: You may still want to check the logs for healthy containers. Occasionally the logs contain relevant errors even when the container reports as healthy.
3. Check application logs
Application logs live in volumes/logs. The most relevant files are:
MaxAppServer.logmax_log-[date].txtfor the date you are investigating
The archive/ directory inside logs/ contains dated MaxAppServer log files for previous dates.
Updated 1 day ago