Skip to content

Browser snapshot/screenshot fails on Ubuntu Server headless environment #14895

@chuwangtai

Description

@chuwangtai

Bug Description

On Ubuntu Server (headless environment), the browser tool can 'open' pages successfully, but 'snapshot' and 'screenshot' operations fail with an error about Chrome extension relay.

Environment

  • OpenClaw Version: 2026.2.12
  • OS: Ubuntu Server 24.04 (Linux 6.8.0-100-generic)
  • Browser: Playwright Chromium 1208
  • Node.js: v22.22.0
  • Running Mode: Headless (noSandbox: true)

Error Message

Steps to Reproduce

  1. Start browser:
  2. Open page:
  3. Try snapshot: → Fails

Expected Behavior

Snapshot should return the page content/dom structure.

Actual Behavior

Snapshot fails with Chrome extension relay error, even though using 'openclaw' profile (Playwright native mode).

Troubleshooting Attempted

  • ✅ Restarted Gateway
  • ✅ Updated OpenClaw to latest (2026.2.12)
  • ✅ Installed Playwright system dependencies (libgbm1, libnss3, etc.)
  • ✅ Set environment variable
  • ❌ Issue persists

Analysis

The error message "Chrome extension relay is running" suggests the code may be incorrectly entering extension relay mode, even when using 'profile=openclaw' which should use Playwright native mode.

Configuration

Additional Context

  • Browser process starts successfully (PID visible)
  • Page opens successfully (targetId returned)
  • Only snapshot/screenshot operations fail
  • Running on Ubuntu Server without GUI (headless environment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions