v1.2.6
v1.2.6 — Fix backend crash on desktop launch
Section titled “v1.2.6 — Fix backend crash on desktop launch”Released: 2026-05-15
What’s fixed
Section titled “What’s fixed”Backend crashes when launched from /Applications
Section titled “Backend crashes when launched from /Applications”After v1.2.5 fixed the Prisma migration in lib.rs, the backend still failed to start. Dashboard showed “Failed to load dashboard data” and eventually “One of Strata’s background services did not become healthy.”
Root cause: backend/src/main.ts calls execSync('npx prisma migrate deploy') inside NestJS bootstrap. When Tauri spawns the backend process, macOS strips PATH to /usr/bin:/bin:/usr/sbin:/sbin — npx is not found → backend crashes immediately → all 30 health checks fail.
There were two separate places calling npx prisma:
src-tauri/src/lib.rs— fixed in v1.2.5backend/src/main.ts— fixed in this release
Fix: replace execSync('npx ...') with execFileSync(process.execPath, [prismaJs, ...]):
process.execPath= absolute path to the running Node binary — no PATH neededprismaJs = path.join(__dirname, '..', 'node_modules', 'prisma', 'build', 'index.js')— local prisma, no PATH needed
Works in all modes (desktop, Docker, npm run start:dev).