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

[Bug]: Occasional failures in building locales #15235

Open
1 task done
KevinMind opened this issue Dec 10, 2024 · 1 comment
Open
1 task done

[Bug]: Occasional failures in building locales #15235

KevinMind opened this issue Dec 10, 2024 · 1 comment

Comments

@KevinMind
Copy link
Contributor

KevinMind commented Dec 10, 2024

What happened?

kmeinhardt@kevins-mbp addons-server % make up
for path in src/olympia.egg-info supervisord.pid version.json logs buildx-bake-metadata.json ; do rm -rf "/Users/kmeinhardt/src/mozilla/addons-server/$path" && echo "$path removed"; done
src/olympia.egg-info removed
supervisord.pid removed
version.json removed
logs removed
buildx-bake-metadata.json removed
./scripts/setup.py
tag:  mozilla/addons-server:local
version:  local
digest:  None
Environment:
COMPOSE_FILE=docker-compose.yml
DOCKER_TAG=mozilla/addons-server:local
DOCKER_TARGET=production
HOST_UID=501
DEBUG=False
image: mozilla/addons-server:local
docker buildx bake --file docker-bake.hcl --file .env --progress auto --metadata-file buildx-bake-metadata.json  
[+] Building 22.6s (22/30)                                                                              docker:desktop-linux
 => [internal] load local bake definitions                                                                              0.0s
 => => reading docker-bake.hcl 529B / 529B                                                                              0.0s
 => => reading .env 131B / 131B                                                                                         0.0s
 => [internal] load build definition from Dockerfile                                                                    0.0s
 => => transferring dockerfile: 7.83kB                                                                                  0.0s
 => [internal] load metadata for docker.io/library/python:3.11-slim-bookworm                                            1.0s
 => [auth] library/python:pull token for registry-1.docker.io                                                           0.0s
 => [internal] load .dockerignore                                                                                       0.0s
 => => transferring context: 878B                                                                                       0.0s
 => [olympia 1/4] FROM docker.io/library/python:3.11-slim-bookworm@sha256:370c586a6ffc8c619e6d652f81c094b34b14b8f2fb92  0.0s
 => [internal] load build context                                                                                       0.9s
 => => transferring context: 3.21MB                                                                                     0.8s
 => [internal] setting cache mount permissions                                                                          0.0s
 => CACHED [olympia 2/4] RUN <<EOF (groupadd -g 9500 olympia...)                                                        0.0s
 => CACHED [olympia 3/4] WORKDIR /data/olympia                                                                          0.0s
 => CACHED [olympia 4/4] RUN chown -R olympia:olympia /data/olympia                                                     0.0s
 => CACHED [base 1/7] COPY docker/*.gpg.asc /etc/apt/trusted.gpg.d/                                                     0.0s
 => CACHED [base 2/7] COPY docker/*.list /etc/apt/sources.list.d/                                                       0.0s
 => CACHED [base 3/7] RUN <<EOF (# Add support for https apt repos and gpg signed repos...)                             0.0s
 => CACHED [base 4/7] RUN --mount=type=bind,source=docker/debian_packages.txt,target=/debian_packages.txt <<EOF (# All  0.0s
 => CACHED [base 5/7] RUN localedef -i en_US -f UTF-8 en_US.UTF-8                                                       0.0s
 => CACHED [base 6/7] RUN <<EOF (# Create directory for dependencies...)                                                0.0s
 => CACHED [base 7/7] RUN     --mount=type=bind,source=scripts/install_deps.py,target=/data/olympia/scripts/install_de  0.0s
 => CACHED [sources 1/4] COPY docker/etc/mime.types /etc/mime.types                                                     0.0s
 => CANCELED [sources 2/4] COPY --chown=olympia:olympia . /data/olympia                                                20.1s
 => CACHED [locales 1/2] COPY --chown=olympia:olympia locale /data/olympia/locale                                       0.0s
 => ERROR [locales 2/2] RUN     --mount=type=bind,source=requirements/locale.txt,target=/data/olympia/requirements/loc  8.6s
------
 > [locales 2/2] RUN     --mount=type=bind,source=requirements/locale.txt,target=/data/olympia/requirements/locale.txt     --mount=type=bind,source=Makefile-docker,target=/data/olympia/Makefile-docker     --mount=type=bind,source=locale/compile-mo.sh,target=/data/olympia/compile-mo.sh     make -f Makefile-docker compile_locales:
0.226 + make -f Makefile-docker compile_locales
0.259 python3 -m pip install --progress-bar=off --no-deps -r requirements/locale.txt
1.981 Collecting dennis==1.1.0 (from -r requirements/locale.txt (line 1))
2.166   Downloading dennis-1.1.0-py3-none-any.whl (29 kB)
2.248 Collecting polib==1.2.0 (from -r requirements/locale.txt (line 5))
2.280   Downloading polib-1.2.0-py2.py3-none-any.whl (20 kB)
2.345 Collecting click==8.1.7 (from -r requirements/locale.txt (line 8))
2.374   Downloading click-8.1.7-py3-none-any.whl (97 kB)
2.407 Installing collected packages: polib, dennis, click
2.527 Successfully installed click-8.1.7 dennis-1.1.0 polib-1.2.0
2.921 ./locale/compile-mo.sh ./locale/
2.961 compiling django.po...
3.999 dennis version 1.1.0
4.039 dennis version 1.1.0
4.047 dennis version 1.1.0
4.067 dennis version 1.1.0
5.304 dennis version 1.1.0
5.307 dennis version 1.1.0
5.311 dennis version 1.1.0
5.394 dennis version 1.1.0
6.345 dennis version 1.1.0
6.478 dennis version 1.1.0
6.561 dennis version 1.1.0
6.718 xargs: bash: terminated by signal 4
6.719 dennis version 1.1.0
7.123 dennis version 1.1.0
7.414 make: *** [Makefile-docker:240: compile_locales] Error 125
------
Dockerfile:143
--------------------
 142 |     # Copy the executable individually to improve the cache validity
 143 | >>> RUN \
 144 | >>>     --mount=type=bind,source=requirements/locale.txt,target=${HOME}/requirements/locale.txt \
 145 | >>>     --mount=type=bind,source=Makefile-docker,target=${HOME}/Makefile-docker \
 146 | >>>     --mount=type=bind,source=locale/compile-mo.sh,target=${HOME}/compile-mo.sh \
 147 | >>>     make -f Makefile-docker compile_locales
 148 |     
--------------------
ERROR: failed to solve: process "/bin/bash -xue -c make -f Makefile-docker compile_locales" did not complete successfully: exit code: 2

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/hxcpqiw37jvsjompo8nbfgshm
make[1]: *** [docker_build_web] Error 1
make: *** [docker_pull_or_build] Error 2
kmeinhardt@kevins-mbp addons-server % 

What did you expect to happen?

Seems like there is some kind of a flaky error in the local script.. maybe due to xargs.. 🤷 need to find out.

Is there an existing issue for this?

  • I have searched the existing issues

┆Issue is synchronized with this Jira Task

@KevinMind
Copy link
Contributor Author

I think this has been here for a while, it is not new. But I've seen it recently and decided to file an issue so it's on the radar.

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

No branches or pull requests

1 participant