I’m building a web service and I get this error on the build phase:
Build Error: Job Terminated
Component Issues
ws failed to build
And these are the last logs before the error:
[2023-01-06 16:11:35] │ Running custom build command: yarn nx run models:generate && yarn nx build ws --prod
[2023-01-06 16:11:36] │ yarn run v1.22.19
[2023-01-06 16:11:36] │ $ /workspace/node_modules/.bin/nx run models:generate
[2023-01-06 16:11:39] │
[2023-01-06 16:11:39] │ > nx run models:generate
[2023-01-06 16:11:39] │
[2023-01-06 16:11:41] │ > Nx Prisma Generating Client
[2023-01-06 16:11:41] │ [command]/tmp/yarn--1673021496365-0.10943475819062609/yarn prisma generate --schema=libs/models/src/prisma/schema.prisma
$ /workspace/node_modules/.bin/prisma generate --schema=libs/models/src/prisma/schema.prisma
[2023-01-06 16:11:44] │ Environment variables loaded from .env
[2023-01-06 16:11:44] │ Prisma schema loaded from libs/models/src/prisma/schema.prisma
[2023-01-06 16:11:46] │ ✔ Generated Prisma Client (4.8.0 | library) to ./node_modules/@prisma/client in 1.41s
[2023-01-06 16:11:46] │ You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
[2023-01-06 16:11:46] │ ```
[2023-01-06 16:11:46] │ import { PrismaClient } from '@prisma/client'
[2023-01-06 16:11:46] │ const prisma = new PrismaClient()
[2023-01-06 16:11:46] │ ```
[2023-01-06 16:11:46] │
[2023-01-06 16:11:46] │
[2023-01-06 16:11:46] │
[2023-01-06 16:11:46] │ > NX Successfully ran target generate for project models
[2023-01-06 16:11:46] │
[2023-01-06 16:11:46] │
[2023-01-06 16:11:46] │ View logs and investigate cache misses at https://nx.app/runs/KXmK7Hc6aV
[2023-01-06 16:11:46] │
[2023-01-06 16:11:47] │ Done in 10.72s.
[2023-01-06 16:11:47] │ yarn run v1.22.19
[2023-01-06 16:11:47] │ $ /workspace/node_modules/.bin/nx build ws --prod
[2023-01-06 16:11:47] │
[2023-01-06 16:11:47] │ > nx run ws:build:production
[2023-01-06 16:11:47] │
[2023-01-06 16:12:13] │ chunk (runtime: main) main.js (main) 21.1 KiB (javascript) 937 bytes (runtime) [entry] [rendered]
[2023-01-06 16:12:13] │ webpack compiled successfully (4d135dcbae6414bf)
[2023-01-06 16:12:14] │
[2023-01-06 16:12:14] │
[2023-01-06 16:12:14] │
[2023-01-06 16:12:14] │ > NX Successfully ran target build for project ws
[2023-01-06 16:12:14] │
[2023-01-06 16:12:14] │
[2023-01-06 16:12:14] │ View logs and investigate cache misses at https://nx.app/runs/dd7tvTpFka
[2023-01-06 16:12:14] │
[2023-01-06 16:12:14] │ Done in 27.01s.
[2023-01-06 16:12:15] ╰───────────────────────────────────╼
[2023-01-06 16:12:15]
[2023-01-06 16:12:15] ╭──────────── app upload ───────────╼
[2023-01-06 16:12:15] │ › uploading app container image to DOCR
[2023-01-06 16:12:17] │ Adding layer 'heroku/nodejs-engine:nodejs'
[2023-01-06 16:12:19] │ Adding layer 'heroku/nodejs-engine:yarn'
[]
As you can see, there’s almost no way to debug this just from the logs.
Also, it’s worth noting that https://docs.digitalocean.com/products/app-platform/reference/error-codes/ doesn’t even list the Job Terminated error code.
Do you guys have any idea how to debug this or how to fix it?
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!