There was an error deploying from source. Dockerfile not detected
raigato
PROOP

3 months ago

Hello,

I duplicated one of the env in my repo but somehow I cannot deploy from my repo I get "There was an error deploying from source." message.

The thing that look weird is that the Dockerfile I use does not seem to be detected on this env. I set the RAILWAY_DOCKERFILE_PATH env as I have multiple dockerfile and it works on the other envs

Solved

14 Replies

Railway
BOT

3 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


david
EMPLOYEE

3 months ago

Have you ensured that the RAILWAY_DOCKERFILE_PATH is correctly set in the environment where the error occurs?

Should verify that the path is correct and that the Dockerfile is accessible at that path. Additionally, check if there are any differences in the environment settings between the working and non-working environments.


Status changed to Awaiting User Response Railway 3 months ago


raigato
PROOP

3 months ago

Yes, the variable is the same as our working environments. The only difference seems to be the Dockerfile not being detected


Status changed to Awaiting Railway Response Railway 3 months ago


jake
EMPLOYEE

3 months ago

Could you please link the failed deployment?


Status changed to Awaiting User Response Railway 3 months ago


raigato
PROOP

3 months ago

Actually I do not have a failed deployment. When I try to deploy from source for the first time on the env, I get "There was an error deploying from source" error.


Status changed to Awaiting Railway Response Railway 3 months ago


jake
EMPLOYEE

3 months ago

You might want to double check your config in Service -> Settings, disconnect and reconnect the repo


Status changed to Awaiting User Response Railway 3 months ago


raigato
PROOP

3 months ago

Thank you. It appears that somehow something changed in the github config and I was not able to link back the repo. It is working after reconnecting the repo with our github admins


Status changed to Awaiting Railway Response Railway 3 months ago


raigato
PROOP

3 months ago

However, I do need one of our github admin to be able to switch the connected branch which is kind of annoying. We never had this issue before


jake
EMPLOYEE

3 months ago

I believe changing config has always been an admin action?


Status changed to Awaiting User Response Railway 3 months ago


raigato
PROOP

3 months ago

Before they add to validate access to the repo once and afterwards we could just switch back and forth repos on Railway projects. I can be also a new config change on our side but I am not sure how as the repos are accessible to Railway.

In my case, I do have the ability to list all branches of the repo on Railway UI but when I select another one and I deploy, no deploy is triggered

For example on Vercel we do not have this issue and the repo access process is pretty much the same


Status changed to Awaiting Railway Response Railway 3 months ago


jake
EMPLOYEE

3 months ago

Changing branches doesn't trigger a deploy, so that's expected


Status changed to Awaiting User Response Railway 3 months ago


raigato
PROOP

3 months ago

Actually there is a button prompting for a deploy when switching branch. But after further tests, it appears I cannot trigger any deploy somehow on any project and any env. For example when I update an env variable. This is critical for us as I won't get github admin right

Basically, clicking on the "deploy" button doesn't do anything anymore


Status changed to Awaiting Railway Response Railway 3 months ago


jake
EMPLOYEE

3 months ago

Unfortunately that's the behavior we have ATM. You can use the CLI to workaround this by setting up GitHub actions based on more complex workflows


Status changed to Awaiting User Response Railway 3 months ago


raigato
PROOP

2 months ago

Was able to fix it. Actually, I logged out and logged in and it kind of resynced the github settings and I can work as usual now.

Thank you so much on your help on that


Status changed to Awaiting Railway Response Railway 3 months ago


Status changed to Solved raigato 3 months ago


Loading...