Quick Diagnostics
Before diving into specific issues, run these quick checks:Verify API Response
Common Issues
API Request Failures
Error: 'Failed to clone repository'
Error: 'Failed to clone repository'
Error Message:Cause: The platform couldn’t clone your Git repository.Solutions:
-
Verify Repository URL
-
Check Repository Access
- Ensure the repository is public, or
- Use HTTPS with embedded credentials:
https://[email protected]/user/repo.git - Check if the repository URL is correct and active
-
Network Issues
- Verify the platform server has internet access
- Check for firewall rules blocking Git operations
- Ensure DNS resolution works for Git host
-
Server Logs: Check upload service logs for detailed error:
No Response from API
No Response from API
Symptom: The API request hangs or times out.Solutions:
-
Check Server Status
-
Verify Port 3000 is Accessible
-
Check Upload Service Logs
-
Restart Upload Service
Invalid Request Body
Invalid Request Body
Cause: Missing or malformed
url field in request body.Solution: Ensure your request includes the url field:Build Process Failures
Build Failures: npm install Errors
Build Failures: npm install Errors
Symptom: Build fails during dependency installation.Common Causes:
-
Missing package.json
- Ensure
package.jsonis in the repository root - Check that it wasn’t ignored by
.gitignore
- Ensure
-
Invalid package.json
-
Network Issues in Container
- Check Docker container has internet access
- Verify npm registry is accessible
-
Platform-Specific Dependencies
- The build uses
node:20-alpinebase image - Some native modules may need additional build tools
- The build uses
Build Failures: npm run build Errors
Build Failures: npm run build Errors
Symptom: Installation succeeds but build script fails.Solutions:
-
Missing Build Script
Verify
package.jsonincludes: -
Wrong Output Directory
The platform expects output in
/app/buildor/app/dist. If your framework uses a different directory, modify your build script: -
TypeScript Errors
-
Memory Issues
Large projects may run out of memory:
Build Output Not Found
Build Output Not Found
Error in Logs:Cause: Build doesn’t output to
build/ or dist/ directory.Solution: Configure your build to output to one of these directories.Framework Examples:- Vite (default: dist/) - No change needed
- Create React App (default: build/) - No change needed
- Next.js:
- Angular:
Docker Issues
Docker Build Failures
Docker Build Failures
Symptom: Build command execution fails with Docker errors.Solutions:
-
Docker Service Not Running
-
Insufficient Disk Space
-
Docker Permission Issues
-
Cleanup Orphaned Containers
Container Build Timeout
Container Build Timeout
Symptom: Build takes too long and times out.Solutions:
-
Reduce Dependencies
- Remove unused packages from
package.json - Use lightweight alternatives
- Remove unused packages from
-
Optimize Docker Build
- The platform creates a fresh Dockerfile for each build
- Consider caching strategies
-
Check System Resources
S3 Upload Issues
Upload Errors
Upload Errors
Error in Logs:Cause: Failed to upload files to S3 storage.Solutions:
-
Check AWS Credentials
-
Test S3 Access
-
Verify Bucket Permissions
- Ensure the IAM user has
s3:PutObjectpermission - Check bucket policy allows uploads
- Ensure the IAM user has
-
Check Network Connectivity
Download Errors (Deploy Service)
Download Errors (Deploy Service)
Error in Logs:Cause: Deploy service can’t download files uploaded by upload service.Solutions:
-
Verify Files Were Uploaded
-
Check Deploy Service Credentials
- Ensure deploy service has
s3:GetObjectands3:ListBucketpermissions
- Ensure deploy service has
-
Disk Space on Deploy Server
Queue Problems
Build Never Starts
Build Never Starts
Symptom: Deployment ID received but build never processes.Solutions:
-
Check Redis Connection
-
Verify Build Queue
-
Check Deploy Service Status
-
Restart Deploy Service
Redis Connection Errors
Redis Connection Errors
Error in Logs:Solutions:
-
Check Redis Service
-
Restart Redis
-
Verify Redis Configuration
- Default connection expects Redis on
localhost:6379 - Check firewall rules
- Default connection expects Redis on
Debugging Tips
Enable Verbose Logging
Set log levels for more detailed output:Manual Build Testing
Test the build process locally:Check End-to-End Flow
Trace your deployment through each service:Common Log Patterns
Successful Deployment:Getting Help
Still Stuck?
If you’ve tried these solutions and still have issues:
- Collect deployment ID and timestamps
- Gather relevant log snippets
- Document steps to reproduce
- Contact platform support with details