Troubleshooting
Solutions to common problems when using youBencha.
Installation Issues
Section titled “Installation Issues”youBencha Not Found
Section titled “youBencha Not Found”Error: yb: command not foundSolutions:
-
Install globally:
Terminal window npm install -g youbencha -
Check npm global bin path:
Terminal window npm bin -g# Add to PATH if needed -
Use npx if installed locally:
Terminal window npx yb --version
Node.js Version Error
Section titled “Node.js Version Error”Error: Node.js 20+ requiredSolution:
# Check versionnode --version
# Install Node.js 20+ using nvmnvm install 20nvm use 20Configuration Errors
Section titled “Configuration Errors”Invalid YAML Syntax
Section titled “Invalid YAML Syntax”Error: YAML parse error at line 5Common causes:
-
Tabs instead of spaces:
# ❌ Wrong (tabs)agent:type: copilot-cli# ✅ Correct (spaces)agent:type: copilot-cli -
Missing colons:
# ❌ Wrongagenttype: copilot-cli# ✅ Correctagent:type: copilot-cli -
Improper quoting:
# ❌ Wrongprompt: Add "quotes" here# ✅ Correctprompt: 'Add "quotes" here'
Invalid JSON Syntax
Section titled “Invalid JSON Syntax”Error: Unexpected token in JSONCommon causes:
-
Trailing commas:
// ❌ Wrong{ "key": "value", }// ✅ Correct{ "key": "value" } -
Single quotes:
// ❌ Wrong{ 'key': 'value' }// ✅ Correct{ "key": "value" }
Schema Validation Error
Section titled “Schema Validation Error”Error: Invalid evaluator type 'unknown-eval'Solution:
List available evaluators:
yb listUse valid evaluator names: git-diff, expected-diff, agentic-judge
File Not Found
Section titled “File Not Found”Error: Prompt file not found: ./prompts/task.mdSolutions:
- Check file path relative to suite.yaml
- Create the missing file
- Verify file permissions
Agent Errors
Section titled “Agent Errors”Copilot CLI Not Found
Section titled “Copilot CLI Not Found”Error: Copilot CLI not installedSolution:
npm install -g @githubnext/github-copilot-cliGitHub Authentication Failed
Section titled “GitHub Authentication Failed”Error: GitHub authentication requiredSolution:
gh auth logingh auth status # VerifyCopilot Subscription Required
Section titled “Copilot Subscription Required”Error: GitHub Copilot subscription requiredSolution:
- Verify subscription at github.com/settings/copilot
- Ensure token has
copilotscope
Model Not Available
Section titled “Model Not Available”Error: Model 'xyz' not availableSolutions:
- Check supported models in Model Selection
- Verify subscription tier supports the model
- Use a different model:
agent:model: claude-sonnet-4.5
Evaluator Errors
Section titled “Evaluator Errors”expected-diff Missing Reference
Section titled “expected-diff Missing Reference”Error: expected_source and expected required for expected-diffSolution:
Add reference configuration:
expected_source: branchexpected: feature/completed
evaluators: - name: expected-diffagentic-judge Assertion Error
Section titled “agentic-judge Assertion Error”Error: Assertion 'quality' produced invalid scoreSolutions:
-
Make assertion text clearer:
assertions:quality: "Code quality is high. Score exactly 0 or 1." -
Check agent output in logs
Workspace Issues
Section titled “Workspace Issues”Workspace Already Exists
Section titled “Workspace Already Exists”Error: Workspace lock file existsSolution:
Clean up stale workspace:
rm -rf .youbencha-workspace/run-*Disk Space Full
Section titled “Disk Space Full”Error: No space left on deviceSolutions:
-
Clean old workspaces:
Terminal window rm -rf .youbencha-workspace/ -
Use custom workspace location:
workspace_dir: /tmp/youbencha
Permission Denied
Section titled “Permission Denied”Error: Permission denied: .youbencha-workspaceSolution:
chmod -R u+rwx .youbencha-workspace/Network Issues
Section titled “Network Issues”Repository Clone Failed
Section titled “Repository Clone Failed”Error: Failed to clone repositorySolutions:
-
Check URL is accessible:
Terminal window git ls-remote https://github.com/org/repo.git -
Verify authentication:
Terminal window gh auth status -
Check for typos in URL
Webhook Failed
Section titled “Webhook Failed”Warning: Webhook POST failed: Connection refusedSolutions:
- Verify webhook URL is correct
- Check network connectivity
- Ensure endpoint accepts POST requests
Timeout Issues
Section titled “Timeout Issues”Agent Timeout
Section titled “Agent Timeout”Error: Agent execution timed out after 300000msSolution:
Increase timeout:
timeout: 600000 # 10 minutesPre-Execution Timeout
Section titled “Pre-Execution Timeout”Error: Pre-execution hook timed outSolution:
pre_execution: - name: script config: timeout_ms: 120000 # 2 minutesDebugging Steps
Section titled “Debugging Steps”1. Validate Configuration
Section titled “1. Validate Configuration”yb validate -c suite.yaml -v2. Check Agent Output
Section titled “2. Check Agent Output”cat .youbencha-workspace/run-*/artifacts/youbencha.log.json | jq3. Review Diff
Section titled “3. Review Diff”cat .youbencha-workspace/run-*/artifacts/git-diff.patch4. Inspect Workspace
Section titled “4. Inspect Workspace”ls -la .youbencha-workspace/run-*/src-modified/5. Check Results
Section titled “5. Check Results”cat .youbencha-workspace/run-*/artifacts/results.json | jq '.summary'Getting Help
Section titled “Getting Help”Check Documentation
Section titled “Check Documentation”Report Issues
Section titled “Report Issues”Open an issue on GitHub:
Include:
- youBencha version (
yb --version) - Node.js version (
node --version) - Error message
- Suite configuration (remove secrets)
- Steps to reproduce