Error "Failed to create deployment" with no logs, no errors
brenthoover
PROOP

2 years ago

I am attempting to deploy an image that is hosted on Docker hub. The image works locally and is stored on a public repository on docker hub.

When I attempt to deploy either of my docker images I just get the error "Failed to create deployment" with no further information and no further logs so I have no idea what's happening and how I can fix it.

These are the only logs I see which give me no usable information:

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

Container failed to start

Failed to create deployment.

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

What can I do here?

View Deploy details

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

Solved

8 Replies

2 years ago

Hi, it seems the :latest tag on your image is causing a manifest error.

I was able to confirm this locally by attempting to pull the image: docker pull docker.io/brenthoover/wolf-server -> Error response from daemon: manifest for brenthoover/wolf-server:latest not found: manifest unknown: manifest unknown.

I'd suggest fixing the image, trying to pull it locally, and trying again.


Status changed to Awaiting User Response Railway over 1 year ago


brenthoover
PROOP

2 years ago

Yes, because I do not use a latest tag, I use a tag based on the commit hash. I don't think I put in latest as a tag when I entered the DH image name


Status changed to Awaiting Railway Response Railway over 1 year ago


2 years ago

Could you add a tag ? We default to pulling latest unless specified.

Also, do you have any reason for not building your dockerfile on our build system ? this would solve your tagging issue and keep it linked between a commit->deploy.

Docs for this are here: https://docs.railway.app/guides/dockerfiles


Status changed to Awaiting User Response Railway over 1 year ago


brenthoover
PROOP

2 years ago

I don't think I can build on your platform because my project includes both the client and the server and so the Dockerfiles are not at the root they are in server and client directories respectively.


Status changed to Awaiting Railway Response Railway over 1 year ago


2 years ago

Please check out the Docs Nico linked, they show you how to define a RAILWAY_DOCKERFILE_PATH variable for when you don't have the Dockerfile in the root.


Status changed to Awaiting User Response Railway over 1 year ago


brenthoover
PROOP

2 years ago

That doc outlines how to use a non-standard path, but I don't see where it defines how I can build multiple docker images from a single project?


Status changed to Awaiting Railway Response Railway over 1 year ago


2 years ago

You would simply deploy multiple services for that, they would all deploy from the same GitHub repo.

Each service would have the applicable Dockerfile path set via that environment variable.


Status changed to Awaiting User Response Railway over 1 year ago


brenthoover
PROOP

2 years ago

Ok, will take a look at that. For now just adding a 'latest' tag seemed to fix my issue and that fits better with my standard flow. Thanks


Status changed to Awaiting Railway Response Railway over 1 year ago


Status changed to Solved chandrika over 1 year ago


Loading...