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

API Docker Images are failing to build #2411

Closed
zackkrida opened this issue Jun 15, 2023 · 0 comments · Fixed by #2410
Closed

API Docker Images are failing to build #2411

zackkrida opened this issue Jun 15, 2023 · 0 comments · Fixed by #2410
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟥 priority: critical Must be addressed ASAP 🧱 stack: api Related to the Django API

Comments

@zackkrida
Copy link
Member

Description

The api and api_nginx Docker images are both unable to build due to a failed step in the build process.

This line:

COPY --from=awf /deps /

is failing to work with the following error:

ERROR: cannot copy to non-directory: /var/lib/buildkit/runc-overlayfs/cachemounts/buildkit4099412824/lib

This is seemingly related to either changes in the base image or changes to realies/audiowaveform:latest which have caused an incompatibility.

In 6cd8e39 (#2410) I added logs to the Dockerfile to help debug this. There I can confirm the root which the contents of deps are copied into, contains the following:

#19 [api  3/12] RUN ls -la /
#19 0.094 lrwxrwxrwx   1 root root    7 Jun 12 00:00 bin -> usr/bin
#19 0.094 lrwxrwxrwx   1 root root    7 Jun 12 00:00 lib -> usr/lib
#19 0.094 lrwxrwxrwx   1 root root    9 Jun 12 00:00 lib32 -> usr/lib32
#19 0.094 lrwxrwxrwx   1 root root    9 Jun 12 00:00 lib64 -> usr/lib64
#19 0.094 lrwxrwxrwx   1 root root   10 Jun 12 00:00 libx32 -> usr/libx32

and the deps/ directory contents are:

#17 [awf 3/3] RUN find /deps -print
#0 0.120 /deps
#0 0.120 /deps/lib
#0 0.120 /deps/lib/ld-musl-x86_64.so.1
#0 0.120 /deps/usr
#0 0.120 /deps/usr/lib
#0 0.120 /deps/usr/lib/libstdc++.so.6
#0 0.120 /deps/usr/lib/libgcc_s.so.1

When Docker tries to copy /deps into /, it encounters a conflict between directories (/lib and /usr) and these symbolic links (/lib -> usr/lib) with the same names.

@zackkrida zackkrida added 🟥 priority: critical Must be addressed ASAP 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work 🛠 goal: fix Bug fix 💻 aspect: code Concerns the software code in the repository 🧱 stack: api Related to the Django API 🧱 stack: mgmt Related to repo management and automations labels Jun 15, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Openverse Backlog Jun 15, 2023
@zackkrida zackkrida mentioned this issue Jun 15, 2023
8 tasks
@krysal krysal removed 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work 🧱 stack: mgmt Related to repo management and automations labels Jun 15, 2023
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Openverse Backlog Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟥 priority: critical Must be addressed ASAP 🧱 stack: api Related to the Django API
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants