Files
claude-seo/docs/TROUBLESHOOTING.md
Agrici DanielandClaude Opus 5.5 e042806b28 fix(url-safety,installers): review fixes for the trusted proxy opt-in
- GCP (fd20:ce::254) and Oracle (192.0.0.192) metadata addresses and 6to4-wrapped
  addresses are never allowlistable, for proxies and local targets alike.
- A malformed proxy URL raises one fixed message instead of echoing the URL and
  its credentials; an unknown proxy scheme is not echoed either.
- Shopify installer: literal paths in PowerShell, grant by SID, and a dangling
  .shopify-env symlink counts as existing.
- Docs list the metadata addresses that are actually refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 17:23:03 +02:00

9.5 KiB

Troubleshooting

Common Issues

Skill Not Loading

Symptom: /seo command not recognized

Solutions:

For plugin installs, verify and reinstall through Claude Code:

/plugin list
/plugin marketplace add AgriciDaniel/claude-seo
/plugin install claude-seo@agricidaniel-claude-seo

For manual installs:

  1. Verify installation:
ls ~/.claude/skills/seo/SKILL.md
  1. Check SKILL.md has proper frontmatter:
head -5 ~/.claude/skills/seo/SKILL.md

Should start with --- followed by YAML.

  1. Restart Claude Code:
claude
  1. Re-run installer:

Caution: Prefer downloading, inspecting, then running remote scripts; the pipe-to-shell form below is the less-safe convenience option.

curl -fsSL https://raw.githubusercontent.com/AgriciDaniel/claude-seo/main/install.sh | bash

Python Dependency Errors

Symptom: ModuleNotFoundError: No module named 'requests'

Solution:

Dependencies belong in the managed runtime. For a plugin install, run:

/seo doctor
/seo setup

For a manual install, run:

~/.claude/skills/seo/scripts/claude-seo doctor
~/.claude/skills/seo/scripts/claude-seo setup

Do not install individual packages, use pip --user, or create a PATH shim.

requirements.txt Not Found

Symptom: No such file: requirements.txt after install

Solution: For plugin installs, reinstall the plugin first:

/plugin install claude-seo@agricidaniel-claude-seo

For manual installs, requirements.txt is copied to the skill directory:

ls ~/.claude/skills/seo/requirements.txt

If missing, download it directly:

curl -fsSL https://raw.githubusercontent.com/AgriciDaniel/claude-seo/main/requirements.txt \
  -o ~/.claude/skills/seo/requirements.txt

Windows Python Detection Issues

Symptom: python is not recognized or pip points to wrong Python

Solution (v1.2.0+): The Windows installer now tries both python and py -3. If both fail:

  1. Install Python from python.org and check "Add to PATH"
  2. Rerun install.ps1. It uses CLAUDE_SEO_PYTHON when set, otherwise the first of py -3, python3 and python that is Python 3.11 to 3.14, otherwise the newest of py -3.14 down to py -3.11
  3. If py -3 is a newer Python that Claude SEO does not support yet (such as 3.15), install 3.14 alongside it, or set CLAUDE_SEO_PYTHON to a supported python.exe
  4. Run /seo doctor after installation

Playwright Screenshot Errors

Symptom: playwright._impl._errors.Error: Executable doesn't exist

Solution: rerun managed setup so the browser is installed through the same interpreter and persistent browser directory:

/seo setup
/seo doctor

Chromium Sandbox Warning

Symptom: rendering, screenshots or visual analysis work, but stderr shows claude-seo warning: Chromium's sandbox is unavailable on this system, so the page is rendered without it (or running as root, or disabled by CLAUDE_SEO_CHROMIUM_NO_SANDBOX), and the JSON result has "sandbox": false.

Cause: Claude SEO starts Chromium with its sandbox wherever the system can start it. Some systems cannot:

  • Ubuntu 23.10 and later (and GitHub's Ubuntu runners): AppArmor blocks unprivileged user namespaces by default, which the sandbox needs.
  • Docker and other containers: the default seccomp profile blocks user namespaces, and most images run as root.
  • root: Chromium does not run sandboxed as root.

There the browser is launched once more without the sandbox, behind the same egress guard. The audit still works, but a browser exploit served by an audited page is not contained (as root, it runs as root).

Solution: to get the sandbox back:

Two environment variables change the policy:

Variable Effect
CLAUDE_SEO_CHROMIUM_REQUIRE_SANDBOX=1 Strict mode: never render without the sandbox; fail instead
CLAUDE_SEO_CHROMIUM_NO_SANDBOX=1 Skip the sandbox attempt (the warning still appears)

Accepted values are 1, true, yes and on.


Chromium Sandbox Required but Unavailable

Symptom: the result's error says Chromium's sandbox could not start on this system (or cannot start as root) and CLAUDE_SEO_CHROMIUM_REQUIRE_SANDBOX is set, so nothing was rendered, or that both variables are set and contradict each other.

Cause: strict mode is on and the sandbox cannot start (see the entry above for why). With both variables set, strict mode wins and the launch is refused.

Solution: enable the sandbox as described above, or unset CLAUDE_SEO_CHROMIUM_REQUIRE_SANDBOX to allow the automatic fallback with a warning. For the conflict, unset one of the two variables.


Refusing Configured HTTP Proxy

Symptom: every live fetch, or every browser command (--render, screenshots, Unlighthouse), fails with one of:

Refusing configured HTTP proxy '127.0.0.1': non-public address 127.0.0.1. ... name it in CLAUDE_SEO_TRUSTED_PROXIES (host:port).
Unsupported proxy for browser rendering: scheme 'socks5'. Only http:// proxies are supported

Cause: HTTPS_PROXY, HTTP_PROXY or ALL_PROXY points at a proxy on loopback or a private address. That is refused by default, because anything that can set an environment variable could otherwise route every audit through a local service. Claude Code cloud and sandbox sessions, cntlm and px all work this way.

Solution: if the proxy is yours or your platform's, name it, with its port:

export CLAUDE_SEO_TRUSTED_PROXIES=127.0.0.1:3128
  • The value is a comma-separated list of host or host:port. No scheme, no credentials, no wildcard, no CIDR range: such an entry is ignored. Use the host exactly as the proxy variable spells it (localhost:3128 for http://localhost:3128), and brackets for IPv6 with a port ([::1]:3128).
  • It trusts the proxy only. The site you audit, every redirect and everything a rendered page loads must still be public. To audit a local or staging host over raw HTTP, see CLAUDE_SEO_LOCAL_TARGETS in SECURITY.md.
  • A proxy on a link-local address or a cloud metadata address (169.254.169.254, 100.100.100.200, 192.0.0.192, fd00:ec2::254, fd20:ce::254, the metadata.* names, and these addresses wrapped in IPv4-mapped or 6to4 form) is refused even when listed. The message then does not mention the variable.
  • The browser needs an http:// proxy. A SOCKS or https:// proxy URL is refused for browser commands even when listed; plain fetches are not affected by that limit.
  • claude-seo still resolves each destination itself before it hands the request to the proxy, so "DNS resolution failed" behind a proxy means this machine cannot resolve public names, and listing the proxy will not change that.

See "Trusting a local proxy" in SECURITY.md for what the proxy is trusted with.

Permission Denied Errors

Symptom: Permission denied when running scripts

Solution:

chmod +x ~/.claude/skills/seo/scripts/*.py


Subagent Not Found

Symptom: Agent 'seo-technical' not found

Solution:

For plugin installs, check /plugin list and reinstall claude-seo@agricidaniel-claude-seo; subagents load from the plugin, not ~/.claude/agents/.

For manual installs:

  1. Verify agent files exist:
ls ~/.claude/agents/seo-*.md
  1. Check agent frontmatter:
head -5 ~/.claude/agents/seo-technical.md
  1. Re-install agents:
cp /path/to/claude-seo/agents/*.md ~/.claude/agents/

Timeout Errors

Symptom: Request timed out after 30 seconds

Solutions:

  1. The target site may be slow: try again
  2. Increase timeout in script calls
  3. Check your network connection
  4. Some sites block automated requests

Schema Validation False Positives

Symptom: Hook blocks valid schema

Check:

  1. Ensure placeholders are replaced
  2. Verify @context is https://schema.org
  3. Check for deprecated/retired types: HowTo and SpecialAnnouncement, plus the June 2025 retirements (ClaimReview, VehicleListing, EstimatedSalary, LearningVideo, and the CourseInfo carousel)
  4. FAQPage rich results were retired for all sites on 2026-05-07. The hook does not block it because it remains a valid Schema.org type, but no AI or ranking benefit is confirmed.
  5. Validate at Google's Rich Results Test

Slow Audit Performance

Symptom: Full audit takes too long

Solutions:

  1. Audit crawls up to 500 pages: large sites take time
  2. Subagents run in parallel to speed up analysis
  3. For faster checks, use /seo page on specific URLs
  4. Check if site has slow response times

Getting Help

  1. Check the docs: Review COMMANDS.md and ARCHITECTURE.md

  2. GitHub Issues: Report bugs at the repository

  3. Logs: Check Claude Code's output for error details

Debug Mode

To see detailed output, check Claude Code's internal logs or run scripts directly:

# Test fetch
python3 ~/.claude/skills/seo/scripts/fetch_page.py https://example.com

# Test parse
python3 ~/.claude/skills/seo/scripts/parse_html.py page.html --json

# Test screenshot
python3 ~/.claude/skills/seo/scripts/capture_screenshot.py https://example.com