Troubleshooting
Common issues and solutions for Reviewflow.
CLI Diagnostics
Before diving into specific issues, use these built-in commands:
| Command | What it checks |
|---|---|
reviewflow validate | Config and .env correctness |
reviewflow status | Server running state, PID, port |
reviewflow logs -f | Live server logs (follow mode) |
reviewflow logs -n 50 | Last 50 log lines |
bash
# Quick health check
reviewflow validate && reviewflow statusWebhooks
Webhook returns 401
- Verify your webhook token in
.envmatches the one configured in GitLab/GitHub - Check server logs:
journalctl -u review-flow -n 50(production) oryarn devoutput (development) - Check the service is running:
systemctl status review-flow
Review doesn't start
- Check the repository is in
config.jsonwithenabled: true - Verify your username matches the one in
config.json - Ensure the MR/PR is not a draft
- Check server logs for webhook reception
Services
Service won't start
bash
journalctl -u review-flow -n 50Common causes:
- Wrong path in systemd service file
- Missing
.envfile - Node.js not found (check
/usr/bin/nodeexists)
Tunnel not connecting
bash
# Check tunnel status
cloudflared tunnel info review-flow
# Verify config
cloudflared tunnel ingress validate
# Check DNS
dig review.your-domain.com
# Restart tunnel
sudo systemctl restart cloudflared-review-flowClaude Code
Claude Code fails
- Verify the local path exists and is a git repository
- Check Claude Code is authenticated:
claude --version - Verify the skill exists in the target project
- Check Claude Code permissions (
settings.local.json)
MCP Server
No MCP logs created
- The MCP server only starts when Claude actually calls a tool
- Ensure
--printmode and MCP server config are both set - Check
~/.review-flow/logs/mcp-server.log
"Workflow not found" error
- Check
MCP_JOB_IDenv var is set correctly - Verify the job context file exists:
~/.review-flow/jobs/<jobId>.json
Tools listed but not callable
- MCP server doesn't start just from being listed; Claude must invoke a tool
- Verify
.mcp.jsonexists in the project directory
Log Locations
| Log | Location |
|---|---|
| Server logs | stdout / journalctl -u review-flow -f |
| MCP server | ~/.review-flow/logs/mcp-server.log |
| Review stats | .claude/reviews/stats.json (in project) |
| MR tracking | .claude/reviews/tracking.json (in project) |