Skip to content

Update Ogmios to 7.0.0 / Kupo to 2.12.0 and fix devnet startup issues - #192

Closed
satran004 wants to merge 1 commit into
mainfrom
feat/ogmios_kupo_update
Closed

satran004 wants to merge 1 commit into
mainfrom
feat/ogmios_kupo_update

Conversation

@satran004

Copy link
Copy Markdown
Member

Summary

Moves Ogmios and Kupo back to the CardanoSolutions upstream and removes the PV11 stopgap that bundled Linux x86_64 IntersectMBO builds into the arm64 Docker image. Both components now ship native binaries for linux/amd64, linux/arm64 and macOS arm64, so the images no longer need x86_64 emulation and a native macOS install works.

Three unrelated devnet startup bugs surfaced while testing this end to end and are fixed here too.

Version Platforms
Ogmios 6.14.0.2 (IntersectMBO) → 7.0.0 x86_64-linux, aarch64-linux, aarch64-macos
Kupo 2.11.0.1 (IntersectMBO) → 2.12.0 x86_64-linux, aarch64-linux, aarch64-macos

Ogmios / Kupo update

  • Bump to Ogmios 7.0.0 and Kupo 2.12.0 from CardanoSolutions (.tar.gz → .zip).
  • Docker images use real aarch64 assets for arm64 instead of emulated x86_64 ones — the qemu/binfmt caveat for native Linux arm64 hosts is gone.
  • Consolidate the duplicated OS/arch resolution into one helper that fails fast with an actionable message on unpublished platforms (macOS x86_64, Windows) rather than attempting a 404 download.
  • Flatten the nested layout the macOS zips use (v7.0.0/bin/ogmios) so the binary always lands at <home>/bin/<name>.
  • Handle the Kupo tag/asset version mismatch (tag v2.12, asset v2.12.0).

macOS Ogmios is supported. An earlier revision of this branch blocked it on the grounds that the aarch64-macos artifact links against Nix store paths. That is not true of 7.0.0 — verified on the actual artifact:

otool -L ogmios-v7.0.0-aarch64-macos
    /usr/lib/libSystem.B.dylib
    /usr/lib/libiconv.dylib
    /usr/lib/libffi.dylib
    /System/Library/Frameworks/Security.framework/…/Security

No Nix references; --version returns v7.0.0 (ef123abd). The guard and the docs asserting it have been removed.

Ogmios as the Yaci Store tx evaluator

  • Enabled by default (ogmios_enabled=true) and used to evaluate Plutus script costs, with fallback to the embedded Scalus evaluator.
  • Wait for Ogmios to answer on /health before committing to the ogmios evaluator mode. The mode is baked into the Store process at startup and never re-evaluated, so the previous "process alive 1s after spawn" check meant a short-lived Ogmios would leave the Store unable to evaluate any script for the lifetime of the devnet.
  • Skip Ogmios/Kupo in yano-only mode — they need the Haskell node's n2c socket.
  • Don't let an Ogmios failure abort the startup chain before Yaci Store runs.
  • enableOgmios is now optional in the admin API; omitting it keeps the configured default instead of forcing Ogmios off.

Fix: prometheus.port was never applied

The property was read, stored on ClusterInfo and put into the Mustache values map — but templates/configuration.json hardcoded 12798 with no {{prometheusPort}} placeholder, so the value was silently dropped.

Any second cardano-node on the host holding 12798 made the devnet node die at bind (Network.Socket.bind: resource busy), and the error was invisible because node.sh pipes only stdout into node.log.

Fix: Yano DuckLake projection archive

Yano pre15's devnet profile enables the projection archive by default. DevKit reads nothing from Yano's history API, and the archive defaults to ./history relative to the working directory — the shared yano home — so it outlived create-node -o and then failed Yano's startup guards:

a fresh chainstate cannot adopt an archive that already covers blocks through 1653
DuckLake archive identity mismatch: expected=… actual=…

Turned off, with the dir pinned inside the node folder so it is cleaned up with the cluster if ever re-enabled (including via reset, which doesn't delete the whole cluster folder).

Also bumps Yano to 0.1.0-pre15.

Test plan

  • download -c ogmios on macOS arm64 → installs v7.0.0 at ~/.yaci-cli/components/ogmios/bin/ogmios, nested archive correctly flattened
  • Devnet starts with Yaci Store + Ogmios + Kupo enabled
  • Yano starts clean — no DuckLake failure, no stale archive
  • prometheus.port override lands in the generated configuration.json
  • ./gradlew build passes
  • Docker linux/amd64 and linux/arm64 image builds (unchanged download scripts verified against upstream asset names; not rebuilt in this session)

🤖 Generated with Claude Code

Move Ogmios and Kupo back to the CardanoSolutions upstream and drop the
PV11 stopgap that bundled Linux x86_64 IntersectMBO builds into the arm64
image. Both components now ship native binaries for linux/amd64,
linux/arm64 and macOS arm64, so the Docker images no longer need x86_64
emulation and a native macOS install works.

Ogmios / Kupo
- Bump to Ogmios 7.0.0 and Kupo 2.12.0 from CardanoSolutions (.tar.gz -> .zip)
- Use real aarch64 assets for arm64 instead of emulated x86_64 ones
- Consolidate the duplicated OS/arch resolution into one helper that fails
  fast with an actionable message on unpublished platforms (macOS x86_64,
  Windows) instead of 404-ing
- Flatten the nested archive layout the macOS zips use (v7.0.0/bin/ogmios)
  so the binary always lands at <home>/bin/<name>
- Handle the Kupo tag/asset version mismatch (tag v2.12, asset v2.12.0)

Ogmios as the Yaci Store tx evaluator
- Enable Ogmios by default (ogmios_enabled=true) and use it to evaluate
  Plutus script costs, falling back to the embedded Scalus evaluator
- Wait for Ogmios to answer on /health before committing to the ogmios
  evaluator mode. The mode is baked into the Store process at startup and
  never re-evaluated, so a short-lived Ogmios would otherwise leave the
  Store unable to evaluate any script for the lifetime of the devnet
- Skip Ogmios/Kupo in yano-only mode; they need the Haskell node's n2c socket
- Don't let an Ogmios failure abort the startup chain before Yaci Store runs
- Treat enableOgmios as optional in the admin API so omitting it keeps the
  configured default rather than forcing Ogmios off

Fix prometheus.port never being applied
The property was read, stored on ClusterInfo and put into the Mustache
values map, but templates/configuration.json hardcoded 12798 with no
placeholder, so the value was silently dropped. A second cardano-node on
the host holding 12798 made the devnet node die at bind with the error
going to stderr, which node.sh does not capture.

Disable the Yano DuckLake projection archive
Yano pre15's devnet profile enables the projection archive by default.
DevKit reads nothing from Yano's history API, and the archive defaults to
./history relative to the working directory - the shared yano home - so it
outlived create-node -o and then failed the startup identity and coverage
guards. Turn it off and pin the dir inside the node folder so it is cleaned
up with the cluster if it is ever re-enabled.

Also bumps Yano to 0.1.0-pre15.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@satran004 satran004 closed this Sep 30, 2026
@satran004
satran004 deleted the feat/ogmios_kupo_update branch September 30, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant