View Logs & Debug
Find and fix issues by checking your environment logs.
Access Logs
- Open your environment
- Go to Logs tab
- Logs stream in real-time
Log Types
Odoo Logs
The main application logs showing:
- Requests and responses
- Errors and warnings
- Module loading
- Database queries (if debug enabled)
PostgreSQL Logs
Database logs showing:
- Query errors
- Connection issues
- Slow queries
- Replication status (if replica enabled)
Deployment Logs
Build and deploy logs showing:
- Git operations
- Container builds
- Startup sequence
- Health checks
Reading Log Levels
| Level | Meaning | Action |
|---|---|---|
INFO | Normal operation | No action needed |
WARNING | Something unusual | Monitor, may need attention |
ERROR | Something failed | Investigate and fix |
CRITICAL | Serious failure | Immediate attention |
Common Error Patterns
Module Import Error
ImportError: No module named 'custom_addon'Fix: Check that addon is in your Git repo and addons_path is correct.
Database Connection Error
psycopg2.OperationalError: could not connect to serverFix:
- Check PostgreSQL container is running
- Verify database credentials
- Restart the environment
Permission Denied
PermissionError: [Errno 13] Permission denied: '/var/lib/odoo/filestore'Fix: File ownership issue. Contact support or use terminal to fix permissions.
Memory Error
MemoryError: Unable to allocate memoryFix: Scale up RAM for your environment.
Filter Logs
By Text
- Use the search box
- Type your filter (e.g.,
ERRORorsale.order) - Only matching lines appear
By Time
- Click the time range selector
- Choose: Last hour, Last 24h, Last 7 days
- Or set custom range
By Container
- Click the container dropdown
- Select: Odoo, PostgreSQL, or All
Download Logs
For offline analysis:
- Click Download button
- Choose format (text or JSON)
- Logs download to your computer
Useful for:
- Sharing with support
- Archiving
- Analysis with log tools
Terminal Debugging
For deeper debugging:
- Click Terminal button
- Access the Odoo container shell
- Common debug commands:
# View live Odoo logs
tail -f /var/log/odoo/odoo.log
# Check Odoo process
ps aux | grep odoo
# Test database connection
psql -h localhost -U odoo -d your_database
# Access Odoo shell
odoo shell -d your_database
# Check disk space
df -h
# Check memory
free -mDebug Mode in Odoo
Enable developer mode for more info:
- Go to Settings in Odoo
- Scroll to Developer Tools
- Click Activate developer mode
Now you can:
- See technical field names
- Access debug menu
- View SQL queries
Performance Debugging
Slow Requests
Look for log lines with timing:
INFO ... /web/dataset/call_kw took 5.234sAnything over 2-3 seconds needs investigation.
Database Queries
Enable query logging:
- Set environment variable:
ODOO_LOG_LEVEL=debug_sql - Redeploy
- Watch for slow queries
Warning: Debug logging is verbose. Disable after debugging.
Deployment Debugging
If deployment fails:
- Go to Overview tab
- Find the failed deployment
- Click to see detailed logs
- Look for the first
ERRORline
Common deployment issues:
- Git authentication failed
- Addon syntax error
- Database migration failed
- Container build error
Set Up Alerts
Get notified of errors:
- Go to environment Settings → Alerts
- Enable error notifications
- Set thresholds
- Receive alerts via email
Troubleshooting Checklist
When something's wrong:
- Check environment status (🟢 Running?)
- Look at recent logs for ERRORs
- Check deployment logs if just deployed
- Verify memory/CPU not maxed
- Check disk space
- Try restarting
- Check recent code changes
What's Next?
- Scale Resources - Fix resource issues
- Restore Backup - Rollback if needed
- Daily Operations - Routine maintenance