Template Troubleshooting
Common template-related issues and their solutions.
Template creation fails
Image pull timeout
Symptom: Template creation fails during image download.
Fix:
- Check network connectivity to the registry
- For China users, use
cube-sandbox-cn.tencentcloudcr.comregistry - For international users, use
cube-sandbox-int.tencentcloudcr.comregistry
Insufficient disk space
Symptom: Template creation fails with disk space errors.
Fix: Template creation requires significant disk space:
- Image download and extraction
- Snapshot creation
- Distribution to nodes
Ensure at least 20-30 GB free on the data disk.
Template build hangs
Symptom: Template creation appears to hang.
Fix:
Check build progress:
bashcubemastercli tpl watch --job-id <job_id>Check CubeMaster logs:
bashsudo tail -200 /data/log/CubeMaster/cubemaster-req.logIf stuck for more than 30 minutes, cancel and retry:
bashcubemastercli tpl cancel --job-id <job_id>
Template distribution issues
Template not available on specific node
Symptom: Sandbox creation fails on certain nodes with template not found.
Fix: Redistribute the template:
bash
cubemastercli tpl redo --template-id <template-id> --node <node-ip>Template version mismatch
Symptom: Sandbox creation fails after CubeSandbox upgrade.
Fix: Rebuild the template after upgrading CubeSandbox:
bash
cubemastercli tpl create-from-image \
--image <your-image> \
--writable-layer-size 1G \
--expose-port 49999 \
--probe 49999Template inspection
List all templates
bash
cubemastercli tpl listView template details
bash
cubemastercli tpl info --template-id <template-id>Preview template requests
Use the template inspection tool to preview API requests. See Template Inspection & Request Preview.