Deployment Failures
Troubleshoot common deployment issues in OEC.sh. This guide covers build failures, container startup problems, Git errors, and module installation issues.
Build Failures
Symptom
Deployment fails during the build phase with errors in the deployment logs.
Common Causes and Solutions
Python Dependency Conflicts
Symptom: pip install fails with version conflicts or missing packages.
Solution:
- Check your
requirements.txtfor pinned versions - Ensure dependencies are compatible with your Odoo version
- Remove conflicting or duplicate packages
# requirements.txt - Pin compatible versions
# For Odoo 17.0
werkzeug==2.0.3
psycopg2-binary==2.9.9Odoo versions have specific dependency requirements. Check the Odoo documentation (opens in a new tab) for your version's requirements.
Insufficient Disk Space
Symptom: Build fails with "no space left on device" error.
Solution:
- Go to Server → Metrics to check disk usage
- Remove unused environments or old backups
- Scale up disk resources if needed: Environment → Settings → Resources
Docker Build Timeout
Symptom: Build hangs or times out without completing.
Solution:
- Check server CPU/RAM usage during build
- Consider scaling up resources temporarily for large builds
- Split large module installations across multiple deployments
Container Startup Issues
Symptom
Container fails to start or crashes immediately after starting.
Common Causes and Solutions
Port Already in Use
Symptom: Error message about port 8069 or 8072 already bound.
Solution:
- Check for zombie containers: Go to Environment → ⋮ menu → Force Restart
- If issue persists, contact support with the environment ID
Missing Environment Variables
Symptom: Odoo fails to start with configuration errors.
Solution:
- Verify required environment variables are set
- Go to Environment → Settings → Environment Variables
- Ensure database credentials are correct
DB_HOST=localhost
DB_PORT=5432
DB_USER=odoo
DB_PASSWORD=your_password
DB_NAME=your_databaseMemory Limit Exceeded
Symptom: Container killed with OOM (Out of Memory) error.
Solution:
- Check memory usage: Server → Metrics
- Increase RAM allocation: Environment → Settings → Resources
- Reduce worker count if running multiple environments
Git Errors
Symptom
Deployment fails when cloning or pulling from Git repository.
Common Causes and Solutions
Authentication Failed
Symptom: "Authentication failed" or "Permission denied" error.
Check Git Connection
Go to Settings → Git Connections and verify the connection status.
Regenerate Token
If using Personal Access Token (PAT), regenerate it with correct scopes:
- GitHub:
reposcope - GitLab:
read_repositoryscope
Re-link Connection
Remove and re-add the Git connection if using OAuth.
Branch Not Found
Symptom: "Remote branch not found" error.
Solution:
- Verify the branch exists in your repository
- Check for typos in branch name
- Update branch in Environment → Settings → Branch
Submodule Errors
Symptom: "Could not clone submodule" error.
Solution:
- Ensure all submodules are accessible with the same credentials
- Check
.gitmodulesfile for correct URLs - Consider using addon repositories instead of submodules
Module Installation Failures
Symptom
Odoo starts but modules fail to install or update.
Common Causes and Solutions
Module Not Found
Symptom: "Module not found" or "Unknown module" error.
Solution:
- Verify module is in addon path
- Check addon repository configuration: Project → Repositories
- Ensure module folder contains
__manifest__.py(Odoo 10+) or__openerp__.py(older versions)
Dependency Missing
Symptom: "Unmet module dependency" error.
Solution:
- Install the required dependency module first
- Check
__manifest__.pyfor thedependslist - Add missing dependencies to your addon repositories
Database Migration Error
Symptom: Module update fails during database migration.
Solution:
- Check Odoo logs for specific migration errors
- Create a backup before retrying
- For major version upgrades, consider using the clone with sanitization feature
Best Practice: Always create a backup before module updates. Go to Environment → Backups → Create Backup.
Deployment Timeout
Symptom
Deployment times out before completing.
Common Causes and Solutions
Large Codebase
Symptom: Git clone takes too long for large repositories.
Solution:
- Use shallow clone if repository has long history
- Consider splitting large monorepos
- Move large assets to external storage
Slow Module Installation
Symptom: Module installation takes longer than expected.
Solution:
- Install modules in smaller batches
- Check for heavy data migration scripts
- Scale up resources temporarily for initial setup
Checking Deployment Logs
Access Deployment History
Go to Project → Deployments to see all deployments.
View Detailed Logs
Click on a deployment to see the full log output.
Filter by Status
Use the status filter to find failed deployments quickly.
Download Logs
Click Download to save logs for further analysis or support requests.
Prevention Tips
- Test Locally First - Run your code locally before deploying
- Use Staging - Deploy to a staging environment before production
- Pin Dependencies - Always pin exact versions in
requirements.txt - Monitor Resources - Keep an eye on server metrics
- Backup Regularly - Always have a recent backup before major changes
Still Having Issues?
If the above solutions don't resolve your problem:
-
Collect Information:
- Environment ID
- Deployment ID
- Error messages from logs
- Recent changes made
-
Contact Support: Email support@oec.sh
Pro & Agency Plans include priority support with faster response times.