No clear error message but deployment fails
anshap1719
HOBBYOP

2 years ago

=========================

Container failed to start

=========================

Failed to start deployment.

If this error persists, please reach out to the Railway team at https://help.railway.app.

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

4 Replies

2 years ago

Per our logs -

executable file `/app/data/portfolio` not found in $PATH: No such file or directory

Seems like your volume is overwriting that path.


anshap1719
HOBBYOP

2 years ago

Hi brody,

Thanks for your reply. Could you help me with this? I only have a Dockerfile (no docker-compose). What's the best way to mount volume and put build files into it at the runner stage? I tried the "How to use a volume guide", but I didn't find it helpful in this case
.


2 years ago

That's not something you can do as the volume is not available during build, nor would it be what you want to do.

The issue here as shown by the start command error message, is that your start command lays within the volume's directory.


anshap1719
HOBBYOP

2 years ago

Ah I see. Thanks for clarifying.


Loading...