Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azd up fails at packaging service web #67

Closed
Kelares opened this issue Jul 25, 2024 · 3 comments
Closed

Azd up fails at packaging service web #67

Kelares opened this issue Jul 25, 2024 · 3 comments

Comments

@Kelares
Copy link

Kelares commented Jul 25, 2024

Description

What is wrong or what would you like to see improved?
After doing azd up it seems that packaging service web (Building Docker image) fails.

(x) Failed: Packaging service web

ERROR: error executing step command 'package --all': failed building service 'web': building container: web at .: building image: exit code: 1, stdout: , stderr: #0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 562B done
#1 DONE 0.0s

#2 [internal] load metadata for mcr.microsoft.com/devcontainers/python:3.12-bullseye
#2 DONE 0.1s

#3 [internal] load .dockerignore
#3 transferring context: 61B done
#3 DONE 0.0s

#4 [1/9] FROM mcr.microsoft.com/devcontainers/python:3.12-bullseye@sha256:2ff3e72b9cd16d5492ae85a0ff1741530131c4ec6b8f436f037a7e9c57a721eb
#4 CACHED

#5 [internal] load build context
#5 transferring context: 9.97MB 0.1s done
#5 DONE 0.1s

#6 [2/9] RUN apt-get update && export DEBIAN_FRONTEND=noninteractive     && apt-get -y install --no-install-recommends postgresql-client     && apt-get update && apt-get install -y xdg-utils     && apt-get clean -y && rm -rf /var/lib/apt/lists/*
#6 50.47 Err:1 http://deb.debian.org/debian bullseye InRelease
#6 50.47   Temporary failure resolving 'deb.debian.org'
#6 55.46 Err:2 https://dl.yarnpkg.com/debian stable InRelease
#6 55.46   Temporary failure resolving 'dl.yarnpkg.com'
#6 95.51 Err:3 http://deb.debian.org/debian-security bullseye-security InRelease
#6 95.51   Temporary failure resolving 'deb.debian.org'
#6 140.6 Err:4 http://deb.debian.org/debian bullseye-updates InRelease
#6 140.6   Temporary failure resolving 'deb.debian.org'
#6 140.6 Reading package lists...
#6 140.6 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'deb.debian.org'
#6 140.6 W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease  Temporary failure resolving 'deb.debian.org'
#6 140.6 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease  Temporary failure resolving 'deb.debian.org'
#6 140.6 W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease  Temporary failure resolving 'dl.yarnpkg.com'
#6 140.6 W: Some index files failed to download. They have been ignored, or old ones used instead.
#6 140.6 Reading package lists...
#6 140.6 Building dependency tree...
#6 140.6 Reading state information...
#6 140.6 E: Unable to locate package postgresql-client
#6 ERROR: process "/bin/sh -c apt-get update && export DEBIAN_FRONTEND=noninteractive     && apt-get -y install --no-install-recommends postgresql-client     && apt-get update && apt-get install -y xdg-utils     && apt-get clean -y && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
------
 > [2/9] RUN apt-get update && export DEBIAN_FRONTEND=noninteractive     && apt-get -y install --no-install-recommends postgresql-client     && apt-get update && apt-get install -y xdg-utils     && apt-get clean -y && rm -rf /var/lib/apt/lists/*:
140.6 Reading package lists...
140.6 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'deb.debian.org'
140.6 W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease  Temporary failure resolving 'deb.debian.org'
140.6 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease  Temporary failure resolving 'deb.debian.org'
140.6 W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease  Temporary failure resolving 'dl.yarnpkg.com'
140.6 W: Some index files failed to download. They have been ignored, or old ones used instead.
140.6 Reading package lists...
140.6 Building dependency tree...
140.6 Reading state information...
140.6 E: Unable to locate package postgresql-client
------

 1 warning found (use docker --debug to expand):
 - JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 19)
Dockerfile:3
--------------------
   2 |     
   3 | >>> RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
   4 | >>>     && apt-get -y install --no-install-recommends postgresql-client \
   5 | >>>     && apt-get update && apt-get install -y xdg-utils \
   6 | >>>     && apt-get clean -y && rm -rf /var/lib/apt/lists/*
   7 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && export DEBIAN_FRONTEND=noninteractive     && apt-get -y install --no-install-recommends postgresql-client     && apt-get update && apt-get install -y xdg-utils     && apt-get clean -y && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Environment

Describe your OS and dev environment (Codespaces, Dev Container, etc):

Dev container rag-postgres-openai-python_devcontainer-app:latest

@pamelafox
Copy link
Contributor

@Kelares Hm, it seems like a network error?

#6 50.47 Err:1 http://deb.debian.org/debian bullseye InRelease
#6 50.47 Temporary failure resolving 'deb.debian.org'
#6 55.46 Err:2 https://dl.yarnpkg.com/debian stable InRelease
#6 55.46 Temporary failure resolving 'dl.yarnpkg.com'
#6 95.51 Err:3 http://deb.debian.org/debian-security bullseye-security InRelease
#6 95.51 Temporary failure resolving 'deb.debian.org'
#6 140.6 Err:4 http://deb.debian.org/debian bullseye-updat

Have you tried running it again to see if the network error is persistent?

@pamelafox
Copy link
Contributor

@pamelafox
Copy link
Contributor

We now have remoteBuild: true in azure.yaml, so Docker doesn't need to run on your own machine. That should resolve this issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants