Bowrna commented on pull request #21956:
URL: https://github.com/apache/airflow/pull/21956#issuecomment-1070919983
@potiuk I am getting following issue
```
sathishkannan@Sathishs-MacBook-Air airflow % Breeze2 build-prod-image
--platform linux/amd64
Airflow 2.3.0.dev0 Python: 3.7. Image description: Airflow
production
Working directory /Users/sathishkannan/code/airflow
docker buildx version
['docker', 'buildx', 'build', '--builder', 'default', '--progress=tty',
'--build-arg', 'AIRFLOW_SOURCES_FROM=.', '--build-arg',
'AIRFLOW_SOURCES_TO=/opt/airflow', '--build-arg',
'AIRFLOW_SOURCES_WWW_FROM=./airflow/www', '--build-arg',
'AIRFLOW_SOURCES_WWW_TO=/opt/airflow/airflow/www', '--build-arg',
'AIRFLOW_INSTALLATION_METHOD=.', '--build-arg',
'AIRFLOW_CONSTRAINTS_REFERENCE=constraints-main', '--pull', '--build-arg',
'PYTHON_BASE_IMAGE=python:3.7-slim-bullseye', '--build-arg',
'INSTALL_MYSQL_CLIENT=true', '--build-arg', 'INSTALL_MSSQL_CLIENT=true',
'--build-arg', 'INSTALL_POSTGRES_CLIENT=true', '--build-arg',
'AIRFLOW_VERSION=2.3.0.dev0', '--build-arg', 'AIRFLOW_BRANCH=main',
'--build-arg',
'AIRFLOW_EXTRAS=amazon,async,celery,cncf.kubernetes,dask,docker,elasticsearch,ftp,google,google_auth,grpc,hashicorp,http,ldap,microsoft.azure,mysql,odbc,pandas,postgres,redis,sendgrid,sftp,slack,ssh,statsd,virtualenv',
'--build-arg', 'AIRFLOW_PRE_CACHED_PIP_PACKAGES=true', '--build-arg', 'AD
DITIONAL_AIRFLOW_EXTRAS=', '--build-arg', 'ADDITIONAL_PYTHON_DEPS=',
'--build-arg', 'ADDITIONAL_DEV_APT_COMMAND=', '--build-arg',
'ADDITIONAL_DEV_APT_DEPS=', '--build-arg', 'ADDITIONAL_DEV_APT_ENV=',
'--build-arg', 'ADDITIONAL_RUNTIME_APT_COMMAND=', '--build-arg',
'ADDITIONAL_RUNTIME_APT_DEPS=', '--build-arg', 'ADDITIONAL_RUNTIME_APT_ENV=',
'--build-arg', 'UPGRADE_TO_NEWER_DEPENDENCIES=false', '--build-arg',
'CONSTRAINTS_GITHUB_REPOSITORY=apache/airflow', '--build-arg',
'AIRFLOW_CONSTRAINTS=constraints-source-providers', '--build-arg',
'AIRFLOW_IMAGE_REPOSITORY=https://github.com/apache/airflow', '--build-arg',
'AIRFLOW_IMAGE_DATE_CREATED=2022-03-17T18:50:29Z', '--build-arg', 'BUILD_ID=0',
'--build-arg', 'COMMIT_SHA=eee8281a0f81c053e749c5f85931924afb1211c5',
'--build-arg',
'AIRFLOW_IMAGE_README_URL=https://raw.githubusercontent.com/apache/airflow/eee8281a0f81c053e749c5f85931924afb1211c5/docs/docker-stack/README.md',
'--build-arg', 'INSTALL_PROVIDERS_FROM_SOURCES=true', '--build-arg'
, 'INSTALL_FROM_PYPI=true', '--build-arg',
'INSTALL_FROM_DOCKER_CONTEXT_FILES=false',
'--cache-from=ghcr.io/apache/airflow/main/prod/python3.7:cache', '-t',
'ghcr.io/apache/airflow/main/prod/python3.7', '--target', 'main', '.', '-f',
'Dockerfile', '--platform', 'linux/amd64']
[+] Building 6.7s (9/36)
=> [internal] load build definition from Dockerfile
0.0s
=> => transferring dockerfile: 24.80kB
0.0s
=> [internal] load .dockerignore
0.0s
=> => transferring context: 35B
0.0s
=> [internal] load metadata for docker.io/library/python:3.7-slim-bullseye
1.3s
=> importing cache manifest from
ghcr.io/apache/airflow/main/prod/python3.7:cache
1.6s
=> [internal] load build context
0.6s
=> => transferring context: 413.77kB
0.6s
=> [airflow-build-image 1/19] FROM
docker.io/library/python:3.7-slim-bullseye@sha256:6165225dd1566eccfbe60e642014bbca96ac752e09e7d3163235f62ef5ad89cc
0.0s
=> => resolve
docker.io/library/python:3.7-slim-bullseye@sha256:6165225dd1566eccfbe60e642014bbca96ac752e09e7d3163235f62ef5ad89cc
0.0s
=> CACHED [airflow-build-image 2/19] COPY
scripts/docker/determine_debian_version_specific_variables.sh /scripts/docker/
0.0s
=> ERROR [main 3/14] RUN apt-get update && apt-get install
--no-install-recommends -yqq apt-utils >/dev/null 2>&1 && apt-get install
-y --no-install-recommends curl gnupg2 lsb-release 3.0s
=> CANCELED [airflow-build-image 3/19] RUN apt-get update && apt-get
install --no-install-recommends -yqq apt-utils >/dev/null 2>&1 && apt-get
install -y --no-install-recommends curl gnup 3.0s
------
> [main 3/14] RUN apt-get update && apt-get install
--no-install-recommends -yqq apt-utils >/dev/null 2>&1 && apt-get install
-y --no-install-recommends curl gnupg2 lsb-release && export && source
/scripts/docker/determine_debian_version_specific_variables.sh && bash -o
pipefail -o errexit -o nounset -o nolog -c "echo" && bash -o pipefail -o
errexit -o nounset -o nolog -c "" && apt-get update && apt-get install
-y --no-install-recommends apt-transport-https
apt-utils ca-certificates curl dumb-init
freetds-bin gosu krb5-user ldap-utils libldap-2.4-2
libsasl2-2 libsasl2-modules libssl1.1 locales
lsb-release netcat openssh-client rsync sasl2-bin
sqlite3 sudo unixodbc "${DISTRO_LIBFFI}"
&& apt-get autoremove -yqq --purge && apt-get clean && rm -rf
/var/
lib/apt/lists/* && rm -rf /var/log/*:
#8 0.630 Get:1 http://security.debian.org/debian-security bullseye-security
InRelease [44.1 kB]
#8 0.636 Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
#8 0.778 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.3
kB]
#8 1.435 Err:1 http://security.debian.org/debian-security bullseye-security
InRelease
#8 1.435 At least one invalid signature was encountered.
#8 2.121 Err:2 http://deb.debian.org/debian bullseye InRelease
#8 2.121 At least one invalid signature was encountered.
#8 2.800 Err:3 http://deb.debian.org/debian bullseye-updates InRelease
#8 2.800 At least one invalid signature was encountered.
#8 2.845 Reading package lists...
#8 2.951 W: GPG error: http://security.debian.org/debian-security
bullseye-security InRelease: At least one invalid signature was encountered.
#8 2.951 E: The repository 'http://security.debian.org/debian-security
bullseye-security InRelease' is not signed.
#8 2.951 W: GPG error: http://deb.debian.org/debian bullseye InRelease: At
least one invalid signature was encountered.
#8 2.952 E: The repository 'http://deb.debian.org/debian bullseye InRelease'
is not signed.
#8 2.952 W: GPG error: http://deb.debian.org/debian bullseye-updates
InRelease: At least one invalid signature was encountered.
#8 2.952 E: The repository 'http://deb.debian.org/debian bullseye-updates
InRelease' is not signed.
------
error: failed to solve: executor failed running [/bin/bash -o pipefail -o
errexit -o nounset -o nolog -c apt-get update && apt-get install
--no-install-recommends -yqq apt-utils >/dev/null 2>&1 && apt-get install
-y --no-install-recommends curl gnupg2 lsb-release && export
${ADDITIONAL_RUNTIME_APT_ENV?} && source
/scripts/docker/determine_debian_version_specific_variables.sh && bash -o
pipefail -o errexit -o nounset -o nolog -c "${RUNTIME_APT_COMMAND}" && bash
-o pipefail -o errexit -o nounset -o nolog -c
"${ADDITIONAL_RUNTIME_APT_COMMAND}" && apt-get update && apt-get
install -y --no-install-recommends ${RUNTIME_APT_DEPS}
"${DISTRO_LIBFFI}" ${ADDITIONAL_RUNTIME_APT_DEPS} && apt-get
autoremove -yqq --purge && apt-get clean && rm -rf /var/lib/apt/lists/*
&& rm -rf /var/log/*]: exit code: 100
========================= OUTPUT start ============================
None
None
========================= OUTPUT end ============================
Traceback (most recent call last):
File "/Users/sathishkannan/.pyenv/versions/airflow-env/bin/Breeze2", line
33, in <module>
sys.exit(load_entry_point('apache-airflow-breeze', 'console_scripts',
'Breeze2')())
File
"/Users/sathishkannan/.pyenv/versions/3.8.10/envs/airflow-env/lib/python3.8/site-packages/click/core.py",
line 829, in __call__
return self.main(*args, **kwargs)
File
"/Users/sathishkannan/.pyenv/versions/3.8.10/envs/airflow-env/lib/python3.8/site-packages/rich_click/rich_click.py",
line 512, in main
return super().main(*args, standalone_mode=False, **kwargs)
File
"/Users/sathishkannan/.pyenv/versions/3.8.10/envs/airflow-env/lib/python3.8/site-packages/click/core.py",
line 782, in main
rv = self.invoke(ctx)
File
"/Users/sathishkannan/.pyenv/versions/3.8.10/envs/airflow-env/lib/python3.8/site-packages/click/core.py",
line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File
"/Users/sathishkannan/.pyenv/versions/3.8.10/envs/airflow-env/lib/python3.8/site-packages/click/core.py",
line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File
"/Users/sathishkannan/.pyenv/versions/3.8.10/envs/airflow-env/lib/python3.8/site-packages/click/core.py",
line 610, in invoke
return callback(*args, **kwargs)
File
"/Users/sathishkannan/code/airflow/dev/breeze/src/airflow_breeze/breeze.py",
line 426, in build_prod_image
build_production_image(
File
"/Users/sathishkannan/code/airflow/dev/breeze/src/airflow_breeze/prod/build_prod_image.py",
line 176, in build_production_image
output = run_command(cmd, verbose=verbose, cwd=AIRFLOW_SOURCE, text=True)
File
"/Users/sathishkannan/code/airflow/dev/breeze/src/airflow_breeze/utils/run_utils.py",
line 65, in run_command
return subprocess.run(cmd, check=check, env=cmd_env, cwd=workdir,
**kwargs)
File
"/Users/sathishkannan/.pyenv/versions/3.8.10/lib/python3.8/subprocess.py", line
516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['docker', 'buildx', 'build',
'--builder', 'default', '--progress=tty', '--build-arg',
'AIRFLOW_SOURCES_FROM=.', '--build-arg', 'AIRFLOW_SOURCES_TO=/opt/airflow',
'--build-arg', 'AIRFLOW_SOURCES_WWW_FROM=./airflow/www', '--build-arg',
'AIRFLOW_SOURCES_WWW_TO=/opt/airflow/airflow/www', '--build-arg',
'AIRFLOW_INSTALLATION_METHOD=.', '--build-arg',
'AIRFLOW_CONSTRAINTS_REFERENCE=constraints-main', '--pull', '--build-arg',
'PYTHON_BASE_IMAGE=python:3.7-slim-bullseye', '--build-arg',
'INSTALL_MYSQL_CLIENT=true', '--build-arg', 'INSTALL_MSSQL_CLIENT=true',
'--build-arg', 'INSTALL_POSTGRES_CLIENT=true', '--build-arg',
'AIRFLOW_VERSION=2.3.0.dev0', '--build-arg', 'AIRFLOW_BRANCH=main',
'--build-arg',
'AIRFLOW_EXTRAS=amazon,async,celery,cncf.kubernetes,dask,docker,elasticsearch,ftp,google,google_auth,grpc,hashicorp,http,ldap,microsoft.azure,mysql,odbc,pandas,postgres,redis,sendgrid,sftp,slack,ssh,statsd,virtualenv',
'--build-arg', 'AIRFLOW_PRE_CACHE
D_PIP_PACKAGES=true', '--build-arg', 'ADDITIONAL_AIRFLOW_EXTRAS=',
'--build-arg', 'ADDITIONAL_PYTHON_DEPS=', '--build-arg',
'ADDITIONAL_DEV_APT_COMMAND=', '--build-arg', 'ADDITIONAL_DEV_APT_DEPS=',
'--build-arg', 'ADDITIONAL_DEV_APT_ENV=', '--build-arg',
'ADDITIONAL_RUNTIME_APT_COMMAND=', '--build-arg',
'ADDITIONAL_RUNTIME_APT_DEPS=', '--build-arg', 'ADDITIONAL_RUNTIME_APT_ENV=',
'--build-arg', 'UPGRADE_TO_NEWER_DEPENDENCIES=false', '--build-arg',
'CONSTRAINTS_GITHUB_REPOSITORY=apache/airflow', '--build-arg',
'AIRFLOW_CONSTRAINTS=constraints-source-providers', '--build-arg',
'AIRFLOW_IMAGE_REPOSITORY=https://github.com/apache/airflow', '--build-arg',
'AIRFLOW_IMAGE_DATE_CREATED=2022-03-17T18:50:29Z', '--build-arg', 'BUILD_ID=0',
'--build-arg', 'COMMIT_SHA=eee8281a0f81c053e749c5f85931924afb1211c5',
'--build-arg',
'AIRFLOW_IMAGE_README_URL=https://raw.githubusercontent.com/apache/airflow/eee8281a0f81c053e749c5f85931924afb1211c5/docs/docker-stack/README.md',
'--build-arg', 'INSTALL_PRO
VIDERS_FROM_SOURCES=true', '--build-arg', 'INSTALL_FROM_PYPI=true',
'--build-arg', 'INSTALL_FROM_DOCKER_CONTEXT_FILES=false',
'--cache-from=ghcr.io/apache/airflow/main/prod/python3.7:cache', '-t',
'ghcr.io/apache/airflow/main/prod/python3.7', '--target', 'main', '.', '-f',
'Dockerfile', '--platform', 'linux/amd64']' returned non-zero exit status 1.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]