Error when trying to redeploy
pythonando
HOBBYOP

8 months 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

8 months 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

8 months ago

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


clashing
HOBBY

8 months 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

8 months ago

Error:

1398475837875163100


pythonando
HOBBYOP

8 months ago

Dockerfile
```FROM python:3.8.10

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

8 months 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 100Use a newer base imageChange your Dockerfile's first line (image reference) to:FROM python:3.8-slim-bookwormThat will help to resolve the issue. I hope that helps

clashing
HOBBY

7 months 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 100Use a newer base imageChange your Dockerfile's first line (image reference) to:FROM python:3.8-slim-bookwormThat will help to resolve the issue. I hope that helps

clashing
HOBBY

7 months ago

Any progress, pythonando?


pythonando
HOBBYOP

7 months ago

Yes, resolved.


clashing
HOBBY

7 months 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

7 months ago

Thanks for marking the solution


Status changed to Solved christian 7 months ago


Loading...