Add comprehensive API documentation to Cloudron setup instructions
- Added detailed API endpoint information in SETUP-INSTRUCTIONS.md - Documented API usage with Ente CLI - Enhanced routing configuration for auth/cast/accounts apps - Updated to version 0.1.64
This commit is contained in:
32
debug-start.sh
Executable file
32
debug-start.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Add this debugging section to your start.sh after line 350
|
||||
|
||||
# Start Caddy with more verbose logging
|
||||
echo "==> Starting Caddy web server with debug logging"
|
||||
echo "==> Validating Caddyfile first..."
|
||||
caddy validate --config /app/data/Caddyfile --adapter caddyfile || {
|
||||
echo "==> ERROR: Caddyfile validation failed!"
|
||||
cat /app/data/Caddyfile
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo "==> Starting Caddy..."
|
||||
# Run Caddy in foreground first to see errors
|
||||
timeout 10 caddy run --config /app/data/Caddyfile --adapter caddyfile 2>&1 | tee /app/data/logs/caddy-debug.log || {
|
||||
echo "==> ERROR: Caddy failed to start"
|
||||
echo "==> Last 50 lines of Caddy debug log:"
|
||||
tail -50 /app/data/logs/caddy-debug.log
|
||||
}
|
||||
|
||||
# Check if port is actually listening
|
||||
echo "==> Checking if port 3080 is listening..."
|
||||
netstat -tlnp | grep 3080 || lsof -i :3080 || {
|
||||
echo "==> ERROR: Nothing listening on port 3080"
|
||||
}
|
||||
|
||||
# Test the health endpoint
|
||||
echo "==> Testing health endpoint..."
|
||||
curl -v http://localhost:3080/health || {
|
||||
echo "==> ERROR: Health check failed"
|
||||
}
|
Reference in New Issue
Block a user