Railpack builds fail with "secret RAILWAY_GIT_REPO_OWNER not found"
dontknowcode-nvt
FREEOP

2 months ago

Hi Railway team,

Deployments from the Railway CLI are consistently failing during the Railpack build stage with:

Build Failed: build daemon returned an error < failed to solve: secret RAILWAY_GIT_REPO_OWNER not found >

This appears to happen before the application is built or started.

What I have verified:

  • Environment: staging
  • Deployment method: railway up
  • Railway CLI: 5.37.3 (Homebrew)
  • Railpack: 0.36.1
  • Python detected successfully by Railpack
  • The failure occurs at install mise packages: python
  • The same error occurs across multiple services in the same project.
  • I reproduced it on both oauth-web and retention-cleanup.
  • Existing running deployments remain healthy.
  • No application/database/environment changes are required for the failure to occur.

Relevant build log:

scheduling build on Metal builder "builder-iiwzrh"

using build driver railpack-v0.36.1

↳ Detected Python

↳ Using pip

...

install mise packages: python

Build Failed: build daemon returned an error < failed to solve: secret RAILWAY_GIT_REPO_OWNER not found >

I retried the oauth-web deployment and received exactly the same error, then tested a different service (retention-cleanup) and reproduced the same failure.

Could you please check whether RAILWAY_GIT_REPO_OWNER is expected to be injected internally by Railway/Railpack, and whether there is an issue with the build metadata/secrets for this project or the Metal builder?

I have not manually created a RAILWAY_GIT_REPO_OWNER variable because it appears to be Railway-internal metadata.

Project ID: d1b95395-d34d-4bea-8b1a-123b00de6b6a

Failed deployments:

  • oauth-web: cca467d0-1f1d-4b4a-b681-ea8687517b7f
  • oauth-web retry: c09777af-5e57-4dbd-b26e-11042e8f662a
  • retention-cleanup: 13de2ca2-8512-4266-92eb-27cca30d0966

Thanks.

Closed$10 Bounty

13 Replies

Railway
BOT

2 months ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway • about 2 months ago


santigut123
PRO

2 months ago

Having the same issue here with my Go Project


rounakmcs
FREE

2 months ago

same issue


2 months ago

Hey there!

Looking into this now. Will have more info soon


Status changed to Awaiting User Response Railway • about 2 months ago


lennarlehestik
HOBBY

2 months ago

Same issue.


Status changed to Awaiting Railway Response Railway • about 2 months ago


amandeepji14
HOBBY

2 months ago

same issue


2 months ago

For anyone hitting the issue, how are you triggering a build?


Status changed to Awaiting User Response Railway • about 2 months ago


noahd

For anyone hitting the issue, how are you triggering a build?

lennarlehestik
HOBBY

2 months ago

I’ve triggered builds exclusively via railway up from the local CLI since day one. It worked consistently until this started happening, with no change to the deployment method. The failure occurs on the Metal builder during install mise packages: node, before the application build begins.


Status changed to Awaiting Railway Response Railway • about 2 months ago


Anonymous
PRO

2 months ago

same for me as well for a next.js project, but it seems to fail before going into next.js's build.

for me, a github action triggers deployment via:

  • name: Deploy

     run: railway up --service "${{ env.WEB_SERVICE_NAME }}" --ci

somewhere in my action.


2 months ago

This is on us appreciate raising. It seems to be isolated exactly to railway up using railpack. All other forms of deployment via dockerfile, github, etc should be perfectly fine.

You can track the issue here https://status.railway.com/incident/RZNJOBXD


Status changed to Awaiting User Response Railway • about 2 months ago


rounakmcs
FREE

2 months ago

please try to fix Asap


Status changed to Awaiting Railway Response Railway • about 2 months ago


Status changed to Awaiting User Response noahd • about 2 months ago


2 months ago

Hey!

Are you able to try triggering a fresh build? Our fix has rolled out would love to see if its working now


noahd

Hey! Are you able to try triggering a fresh build? Our fix has rolled out would love to see if its working now

rounakmcs
FREE

2 months ago

yes


Status changed to Awaiting Railway Response Railway • about 2 months ago


noahd

Hey! Are you able to try triggering a fresh build? Our fix has rolled out would love to see if its working now

Anonymous
PRO

2 months ago

Hi, a new deployment worked in my case. Thanks for your prompt action on this.


Status changed to Closed Railway • about 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...