What problem does it solve?
When an Activepieces flow run fails, the root cause is scattered across BullMQ job state, Postgres rows, compressed run logs, and centralized ClickHouse logs. This Skill walks you through an end-to-end investigation that joins all of these sources and classifies the failure as a product bug, user/config issue, or infrastructure problem.
Core Features & Use Cases
- Remote job/run report: Runs a debug script over SSH on the DevOps box to pull the BullMQ job, flow_run, flow_version, flow, trigger payload, and run logs as a single JSON report.
- ClickHouse log correlation: Queries centralized server/worker logs via the ClickStack MCP around the failure window to find sandbox crashes, OOM events, RPC timeouts, and connection refresh failures.
- Code-level root cause tracing: Greps the Activepieces repo for the exact error message or ActivepiecesError code to locate the throwing file:line and decide whether it is a product bug or a config issue.
- Backlog categorization: Aggregates all failed jobs in the workerJobs queue into categories (ConnectionNotFound, StorageError, stalled, SANDBOX_INTERNAL_ERROR, etc.) with counts and sample job ids.
- Use Case: Given a failed run id, produce a one-line root cause, the failing step and quoted stacktrace, corroborating log lines, and either a proposed code fix or the config change the user must make.
Quick Start
Ask the assistant to debug failed flow run <run-id> using the debug-failed-run skill, providing the SSH host for the DevOps box.