trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

bug: Failed to fetch environment variables: 200 Validation error: Required

Open larp0 opened this issue 7 months ago • 4 comments

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

larp0 avatar Jun 03 '25 08:06 larp0

same issue here. any solution?

spidy0x0 avatar Jun 08 '25 00:06 spidy0x0

same here.

awarns-impower avatar Jun 10 '25 02:06 awarns-impower

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 avatar Jun 10 '25 10:06 spidy0x0

@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

LeoKaynan avatar Oct 16 '25 15:10 LeoKaynan