Build failing with "secret ID missing for '' environment variable" - no config files causing it
ggilmartorres
FREEOP

2 months ago

My deploy is failing during the build process with the error:

Build Failed: build daemon returned an error < failed to solve: secret ID missing for "" environment variable >

I don't have a railway.json, Dockerfile, or nixpacks.toml in my repository (confirmed via GitHub API - none of these files exist).

I already tried:

  1. Removing a duplicate ACCESS_CODE variable value that contained a trailing % character - no change.
  2. Using Railway's own Agent to diagnose - it found and removed a variable called RESEND_API_KEY that had a leading space in its name, then redeployed - the exact same error still occurs.

Service: maquina-de-vendas-servidor

Project: radiant-growth

Solved

1 Replies

Railway
BOT

2 months ago

The environment variable RESEND_API_KEY (with a leading space in the name) is still present on this service, it was not successfully removed. That malformed variable name is what causes the build failure. Delete it from the service's Variables tab, then redeploy.


Status changed to Awaiting User Response Railway • 2 months ago


Railway
BOT

2 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway • about 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...