bug: Failed to fetch environment variables: 200 Validation error: Required
Provide environment information
#19 [final 1/3] WORKDIR /app
#19 CACHED
#20 [final 2/3] COPY --from=build --chown=bun:bun /app ./
#20 CANCELED
#21 [indexer 2/2] RUN bun run /app/.npm/_npx/f51a09bd0abf5f10/node_modules/trigger.dev/dist/esm/entryPoints/deploy-index-controller.mjs
#0 0.344 Failed to index deployment {
#0 0.344 name: "Error",
#0 0.344 message: "Failed to fetch environment variables: 200 Validation error: Required",
#0 0.344 stack: "Error: Failed to fetch environment variables: 200 Validation error: Required\n at <anonymous> (/app/.npm/_npx/f51a09bd0abf5f10/node_modules/trigger.dev/dist/esm/entryPoints/deploy-index-controller.mjs:468:17)\n at processTicksAndRejections (:12:39)",
#0 0.344 stderr: "",
#0 0.344 }
#21 ERROR: process "/bin/sh -c bun run /app/.npm/_npx/f51a09bd0abf5f10/node_modules/trigger.dev/dist/esm/entryPoints/deploy-index-controller.mjs" did not complete successfully: exit code: 1
------
> [indexer 2/2] RUN bun run /app/.npm/_npx/f51a09bd0abf5f10/node_modules/trigger.dev/dist/esm/entryPoints/deploy-index-controller.mjs:
#0 0.344 Failed to index deployment {
#0 0.344 name: "Error",
#0 0.344 message: "Failed to fetch environment variables: 200 Validation error: Required",
#0 0.344 stack: "Error: Failed to fetch environment variables: 200 Validation error: Required\n at <anonymous> (/app/.npm/_npx/f51a09bd0abf5f10/node_modules/trigger.dev/dist/esm/entryPoints/deploy-index-controller.mjs:468:17)\n at processTicksAndRejections (:12:39)",
#0 0.344 stderr: "",
#0 0.344 }
------
Error: failed to solve: process "/bin/sh -c bun run /app/.npm/_npx/f51a09bd0abf5f10/node_modules/trigger.dev/dist/esm/entryPoints/deploy-index-controller.mjs" did not complete successfully: exit code: 1% ➜ uwularpy git:(main) ✗
Describe the bug
it was building just now and now its not, why?
Reproduction repo
idk why
To reproduce
idk how
Additional information
No response
same issue here. any solution?
same here.
I fixed it by adding my environment variables into the self hosted trigger.dev dashboard
On Tue, 10 Jun 2025 at 2:21 AM, Andy Warns @.***> wrote:
awarns-impower left a comment (triggerdotdev/trigger.dev#2142) https://github.com/triggerdotdev/trigger.dev/issues/2142#issuecomment-2957498200
same here.
— Reply to this email directly, view it on GitHub https://github.com/triggerdotdev/trigger.dev/issues/2142#issuecomment-2957498200, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJVIRDOTD2UT5NIMZ6IONB33CY6K5AVCNFSM6AAAAAB6O7W4B2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNJXGQ4TQMRQGA . You are receiving this because you commented.Message ID: @.***>
@spidy0x0 If this fixed the problem, please close the issue. Tip: You don't need to manually define the variables in the dashboard. https://trigger.dev/docs/config/extensions/syncEnvVars#sync-env-vars