Common Issues
Webhook Not Received
Symptoms: GitHub sends webhooks but server doesn’t process them. Diagnosis:-
Verify webhook URL configuration:
-
Check firewall rules:
-
Verify IP allowlist (if enabled):
-
Check webhook secret:
Verify it matches the secret configured in GitHub webhook settings.
Configuration Errors
Symptoms: Server fails to start or repository not found errors. Diagnosis:-
Invalid YAML syntax:
-
Repository not in config:
-
Missing required fields:
GitHub API Errors
Symptoms: Rate limit errors, authentication failures, or API timeouts. Rate Limit Exceeded:-
Use multiple tokens:
-
Check token permissions:
Required scopes:
repo(full repository access)admin:org→read:org(for OWNERS validation)admin:repo_hook(for webhook management)
-
Verify token validity:
Performance Issues
Symptoms: Slow webhook processing or timeouts. Diagnosis:-
Repository Cloning:
- Large repositories take longer to clone
- Network latency affects clone times
- Consider shallow clones for faster processing
-
GitHub API Calls:
- Excessive API calls slow down processing
- Check
token_spendin logs - Optimize by using pre-fetched repository data
-
Resource Constraints:
-
Increase worker count:
-
Optimize configuration:
-
Use repository-level overrides:
Create
.github-webhook-server.yamlin repository to reduce config loading time.
WebSocket Connection Issues
Symptoms: Log viewer doesn’t show real-time updates. Diagnosis:-
Enable log server:
-
Check reverse proxy configuration:
-
Verify firewall allows WebSocket traffic:
Missing Log Data
Symptoms: Logs are empty or incomplete. Diagnosis:-
Create log directory:
-
Fix permissions:
-
Check log rotation:
-
Verify log level configuration:
Debug Commands
Server Debugging
Enable Debug Logging:Configuration Testing
Validate Schema:Webhook Testing
Simulate Webhook Events:API Testing
Test GitHub API Access:Log Analysis
Find Recent Errors:Container Debugging
Docker/Podman Debugging:Getting Help
If you encounter issues not covered here:- Check structured logs for detailed error messages
- Enable DEBUG logging for maximum verbosity
- Search existing issues on GitHub
- Create a new issue with:
- Server version
- Configuration (sanitized)
- Relevant log entries
- Steps to reproduce
Next Steps
Monitoring
Set up monitoring and alerts
Contributing
Contribute to the webhook server