staged-recipes: build-locally fails with `Command '['.scripts/run_docker_build.sh']' returned non-zero exit status 1.`
Bug:
@conda-forge-admin, please ping conda-forge/staged-recipes
First of all, thanks for all your efforts!
I tried to run build-locally.py on my own computer (Windows 10 + WSL Ubuntu + Docker) and it exits with an exception.
Find the logs here:
USER@COMPUTER:/mnt/c/.../my-conda-recipe$ python build-locally.py --debug linux64
valid configs are {'linux64_cuda111', 'win64', 'linux64', 'osx64', 'linux64_cuda102', 'linux64_cuda112', 'linux64_cuda110'}
Using linux64 configuration
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.7.1)
compose: Docker Compose (Docker Inc., v2.2.3)
scan: Docker Scan (Docker Inc., v0.16.0)
Server:
Containers: 9
Running: 2
Paused: 0
Stopped: 7
Images: 16
Server Version: 20.10.12
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc version: v1.0.2-0-g52b36a2
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 5.4.72-microsoft-standard-WSL2
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 31.2GiB
Name: docker-desktop
ID: OZJD:623H:JM2O:PHJH:FQTK:DGCN:64UA:3UGX:RKEK:54LJ:3B76:CGYT
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
Using default tag: latest
latest: Pulling from condaforge/linux-anvil-comp7
Digest: sha256:426a279e4ae4ae46471547491d6a8c2426c901c573780eea3a086b0591b9ca9c
Status: Image is up to date for quay.io/condaforge/linux-anvil-comp7:latest
quay.io/condaforge/linux-anvil-comp7:latest
Traceback (most recent call last):
File "build-locally.py", line 101, in <module>
main()
File "build-locally.py", line 95, in main
run_docker_build(ns)
File "build-locally.py", line 33, in run_docker_build
subprocess.check_call([script])
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['.scripts/run_docker_build.sh']' returned non-zero exit status 1.
What exactly went wrong? Is it possible to have a more precise error message here?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (19 by maintainers)
Thank you @jmp75 for your remarks. I have just tried out your command in the Ubuntu WSL and the error is resolved. Thus, the issue here is resolved. What remains open and should be discussed elsewhere is:
build-locally.pycan also be started from Windows?I can report the same issue on a Linux Debian box. I wanted to build locally to test if and how package unit tests were run by the build process, as these rely on C compilation, before submitting a pull request.
It does grate a bit to have failing processes without a helpful error message. I’ll see if I can diagnose further with the replies in this issue, and report.
Background/context info:
python build-locallly.py linux64:I want to bump this as I am experiencing the same error using the same setup (Windows 10 + WSL Ubuntu + Docker). I ran the
build-locally.pyand added some print statements to the.scripts/run_docker_build.shto get some variable values (printed under the WARNING blkio messages). It seems like CI and DEFAULT_LINUX_VERSION were never defined.Then I just ran the docker run part with the following but the container immediately exited with a 139 error code without leaving a log file.
Maybe this can be a Windows + WSL2 + Docker problem, but in theory these container should work regardless of OS? Maybe @isuruf @ngam @mattwthompson could provide solution? I tried to omit or add a value to the CI/DEFAULT_LINUX_VERSION variables but that didn’t work. Thank you in advance for looking taking the time to look at this!