Skip to content

Walk through a failed run

View as Markdownllms.txt

Follow one failed pipeline run from the Portal’s overview to its logs, its quality report and the fix, without Kubernetes, Prometheus, Loki or Grafana. It is the v0.7 operator journey (#794): overview → degraded stage → failed run → logs → quality report → recovery. Every step also gives the command line or API read that shows the same thing.

Each step names the e2e check that proves it on every full run, so the walkthrough can be repeated on a fresh cluster.

The screenshots are from the e2e “operator journey screenshots” drill on a local deployment with the example data (artifact walkthrough-screenshots-<run id>).

You need a local deployment with DEV, the Portal and the log archive. Metrics are optional, and step 6 shows both cases. Starting from olf init:

spec:
preset: full # Slim works too: steps 1 to 5 need no Full service
stages:
dev:
enabled: true
access:
tls: none
observability:
metrics:
enabled: true # optional, for step 6
Terminal window
olf infra deploy

Load the example data once, so Bronze holds files for Silver to rebuild from. A fresh deployment registers the jobs but runs none, and DEV has no schedules:

Terminal window
olf infra product run <product> --stage dev

It waits for the run and should end in success. Then make a failed run that has written its quality checks, in Dagster (http://dagster-dev.olf.localhost): open a product’s job, select its Silver and Gold assets only, and in the launchpad add two run tags:

Tag Value
openlakeforge/full_refresh not-a-scope
floe/full_refresh true

Floe rebuilds the job’s Silver tables from Bronze and records its checks. The dbt step then refuses the unknown full-refresh scope (full refresh), so the run fails before Gold changes. Leave out the Bronze assets: their step reads the same tag and would fail the run before Floe.

The run’s pods are deleted an hour after it ends; the steps below work before and after that, since the logs and reports are read from the archive and the ops bucket. The full e2e suite makes the same run on a deployment with the e2e sign-in stub (its failed run drill-down through the platform API check), and deletes the pods at once.

Open the Portal at http://olf.localhost. With sign-in off, the Portal and the API serve you as platform-admin. With sign-in on, a data-engineer sees all of this on DEV, and needs a higher role for PROD’s logs and reports (roles).

Alert incidents and notifications (steps 1, 2 and 5) exist only when the profile declares a receiver: see Configure a receiver. Without one, the alert evaluator does not run, the Portal shows alerts as not provided, and everything else in this walkthrough is the same.

Open Monitoring, then select the stage. The overview shows the stage’s state, its services, the pipelines and data quality. What needs attention is one list of the stage’s failing signals and open alert incidents, worst first, each once, with whether its notification went out. A failed run makes its pipeline critical, and the run appears in that list with a link to it.

Times on the Monitoring pages are in UTC until you pick Local in the Time zone switch; the browser keeps the choice across pages and reloads.

Nothing is shown as healthy that the platform did not answer for: a service, a pipeline or a quality source that cannot be read is unknown, with the reason.

The DEV overview: a critical banner for one failed pipeline, Needs attention listing the failed run of
order_revenue_pipeline, and the pipelines and data quality tables

The same answers on the command line:

Terminal window
olf health dev
olf pipelines health dev

Proven by: the alert drill (alert notifications reach a receiver) for the failed-run, missed-run and quality states, and the walkthrough drill’s first page.

Follow the run link. The Failed-run screen shows the run’s domain and product, its start and end, and the pipeline’s state now, then:

  • What failed, first: the failed step and the first line of its error, when the run ended, and where to look next: the run’s logs on this page, Open in Dagster, the Runbook for the condition, All runs of the job, and the run’s retained quality reports (step 4). Run control stays in Dagster: once the cause is fixed, re-run the job there (step 5);
  • Logs (step 3);
  • Quality checks (step 4);
  • Data quality: rows rejected and accepted, and the Floe and dbt outcome counts, from the run’s quality manifest;
  • Open incidents for this pipeline, and whether their notification was delivered.

The run’s page for a failed order_revenue_pipeline run: the failed dbt step and its error under What failed, with
links to the logs, Dagster, the runbook and each Floe report; the Logs card listing the run’s window at all levels; the
run’s quality checks and data quality counts, marked incomplete; and no open incident

At phone width the same screen stacks its cards, What failed first:

The Failed-run screen at 390 pixels wide:
the run header, What failed with the step's ValueError and the report links, then the Logs card

Monitoring → Runs lists the stage’s runs of the last 24 hours, newest first, and filters them by pipeline, product, status and window (1 hour to 7 days); each row opens its run. On the overview, a pipeline’s name links to its runs, and its failed-run count to those failed runs.

Monitoring, Runs filtered to the failed runs of order_revenue_pipeline on DEV in the last 24 hours, with one failed
run listed

Terminal window
olf runs show <run-id> --stage dev

The API read is GET /api/v1/stages/dev/runs/<run-id>/failure.

The Logs card reads the run’s own window from the log archive, even though the run’s pods are deleted. A run that crosses midnight is read across both days. Each line shows its time and level when the source recorded them, and leaves them empty otherwise. The card opens at warning and above, or at all levels when the window holds no such line; Level and Show all levels change it. Only this run’s lines drops other workloads’ lines from the same window, and Load more pages on. The footer gives the window read and how long the archive keeps logs (Kept N days). Open in Logs ↗ opens the same window on the Logs page (Monitoring → Logs), which also browses the stage’s archive by day and hour, with level, pod and search filters.

The run’s Logs card at all levels with Only this run’s lines checked: 122 lines with their time, level, container
and text, and the window and retention in the footer

The Logs page opened on the run’s window: the stage, run and filter controls above the run’s tagged lines with
their pod and container

The API read is GET /api/v1/stages/dev/runs/<run-id>/logs?match_run=true. It covers the run’s whole window, across UTC days. A cut-off answer carries next; pass it back as after for the next page.

olf logs reads one UTC day at a time, today by default. For a run from another day, give its date, and repeat the read for each day a run crosses:

Terminal window
olf logs --stage dev --run-id <run-id> --date <YYYY-MM-DD> --severity error

--run-id selects lines but still reads the whole day, and the platform API stops a log read after 20 seconds. On a busy stage, add --since and --until around the run’s start and end so only those hours are read.

How the archive works, and what to do when delivery stops, is in Log archive.

Proven by: short-lived pod output in the log archive, log collector restart mid-stream and the failed-run drill-down, which pages the whole window through the API after the pods are gone.

The Quality checks card lists the run’s Floe and dbt checks from its quality manifest that did not pass, errors first; the passes are behind their count (N passed), one click away. Each row shows the outcome (ERROR, WARN, PASS, NOT RUN or UNKNOWN), the check, the table and column, the engine’s severity, what the pipeline did with it (quarantined rows, blocked the run, continued), and the counts the engine recorded. A run with no manifest, or an unfinished one, says so; it never shows passes it did not record.

The Quality checks card with its 30 passes opened: each row shows PASS, the Floe check, table and severity, what
the pipeline did, and the rejected and accepted row counts

Floe report ↗ and dbt results ↗, under What failed, download the retained reports through the API, as JSON attachments. The browser never gets an object-store address. A role that may not read the stage’s reports sees the report named without a link.

The API reads are GET /api/v1/stages/dev/runs/<run-id>/quality and the href of each entry in its reports.

With governance on (Full), the same results are OpenMetadata test cases on the stage’s tables, published by the stage’s quality-writer bot. The run’s results appear there after the next reconciler pass.

Proven by: real run quality evidence (Floe, dbt and OpenMetadata, in DEV and PROD), OpenMetadata quality publication, and the failed-run drill-down’s quality and report reads.

The run’s quality answer, every alert incident and every alert notification link to the runbook section for its condition: a failed run or a failed quality check. Each section gives what to check in the Portal, then on the command line, the common causes and the recovery.

Once the cause is fixed, run the job again: from Dagster, or as yourself on DEV:

Terminal window
olf runs launch <job> --stage dev

When the run succeeds, the pipeline returns to healthy on the overview and in olf pipelines health dev, and the alert incident, if a receiver is configured, resolves and the receiver gets the resolution.

Proven by: the alert drill, which raises a Floe warning, escalates it to an error, resolves it on a passing run, and checks the notification’s runbook link.

With metrics.enabled: true, Monitoring → Metrics charts the stage’s CPU, memory and storage per component, Trino load and errors, pipeline runs and duration, and the cluster’s nodes, over the last 1 h, 6 h, 24 h or 7 d. Each chart has a text summary and a table view.

When Prometheus is down, each chart says the history is unknown and offers Retry; nothing is drawn as zero. With metrics off, as on Slim, the page says resource history is not collected, and the pipeline charts, which come from Dagster, still show.

Monitoring, Metrics tab for DEV over 24 hours: CPU, memory and storage per component, Trino load and query errors,
pipeline runs by outcome and run duration per pipeline, and the cluster’s node CPU and memory, each with a text summary
and a table view

Proven by: metrics series through the platform API, metrics outage reads unavailable and metrics labels and series budget.

#794 scenario Step e2e check
1. Slim, no monitoring stack 1 to 5 The Slim smoke on every pull request; no Prometheus or kube-state-metrics on Slim (wiring.tftest.hcl)
2. Short-lived failed job, logs and report after its pods are gone 2 to 4 short-lived pod output in the log archive, log collector restart mid-stream, failed-run drill-down
3. Quality WARN and ERROR in Dagster, the Portal, the report and OpenMetadata 4 real run quality evidence, OpenMetadata quality publication, the alert drill
4. Optional metrics, and an outage shown as unknown 6 metrics series through the platform API, metrics outage reads unavailable
5. Cross-stage security 1 to 4 cross-stage isolation (every stage pair), the failed-run drill-down’s refused role, identity credential exposure
6. Size and footprint below metrics backend footprint, log collector footprint at three log rates
7. Alerts: receiver, deduplication, runbook link 5 alert notifications reach a receiver
8. A missed run alerts with no new event 1 the alert drill’s missed run and stopped schedule
9. The log collector watches itself 3 log archive delivery signals through an outage

Measured on a local kind cluster (three nodes, a 16-core host with 15 GiB of memory); the method and the per-hour figures are in Metrics.

Slim, DEV only, metrics off Full, DEV and PROD, metrics on
When 2026-11-21, at rest after one pipeline run, main 630df585 2026-11-22 to 23, 25 hours, main 5120c3b0
Running pods 31 48
Prometheus, kube-state-metrics No pod, no PVC, no Service, no route 2 pods, one 4Gi PVC on small
Node memory (working set, all nodes) about 7.9 GiB 10.5 to 12.1 GiB
Node CPU (all nodes) not measured 1.17 cores on average
Metrics backend none 4.4m CPU and 96 MiB for Prometheus, 0.8m and 39 MiB for kube-state-metrics, on average
Metrics volume none 8.4 MiB after 24 hours; about 60 MiB at the default 7 days
Head series none 902 to 1,522

The log archive grew from 0.89 MiB to 5.3 MiB in 24 hours on the Full deployment: 4.3 MiB a day across DEV, PROD and the platform, three quarters of it the platform’s own logs. At the default 30 days of logs.archive.retention_days, the archive settles at about 130 MiB. The Slim deployment was not run for 24 hours, so its archive rate is not measured separately; its collector and archive are the same as Full’s, with fewer pods writing.

The collector’s own CPU and memory at three log rates come from the log collector footprint at three log rates check, which records LOG_FOOTPRINT_JSON on every --checks all run.


Synced from openlakeforge @ v0.7.5-beta.1 (8a7bf72), docs/guides/operations/monitoring-walkthrough.md.