Debug Environment Variables
Enable detailed logging to troubleshoot container initialization and startup issues.General Debug Mode
SetDEBUG to true to enable verbose logging for the entire container initialization process. This is especially useful when server files are pre-downloaded or when reporting issues.
When reporting issues on GitHub, it is highly recommended to include the debug output.
Debug Server Execution
To troubleshoot only the command-line used to start the Minecraft server:Debug Memory Allocation
To troubleshoot JVM memory allocation issues:Common Issues and Solutions
Ownership/Permission Issues
Ownership/Permission Issues
If you are experiencing issues with the “Changing ownership of /data” step, you can disable it:
Raspberry Pi: 'sleep: cannot read realtime clock' Error
Raspberry Pi: 'sleep: cannot read realtime clock' Error
Container Won't Start or Crashes
Container Won't Start or Crashes
Check memory allocation
Ensure you have allocated enough memory. Use
DEBUG_MEMORY=true to see memory-related issues.Verifying Image Version
To confirm the image version that has been pulled, use the following command:Important Labels
The most interesting labels for troubleshooting:org.opencontainers.image.created: The date/time the image was builtorg.opencontainers.image.revision: Git commit hash (maps tohttps://github.com/itzg/docker-minecraft-server/commit/REVISION)org.opencontainers.image.version: Image tag and Java variant
Getting Help
Gather information
- Enable debug mode and collect logs
- Note your image version and revision
- Document your environment variables and configuration
Search existing issues
Check if your issue has already been reported on GitHub Issues.
Report the issue
If you can’t find a solution, create a new issue with:
- Debug logs
- Image version and labels
- Your configuration (docker-compose.yml or docker run command)
- Steps to reproduce the issue