Canvix — Free & open-source graphic design tool. A community-built Canva alternative with a drag-and-drop editor, templates, shapes, text, images & one-click export. Works on desktop, tablet & mobile.
TypeScript canva-alternativecanvasdesigndesign-tooldrag-and-dropeditorgraphic-designkonvanextjsopen-sourcereactself-hostedtemplatestypescript
fix(v0.34.3): the arm64 self-host build — openssl detection + the arch-agnostic toolchain guard (issue #99)
Ashiq Hussain Mir98d0015d1b79
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3cfd9a1..249427a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,6 +3,32 @@All notable changes to Canvix will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).+### Fixed — v0.34.3: the arm64 self-host build (issue #99) — openssl detection + the arch-agnostic toolchain guard++`docker compose up -d --build` failed on **linux/arm64** hosts at the+runner's migrate-toolchain step (`✗ migrate toolchain install failed`)+while everything before it built fine — two independent platform+quirks, both reported and root-caused by @wayangm on a real ARM64 VPS:++- **The runner stage lacked the `openssl` CLI package.** Prisma shells+ out to `openssl version` to pick its engine binaryTarget; without the+ package, detection fails on a bare `node:22-slim` image and Prisma+ defaults to the `openssl-1.1.x` target — a binary name bookworm+ (libssl3 only) cannot run. The runner now installs `openssl` alongside+ dumb-init/curl/ca-certificates, so detection resolves to+ `linux-arm64-openssl-3.0.x` on arm64 (and stays correct on x64).+- **The toolchain guard hardchecked the x86_64 binary name.**+ `test -x …schema-engine-debian-openssl-3.0.x` never passes on aarch64,+ where the binary is `schema-engine-linux-arm64-openssl-3.0.x`. The+ guard is now arch-agnostic (`ls …schema-engine-*`): it accepts+ whichever per-arch binary was downloaded and still fails loudly when+ none exists.++Dockerfile comments + docs/DOCKER.md updated to describe the per-arch+binary names. The CI docker job (amd64 build + compose smoke) keeps+validating the x64 path; the arm64 path is validated by the reporter's+host per this fix.+### feat(v0.34.2): AUTO-DELETE (optional), the plan that never dies, the Stop button that finally stopsTwo production reports from the same day, three fixes at the cause:diff --git a/Dockerfile b/Dockerfileindex 7fe0154..883e89b 100644--- a/Dockerfile+++ b/Dockerfile@@ -36,14 +36,17 @@# The app is rust-free (engineType="client": the generated client# compiles queries to WASM at runtime — prisma/schema.prisma).# Only `prisma migrate deploy` runs a native binary (the-# schema-engine, ~40 MB, prebuilt for debian-openssl-3.0.x on-# x64 and aarch64), and only at boot. So the runner carries-# exactly one native piece: the migration engine.+# schema-engine, ~40 MB, prebuilt per arch for x64+# (debian-openssl-3.0.x) and aarch64+# (linux-arm64-openssl-3.0.x)), and only at boot. So the runner+# carries exactly one native piece: the migration engine.## BASE IMAGE-# node:22-slim bookworm: Prisma ships the schema-engine for-# debian-openssl-3.0.x; slim keeps the glibc + openssl 3 the-# binary needs. The CI wall (lint-unit, e2e) runs Node 22 — the+# node:22-slim bookworm: Prisma ships the schema-engine for both+# arches' bookworm targets; slim keeps the glibc + openssl 3 the+# binary needs (the openssl CLI package is installed in the+# runner so Prisma's own detection picks the right one per arch —+# issue #99). The CI wall (lint-unit, e2e) runs Node 22 — the# runner matches the tested version.# ─────────────────────────────────────────────────────────────────@@ -85,10 +88,17 @@ WORKDIR /app# dumb-init: PID 1 signal handling (SIGTERM reaches node, so# `docker stop` drains in-flight requests instead of the 10 s kill).-# curl: the container healthcheck. From the slim image's own-# bookworm apt — no extra repos.+# curl: the container healthcheck. openssl: NOT for the runtime —+# the app's prisma client is WASM — but for Prisma's own libssl+# DETECTION at image build and boot (the CLI shells out to+# `openssl version` to pick the engine binaryTarget). Without the+# CLI package, detection fails on a bare slim image and Prisma+# defaults to the openssl-1.1.x target, which bookworm (libssl3+# only) cannot run — observed on aarch64 (issue #99), where the+# correct target is linux-arm64-openssl-3.0.x. From the slim+# image's own bookworm apt — no extra repos.RUN apt-get update \- && apt-get install -y --no-install-recommends dumb-init curl ca-certificates \+ && apt-get install -y --no-install-recommends dumb-init curl ca-certificates openssl \&& rm -rf /var/lib/apt/lists/*# Non-root. The app persists everything to Postgres (media included:@@ -123,7 +133,14 @@ RUN mkdir -p /opt/migrate \# the CLI's downloaded query-engine .so is dead weight in the image&& rm -f node_modules/@prisma/engines/libquery_engine-*.so.node \&& node -e "const v=require('effect/package.json').version;const p=v.split('.').map(Number);if(p[0]!==3||p[1]<22){console.error('effect '+v+' — override did not apply (Dependabot #9 regression)');process.exit(1)}console.log('effect override ok: '+v)" \- && test -x node_modules/@prisma/engines/schema-engine-debian-openssl-3.0.x \+ # v0.34.3 (issue #99): the guard is ARCH-AGNOSTIC. The binary name+ # is the per-arch binaryTarget — schema-engine-debian-openssl-3.0.x+ # on x64, schema-engine-linux-arm64-openssl-3.0.x on aarch64 — so+ # the old exact-name test could never pass on arm. The glob accepts+ # whichever one this arch resolved to (with the openssl CLI+ # installed above, detection is correct on both) and still fails+ # loudly when none exists.+ && ls node_modules/@prisma/engines/schema-engine-* >/dev/null 2>&1 \|| (echo "✗ migrate toolchain install failed" && exit 1)# schema + migrations for migrate deploy; the entrypoint runs thediff --git a/docs/DOCKER.md b/docs/DOCKER.mdindex 9d1ac16..d8652e1 100644--- a/docs/DOCKER.md+++ b/docs/DOCKER.md@@ -172,9 +172,13 @@ The Prisma split is the interesting part. The app is rust-free(`engineType="client"`: the generated client compiles queries to WASMat runtime — see `prisma/schema.prisma`), so the request path carriesno native binaries at all. Only `prisma migrate deploy` runs one (the-schema-engine, ~40 MB, prebuilt for debian-openssl-3.0.x), and only-at boot — which is why it lives in `/opt/migrate`, isolated from the-app's traced `node_modules`.+schema-engine, ~40 MB, prebuilt per arch — `debian-openssl-3.0.x` on+x64, `linux-arm64-openssl-3.0.x` on aarch64), and only at boot —+which is why it lives in `/opt/migrate`, isolated from the app's+traced `node_modules`. The runner image installs the `openssl` CLI+so Prisma's own libssl detection picks the right engine per arch,+and the toolchain guard accepts whichever per-arch binary was+downloaded (issue #99 — both were needed for aarch64 hosts).The migrate toolchain carries the same `effect` override as the app(`^3.22.1`, Dependabot #9 / GHSA-7589-6fvf-x4pw): `@prisma/config`