Troubleshooting
Common issues and solutions for dployr.
Installation Issues
No bootstrap token
Problem: Daemon fails to start with "no bootstrap token" error.
Suggestion: Remove the existing installation and rerun the installer:
# Linux/macOS
curl -sSL https://raw.githubusercontent.com/dployr-io/dployr/master/install.sh \
| bash -s -- --token "<bootstrap_token>"
# Windows
.\install.ps1 -Token $env:DPLOYR_INSTALL_TOKENPermission denied
Problem: Installation fails with permission errors.
Suggestion: Run the installer with administrator/root privileges:
# Linux/macOS
sudo curl -sSL https://raw.githubusercontent.com/dployr-io/dployr/master/install.sh | bash
# Windows (Run PowerShell as Administrator)
.\install.ps1Connection Issues
WebSocket authentication errors (401/403)
Problem: Daemon logs show 401 or 403 errors when connecting to base.
Suggestion: The daemon will automatically clear the access token and reacquire it. If the issue persists:
- Check that your bootstrap token is valid
- Verify the base URL is correct
- Check network connectivity to the base URL
# Test connectivity
curl -v https://base.dployr.io/healthmTLS certificate errors
Problem: Connection fails with certificate validation errors.
Suggestion: Ensure the certificate paths are correct:
# /etc/dployr/config.yaml
mtls:
cert_path: /etc/dployr/certs/client.crt
key_path: /etc/dployr/certs/client.key
ca_path: /etc/dployr/certs/ca.crtVerify certificates are valid:
openssl x509 -in /etc/dployr/certs/client.crt -text -nooutDeployment Issues
Build command fails
Problem: Deployment fails during the build step.
Suggestion: Check the build logs:
dployr logs <deployment-name>Common causes:
- Missing dependencies
- Incorrect build command
- Insufficient disk space
- Wrong working directory
Runtime version not found
Problem: Deployment fails with "runtime version not found" error.
Suggestion: Ensure vfox is installed and the runtime version is available:
# Check vfox installation
vfox --version
# List available versions
vfox available nodejs
# Install specific version
vfox install nodejs@20Port already in use
Problem: Service fails to start with "port already in use" error.
Suggestion: Check which process is using the port:
# Linux/macOS
lsof -i :3000
# Windows
netstat -ano | findstr :3000Kill the conflicting process or use a different port.
Service Issues
Service won't start
Problem: Service fails to start or crashes immediately.
Suggestion: Check service logs:
dployr logs <service-name> --tail 100Common causes:
- Missing environment variables
- Incorrect run command
- Application errors
- Port conflicts
Service keeps restarting
Problem: Service starts but keeps restarting.
Suggestion: Check health check configuration and application logs:
# View logs
dployr logs <service-name> --follow
# Check service status
dployr service status <service-name>Adjust health check settings if needed:
health_check:
path: /health
interval: 30s
timeout: 10s
retries: 5Proxy Issues
Domain not resolving
Problem: Custom domain doesn't resolve to your service.
Suggestion: Verify DNS records:
# Check DNS
dig example.com
nslookup example.comEnsure DNS A record resolves to your server's IP address. Ensure you have configured the TXT record to verify domain ownership.
SSL certificate errors
Problem: HTTPS doesn't work or shows certificate errors.
Suggestion: Check Caddy logs:
# Linux/macOS
sudo journalctl -u caddy -f
# Check Caddy configuration
caddy validate --config /etc/caddy/CaddyfileEnsure:
- Port 80 and 443 are open
- Domain DNS is correctly configured
- Email is set for Let's Encrypt
502 Bad Gateway
Problem: Proxy returns 502 error.
Suggestion: Verify the service is running:
dployr service status <service-name>Check if the service is listening on the correct port:
# Linux/macOS
netstat -tlnp | grep <port>
# Windows
netstat -ano | findstr <port>Slow deployments
Problem: Deployments take too long.
Suggestion:
- Use build caching
- Optimize build commands
- Check network speed for git clones
- Increase resources
Database Issues
Database locked
Problem: Operations fail with "database locked" error.
Suggestion: Ensure only one daemon instance is running:
# Linux/macOS
ps aux | grep dployrd
# Windows
Get-Process dployrdIf multiple instances are running, stop them and restart:
# Linux
sudo systemctl restart dployrd
# macOS
sudo launchctl restart io.dployr.dployrd
# Windows
Restart-Service dployrdCorrupted database
Problem: Database errors or corruption.
Suggestion: Restore from backup:
# Stop daemon
sudo systemctl stop dployrd
# Restore backup
cp /backup/dployr-backup.db /var/lib/dployr/dployr.db
# Start daemon
sudo systemctl start dployrdLogging
Where are logs?
Daemon logs:
- Linux/macOS:
/var/log/dployrd/app.log - Windows:
C:\ProgramData\dployr\logs\app.log
Service logs:
dployr logs <service-name>System logs:
# Linux
sudo journalctl -u dployrd -f
# macOS
log show --predicate 'process == "dployrd"' --last 1h
# Windows
Get-EventLog -LogName Application -Source dployrd -Newest 50Getting Help
If you're still experiencing issues:
- Check the GitHub Issues
- Join the Discord community
- Review the documentation
- View the logs in the web interface or using the CLI command:
dployr logs <service-name>