breeze ci resource-check
hangs with a python prompt
#42253
Unanswered
tomicooler
asked this question in
General
Replies: 1 comment
-
Likely your problem is lack of resources (disk space). You can clearly see that
Your Docker does not have free disk you must free some space. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue description
I have an issue with the
breeze
dev tool. When I run thebreeze ci resource-check
command the process just hangs with a python prompt.I tried to debug, with
verbose_override=True
:The output:
The
python /opt/airflow/scripts/in_container/run_resource_check.py
should be one parameter. Even though breeze logs that the parameter after-c
is quoted, it is probably not.Reproduction and debug
I can repro a similar issue when running locally like this:
The only difference between the two command run is that the parameter for
bash -c
is in ''.Example with a
sleep
command, to see the args in docker inspect:Docker version:
Client: Docker Engine - Community Version: 27.1.2 API version: 1.46 Go version: go1.22.6 Git commit: d01f264bcc Built: Mon Aug 12 11:34:32 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.33.0 (160616) Engine: Version: 27.1.1 API version: 1.46 (minimum version 1.24) Go version: go1.21.12 Git commit: cc13f95 Built: Tue Jul 23 19:57:14 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.7.19 GitCommit: 2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41 runc: Version: 1.7.19 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0
The command ends up in a subprocess.run:
airflow/dev/breeze/src/airflow_breeze/utils/run_utils.py
Line 161 in a5d0a63
Workaround
As a workaround I changed the entrypoint to
/usr/local/bin/python
:Beta Was this translation helpful? Give feedback.
All reactions