R
Railway•14mo ago
aaron

Docker image builds but stalls on deploy with no error

Previous attempts to build would go on for over 10 minutes after the container was built and then eventually time out. Now the container shows as built but the deployment status just says Waiting In both cases, no logs are displayed in Deploy Logs, Only the message:
No deployment logs. All output sent to stdout will be displayed here
Project ID: 855986b0-ece5-4720-97b2-572a841362de
29 Replies
Percy
Percy•14mo ago
Project ID: 855986b0-ece5-4720-97b2-572a841362de
Brody
Brody•14mo ago
what is the source of this service
aaron
aaronOP•14mo ago
Github Its a python application, hosted on github, deployed via a Dockerfile
Brody
Brody•14mo ago
send the dockerfile please
aaron
aaronOP•14mo ago
And here is the last deploy id in case its useful: 7b9357b1-f5bc-477c-963f-51d44c642f9d
Brody
Brody•14mo ago
these are multiple dockerfiles right
aaron
aaronOP•14mo ago
No, that is a single Dockerfile. By default the last stage is targeted which is called runner. The previous stages are only targeted by other tools for use with devcontainers, and integration tests. But the Dockerfile hasn't changed since the previous working deployment which was earlier today.
Brody
Brody•14mo ago
wdym targeted, how would you be telling railway what stage to run
aaron
aaronOP•14mo ago
Its a multi stage build file with multiple targets. By default, a Dockerfile runs to the bottom so railway would use the stage at the bottom. But when using tools e.g. docker compose, you can explicitly target an intermediate stage and run the container from there. https://docs.docker.com/build/building/multi-stage/#stop-at-a-specific-build-stage
Docker Documentation
Multi-stage builds
Learn about multi-stage builds and how you can use them to improve your builds and get smaller images
Brody
Brody•14mo ago
try a simpler dockerfile
FROM python:3.11-slim-bookworm as builder

ENV PYTHONUNBUFFERED=1

WORKDIR /app

COPY ./requirements/requirements.txt ./

RUN pip install --no-cache-dir -r requirements.txt

COPY . ./

CMD uvicorn madeline.main:app --host 0.0.0.0 --port $PORT
FROM python:3.11-slim-bookworm as builder

ENV PYTHONUNBUFFERED=1

WORKDIR /app

COPY ./requirements/requirements.txt ./

RUN pip install --no-cache-dir -r requirements.txt

COPY . ./

CMD uvicorn madeline.main:app --host 0.0.0.0 --port $PORT
aaron
aaronOP•14mo ago
Same results. It builds and then nothing happens. Doesn't show any signs of it attempting to run - no logs from the Deploy logs
Brody
Brody•14mo ago
what about the build logs?
aaron
aaronOP•14mo ago
The build logs look fine. In the list of deployments, the status just says "Waiting"
Brody
Brody•14mo ago
your build logs are cut off, use this https://bookmarklets.up.railway.app/log-downloader/
Brody
Brody•14mo ago
and now its just saying "waiting" correct?
aaron
aaronOP•14mo ago
Yes. Before that, it would say deploying but go on from anywhere between 10 up to 50 minutes. But in both cases, no logs would appear in the deploy logs
Brody
Brody•14mo ago
@thomas yeah something is for sure wrong with railway
aaron
aaronOP•14mo ago
We have created a new branch on github at the last commit that deployed successfully, and pointed the railway project to that new branch. Even that did not deploy.
Brody
Brody•14mo ago
okay let's wait for thomas
thomas
thomas•14mo ago
Weird looking into this now, for my reference are you guys all on a team? There is no wide spread issue with the builder that we know of just yet so I am trying to figure out a root cause Can you pin a list of these hacked in features for me sometime Brody. I am just interested to see what you built because we didn't yet haha
aaron
aaronOP•14mo ago
I don't know the other posted who opened a similar thread -- I only replied there because it seemed like we were facing the same issue.
thomas
thomas•14mo ago
good to know We are looking into this further, it does not appear to be wide spread but it is on our side. We are experiencing an issue that is affecting a small number of users. The team is working on it. We have created an incident you can subscribe to here for updates on when services for you will be restored https://railway.instatus.com/clnp2ir5l43412bfn1q83e0bbn
aaron
aaronOP•14mo ago
I don't think we actually have anything of value in the volume but we do need a volume. If we removed the volume and recreated it, would that unblock it?
thomas
thomas•14mo ago
no, that isn't very likely, the underlying infrastructure is giving us errors.
jr
jr•14mo ago
@aaron Can you please kick off another deploy
aaron
aaronOP•14mo ago
Its working 🥳 There are still no logs showing in deploy logs though
jr
jr•14mo ago
should be back now 🙂
aaron
aaronOP•14mo ago
Great! Thanks for your help getting it resolved
Want results from more Discord servers?
Add your server