Error when trying to redeploy
pythonando
HOBBYOP

a year ago

I have the following error when trying to send updates to my APP, I also tried to redeploy the app that is working and running and the error also occurs.

Solved$10 Bounty

Pinned Solution

clashing
HOBBY

a year ago

  • python:3.8.10 is based on Debian Buster.
  • Debian moved Buster’s old packages to the archive repository.
  • apt-get update can’t find buster-updates → exit code 100

Use a newer base image

Change your Dockerfile's first line (image reference) to:

FROM python:3.8-slim-bookworm

That will help to resolve the issue. I hope that helps

10 Replies

pythonando
HOBBYOP

a year ago

3ba430a8-05c7-4204-a9f8-68e3384f9370


clashing
HOBBY

a year ago

Can you please provide the screenshot of the error, it's missing in the initial post. And also, do provide the snippet of the server file, so that we can chek whether the configuaration is correct or not!


pythonando
HOBBYOP

a year ago

Error:

1398475837875163166


pythonando
HOBBYOP

a year ago

Dockerfile


WORKDIR /app

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

RUN pip install --upgrade pip
RUN apt-get update \
    && apt-get -y install libpq-dev gcc


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


COPY . .

RUN chmod +x  /app/entrypoint.prod.sh

CMD ["/app/entrypoint.prod.sh"]```


clashing
HOBBY

a year ago

  • python:3.8.10 is based on Debian Buster.
  • Debian moved Buster’s old packages to the archive repository.
  • apt-get update can’t find buster-updates → exit code 100

Use a newer base image

Change your Dockerfile's first line (image reference) to:

FROM python:3.8-slim-bookworm

That will help to resolve the issue. I hope that helps


clashing

* `python:3.8.10` is based on Debian Buster. * Debian moved Buster’s old packages to the **archive** repository. * `apt-get update` can’t find `buster-updates` → exit code 100 Use a newer base image Change your Dockerfile's first line (image reference) to: `FROM python:3.8-slim-bookworm` That will help to resolve the issue. I hope that helps

clashing
HOBBY

a year ago

Did that helped, pythonando


clashing

* `python:3.8.10` is based on Debian Buster. * Debian moved Buster’s old packages to the **archive** repository. * `apt-get update` can’t find `buster-updates` → exit code 100 Use a newer base image Change your Dockerfile's first line (image reference) to: `FROM python:3.8-slim-bookworm` That will help to resolve the issue. I hope that helps

clashing
HOBBY

a year ago

Any progress, pythonando?


pythonando
HOBBYOP

a year ago

Yes, resolved.


clashing
HOBBY

a year ago

Great, please click on ACCEPT SOLUTION for the post which helped you to resolve this issue.

Visit the help station thread to do the same: https://station.railway.com/questions/error-when-trying-to-redeploy-bf7a2db1


clashing
HOBBY

a year ago

Thanks for marking the solution


Status changed to Solved christian 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...