Troubleshooting - pratikchaudhari64/personal_devserver GitHub Wiki
Cause: Service not running or wrong port
Fix:
# Check if service is running
docker ps
# Check logs
docker logs <service_name>
# Verify internal port matches docker-compose
docker exec <service_name> netstat -tlnpCause: Port mismatch or firewall
Fix:
# Ensure using port 8000
ngrok http 8000 # NOT 80
# Check Docker port mapping
docker port personals_nginxCheck health status:
docker compose ps
docker logs personals_notion_appCommon fixes:
- Missing dependencies in Dockerfile
- Port already in use
- Health check failing
Always rebuild after changes:
docker compose down
docker compose up --build -dFor nginx config changes only:
docker exec personals_nginx nginx -s reloadWrong: /notionapp returns 404
Right: /notionapp/ (trailing slash matters)
Fix in nginx.conf:
location /notionapp {
return 301 /notionapp/;
}
location /notionapp/ {
proxy_pass http://notion_app:5000/;
}Error: "name already in use"
Fix:
docker rm -f <container_name>
# Or remove container_name from docker-composeAdd limits to docker-compose.yml:
services:
my_app:
mem_limit: 512m# View all logs
docker compose logs -f
# Enter container
docker exec -it <container> sh
# Network debugging
docker network inspect personal_devserver_app_network
# Resource usage
docker stats- Check Security for firewall issues
- Verify all files are in correct directories
- Try minimal setup first (just nginx)
- Open issue on GitHub with error logs