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: run with mount host failed "permission denied" #1437

Open
kemingy opened this issue Jan 21, 2023 · 0 comments
Open

bug: run with mount host failed "permission denied" #1437

kemingy opened this issue Jan 21, 2023 · 0 comments

Comments

@kemingy
Copy link
Member

kemingy commented Jan 21, 2023

Description

Reproduction

envd config:

# syntax=v1


def build():
    base(dev=True)
    install.conda()
    install.python()
    run(["touch test.txt"], mount_host=True)

Run envd up:

error:

 > /usr/bin/bash -c set -euo pipefail
touch test.txt
:
#0 0.115 touch: cannot touch 'test.txt': Permission denied
------
error: failed to solve: process "/usr/bin/bash -c set -euo pipefail\ntouch test.txt\n" did not complete successfully: exit code: 1
Details
❯ envd -debug up
DEBU[2023-01-22T00:26:13+08:00] /home/keming/.config/envd/id_rsa_envd.pub already present
DEBU[2023-01-22T00:26:13+08:00] /home/keming/.config/envd/id_rsa_envd already present
DEBU[2023-01-22T00:26:13+08:00] home manager initialized                      cache-dir=/home/keming/.cache/envd cache-map="map[]" cache-status=/home/keming/.cache/envd/cache.status config-file=/home/keming/.config/envd/config.envd context="{default [{default docker-container envd_buildkitd docker <nil>}]}" context-file=/home/keming/.config/envd/contexts
DEBU[2023-01-22T00:26:13+08:00] telemetry initialization                      UID=fc6238cb-b8b1-4c33-9143-ff54dc1c73b9
DEBU[2023-01-22T00:26:13+08:00] sending telemetry
DEBU[2023-01-22T00:26:13+08:00] tag not specified, using default
DEBU[2023-01-22T00:26:13+08:00] starting up command                           builder-options="{/home/keming/GitHub/pyversion/build.envd /home/keming/.config/envd/config.envd plain pyversion:dev /home/keming/GitHub/pyversion build /home/keming/.config/envd/id_rsa_envd.pub    false}" container-name=pyversion detach=false
DEBU[2023-01-22T00:26:13+08:00] getting exporter entry                        entry="[]"
DEBU[2023-01-22T00:26:13+08:00] commandconn: starting docker with [exec -i envd_buildkitd buildctl dial-stdio]
DEBU[2023-01-22T00:26:13+08:00] starting buildkitd                            container=envd_buildkitd mirror= tag="docker.io/moby/buildkit:v0.10.3"
DEBU[2023-01-22T00:26:13+08:00] unimplemented call: SetDeadline(2023-01-22 00:26:33.257044396 +0800 +08 m=+20.009682197)
DEBU[2023-01-22T00:26:13+08:00] unimplemented call: SetDeadline(0001-01-01 00:00:00 +0000 UTC)
DEBU[2023-01-22T00:26:13+08:00] container is running, check if it's ready at docker-container://envd_buildkitd...  container=envd_buildkitd driver=docker-container image="docker.io/moby/buildkit:v0.10.3" socket=envd_buildkitd
DEBU[2023-01-22T00:26:13+08:00] waiting to connect to buildkitd               container=envd_buildkitd driver=docker-container image="docker.io/moby/buildkit:v0.10.3" socket=envd_buildkitd
DEBU[2023-01-22T00:26:13+08:00] unimplemented call: SetReadDeadline(0001-01-01 00:00:00 +0000 UTC)
DEBU[2023-01-22T00:26:14+08:00] connected to buildkitd                        container=envd_buildkitd driver=docker-container image="docker.io/moby/buildkit:v0.10.3" socket=envd_buildkitd
DEBU[2023-01-22T00:26:14+08:00] evaluating config file                        language-version=v1 tag="pyversion:dev"
DEBU[2023-01-22T00:26:14+08:00] interprete the file                           filename=/home/keming/.config/envd/config.envd
DEBU[2023-01-22T00:26:14+08:00] rule `git_config` is invoked, name=Keming, [email protected], editor=vim  frontend=starlark
DEBU[2023-01-22T00:26:14+08:00] interprete the file                           filename=/home/keming/GitHub/pyversion/build.envd
DEBU[2023-01-22T00:26:14+08:00] Execute build func
DEBU[2023-01-22T00:26:14+08:00] rule `base` is invoked, image=, dev=true      frontend=starlark
DEBU[2023-01-22T00:26:14+08:00] rule `install.conda` is invoked: use_mamba=false  frontend=starlark
DEBU[2023-01-22T00:26:14+08:00] rule `install.python` is invoked, version=3.9  frontend=starlark
DEBU[2023-01-22T00:26:14+08:00] rule `install.python_packages` is invoked, name=[build], requirements=, local_wheels=[]  frontend=starlark
DEBU[2023-01-22T00:26:14+08:00] rule `run` is invoked, commands=[touch test.txt], mount_host=true  frontend=starlark
DEBU[2023-01-22T00:26:14+08:00] failed to check manifest update: image with hash 4cc2a9bef1aeb68f4e08161e5237ae8c not found  language-version=v1 tag="pyversion:dev"
DEBU[2023-01-22T00:26:14+08:00] compile LLB                                   gid=1000 uid=1000
DEBU[2023-01-22T00:26:14+08:00] compile base image                            image="ubuntu:20.04" language=python version=3.9
DEBU[2023-01-22T00:26:14+08:00] resolving                                     host=registry-1.docker.io
DEBU[2023-01-22T00:26:14+08:00] do request                                    host=registry-1.docker.io request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=buildkit/0.0.0+unknown request.method=HEAD url="https://registry-1.docker.io/v2/library/ubuntu/manifests/20.04"
[+] ⌚ parse build.envd and download/cache dependencies 2.5s
DEBU[2023-01-22T00:26:16+08:00] fetch response received                       host=registry-1.docker.io response.header.content-length=157 response.header.content-type=application/json response.header.date="Sat, 21 Jan 2023 16:26:15 GMT" response.header.docker-distribution-api-version=registry/2.0 response.header.docker-ratelimit-source=219.74.23.20 response.header.strict-transport-security="max-age=31536000" response.header.www-authenticate="Bearer realm=\"https://auth.docker.io/token\",service=\"registry.docker.io\",scope=\"repository:library/ubuntu:pull\"" response.status="401 Unauthorized" url="https://registry-1.docker.io/v2/library/ubuntu/manifests/20.04"
DEBU[2023-01-22T00:26:16+08:00] Unauthorized                                  header="Bearer realm=\"https://auth.docker.io/token\",service=\"registry.docker.io\",scope=\"repository:library/ubuntu:pull\"" host=registry-1.docker.io
DEBU[2023-01-22T00:26:16+08:00] do request                                    host=registry-1.docker.io request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=buildkit/0.0.0+unknown request.method=HEAD url="https://registry[+] ⌚ parse build.envd and download/cache dependencies 3.6s
DEBU[2023-01-22T00:26:17+08:00] fetch response received                       host=registry-1.docker.io response.header.content-length=1416 response.header.content-type=application/vnd.docker.distribution.manifest.list.v2+json response.header.date="Sat, 21 Jan 2023 16:26:16 GMT" response.header.docker-content-digest="sha256:0e0402cd13f68137edb0266e1d2c682f217814420f2d43d300ed8f65479b14fb" response.header.docker-distribution-api-version=registry/2.0 response.header.docker-ratelimit-source=219.74.23.20 response.header.etag="\"sha256:0e0402cd13f68137edb0266e1d2c682f217814420f2d43d300ed8f65479b14fb\"" response.header.ratelimit-limit="100;w=21600" response.header.ratelimit-remaining="77;w=21600" response.header.strict-transport-security="max-age=31536000" response.status="200 OK" url="https://registry-1.docker.io/v2/library/ubuntu/manifests/20.04"
DEBU[2023-01-22T00:26:17+08:00] resolved                                      desc.digest="sha256:0e0402cd13f68137edb0266e1d2c682f217814420f2d43d300ed8f65479b14fb" host=registry-1.docker.io
DEBU[2023-01-22T00:26:17+08:00] fetch                                         digest="sha256:0e0402cd13f68137edb0266e1d2c682f217814420f2d43d300ed8f65479b14fb" mediatype=application/vnd.docker.distribution.manifest.list.v2+json size=1416
DEBU[2023-01-22T00:26:17+08:00] do request                                    digest="sha256:0e0402cd13f68137edb0266e1d2c682f217814420f2d43d300ed8f65479b14fb" mediatype=application/vnd.docker.distribution.manifest.list.v2+json request.header.accept="application/vnd.docker.distribution.manifest.list.v2+json, */*" request.header.user-agent=buildkit/0.0.0+unknown request.method=GET size=1416 url="https://registry-1.dock[+] ⌚ parse build.envd and download/cache dependencies 4.0s  66e1d2c682f217814420f2d43d300ed8f65479b14fb"
DEBU[2023-01-22T00:26:18+08:00] fetch response received                       digest="sha256:0e0402cd13f68137edb0266e1d2c682f217814420f2d43d300ed8f65479b14fb" mediatype=application/vnd.docker.distribution.manifest.list.v2+json response.header.content-length=1416 response.header.content-type=application/vnd.docker.distribution.manifest.list.v2+json response.header.date="Sat, 21 Jan 2023 16:26:16 GMT" response.header.docker-content-digest="sha256:0e0402cd13f68137edb0266e1d2c682f217814420f2d43d300ed8f65479b14fb" response.header.docker-distribution-api-version=registry/2.0 response.header.docker-ratelimit-source=219.74.23.20 response.header.etag="\"sha256:0e0402cd13f68137edb0266e1d2c682f217814420f2d43d300ed8f65479b14fb\"" response.header.ratelimit-limit="100;w=21600" response.header.ratelimit-remaining="77;w=21600" response.header.strict-transport-security="max-age=31536000" response.status="200 OK" size=1416 url="https://registry-1.docker.io/v2/library/ubuntu/manifests/sha256:0e0402cd13f68137edb0266e1d2c682f217814420f2d43d300ed8f65479b14fb"
DEBU[2023-01-22T00:26:18+08:00] fetch                                         digest="sha256:8eb87f3d6c9f2feee114ff0eff93ea9dfd20b294df0a0353bd6a4abf403336fe" mediatype=application/vnd.docker.distribution.manifest.v2+json size=529
DEBU[2023-01-22T00:26:18+08:00] do request                                    digest="sha256:8eb87f3d6c9f2feee114ff0eff93ea9dfd20b294df0a0353bd6a4abf403336fe" mediatype=application/vnd.docker.distribution.manifest.v2+json request.header.accept="application/vnd.docker.distribution.manifest.v2+json, */*" request.header.user-agent=buildkit/0.0.0+unknown request.method=GET size=529 url="https://registry-1.docker.io/v2/li[+] ⌚ parse build.envd and download/cache dependencies 4.3s  fd20b294df0a0353bd6a4abf403336fe"
DEBU[2023-01-22T00:26:18+08:00] fetch response received                       digest="sha256:8eb87f3d6c9f2feee114ff0eff93ea9dfd20b294df0a0353bd6a4abf403336fe" mediatype=application/vnd.docker.distribution.manifest.v2+json response.header.content-length=529 response.header.content-type=application/vnd.docker.distribution.manifest.v2+json response.header.date="Sat, 21 Jan 2023 16:26:16 GMT" response.header.docker-content-digest="sha256:8eb87f3d6c9f2feee114ff0eff93ea9dfd20b294df0a0353bd6a4abf403336fe" response.header.docker-distribution-api-version=registry/2.0 response.header.docker-ratelimit-source=219.74.23.20 response.header.etag="\"sha256:8eb87f3d6c9f2feee114ff0eff93ea9dfd20b294df0a0353bd6a4abf403336fe\"" response.header.ratelimit-limit="100;w=21600" response.header.ratelimit-remaining="76;w=21600" response.header.strict-transport-security="max-age=31536000" response.status="200 OK" size=529 url="https://registry-1.docker.io/v2/library/ubuntu/manifests/sha256:8eb87f3d6c9f2feee114ff0eff93ea9dfd20b294df0a0353bd6a4abf403336fe"
DEBU[2023-01-22T00:26:18+08:00] fetch                                         digest="sha256:d5447fc01ae62c20beffbfa50bc51b2797f9d7ebae031b8c2245b5be8ff1c75b" mediatype=application/vnd.docker.container.image.v1+json size=1462
DEBU[2023-01-22T00:26:18+08:00] do request                                    digest="sha256:d5447fc01ae62c20beffbfa50bc51b2797f9d7ebae031b8c2245b5be8ff1c75b" mediatype=application/vnd.docker.container.image.v1+json request.header.accept="application/vnd.docker.container.image.v1+json, */*" request.header.user-agent=buildkit/0.0.0+unknown request.method=GET size=1462 url="https://registry-1.docker.io/v2/library/ubunt[+] ⌚ parse build.envd and download/cache dependencies 4.8s  c2245b5be8ff1c75b"
DEBU[2023-01-22T00:26:19+08:00] fetch response received                       digest="sha256:d5447fc01ae62c20beffbfa50bc51b2797f9d7ebae031b8c2245b5be8ff1c75b" mediatype=application/vnd.docker.container.image.v1+json response.header.accept-ranges=bytes response.header.age=1347718 response.header.cache-control="public, max-age=14400" response.header.cf-cache-status=HIT response.header.cf-ray=78d169239f65880d-SIN response.header.content-length=1462 response.header.content-type=application/octet-stream response.header.date="Sat, 21 Jan 2023 16:26:17 GMT" response.header.etag="\"3b36b7ac65bfa9109433c35b8fcb12c8\"" response.header.expires="Sat, 21 Jan 2023 20:26:17 GMT" response.header.last-modified="Fri, 09 Dec 2022 01:21:41 GMT" response.header.server=cloudflare response.header.vary=Accept-Encoding response.header.x-amz-id-2="n0XAF1qdUCtcbTfmN2qbvN3fbI/gDwtc2dsk5Y7eMm90MxD4MlHS71meHm2t8S6SaYhB48H0Ifw=" response.header.x-amz-request-id=VATRPRDRFJ3JG0EX response.header.x-amz-version-id=1_7.daYdbjFB.tnjAxevBIeJ5BModxoR response.status="200 OK" size=1462 url="https://registry-1.docker.io/v2/library/ubuntu/blobs/sha256:d5447fc01ae62c20beffbfa50bc51b2797f9d7ebae031b8c2245b5be8ff1c75b"
DEBU[2023-01-22T00:26:19+08:00] skip the apt since system package is not specified
DEBU[2023-01-22T00:26:19+08:00] Configure pip install statements              command="python -m pip install build"
DEBU[2023-01-22T00:26:19+08:00] apt/pypi calculated cacheID: /root/.cache/pip/pyversion-cpu
DEBU[2023-01-22T00:26:19+08:00] Conda packages not enabled
DEBU[2023-01-22T00:26:19+08:00] compile run command                           command="/usr/bin/bash -c 'set -euo pipefail\ntouch test.txt\n[+] ⌚ parse build.envd and download/cache dependencies 4.9s ✅ (finished)
DEBU[2023-01-22T00:26:19+08:00] compiled build.envd                           language-version=v1 tag="pyversion:dev"
DEBU[2023-01-22T00:26:19+08:00] building envd image                           language-version=v1 tag="pyversion:dev"
DEBU[2023-01-22T00:26:19+08:00] build image with buildkit                     language-version=v1 tag="pyversion:dev" type=docker
DEBU[2023-01-22T00:26:19+08:00] loading image to docker host                  language-version=v1 tag="pyversion:dev"
DEBU[2023-01-22T00:26:19+08:00] serving grpc connection
DEBU[2023-01-22T00:26:19+08:00] running BuildFunc for envd                    language-version=v1 tag="pyversion:dev"
DEBU[2023-01-22T00:26:19+08:00] import remote cache                           default-cache="type=registry,ref=docker.io/tensorchord/python-cache:envd-v0.3.8" language-version=v1 tag="pyversion:dev"
DEBU[2023-01-22T00:26:19+08:00] final entrypoint: {[horust]}                  language-version=v1 tag="pyversion:dev"
DEBU[2023-01-22T00:26:19+08:00] setting image config: {"architecture":"amd64","os":"linux","config":{"User":"envd","ExposedPorts":{"2222/tcp":{}},"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","USER=envd","SHELL=/usr/bin/bash","ENVD_WORKDIR=/home/envd/pyversion","PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/conda/envs/envd/bin:/opt/conda/bin:/home/envd/.local/bin","LC_ALL=en_US.UTF-8","LANG=C.UTF-8"],"Entrypoint":["horust"],"WorkingDir":"/","Labels":{"ai.tensorchord.envd.apt.packages":"[]","ai.tensorchord.envd.build.context":"/home/keming/GitHub/pyversion","ai.tensorchord.envd.build.digest":"4cc2a9bef1aeb68f4e08161e5237ae8c","ai.tensorchord.envd.container.name":"pyversion","ai.tensorchord.envd.ports":"[{\"name\":\"ssh\",\"port\":2222}]","ai.tensorchord.envd.pypi.commands":"[\"build\"]","ai.tensorchord.envd.r.packages":"[]","ai.tensorchord.envd.repo":"{}","ai.tensorchord.envd.runtimeGraph":"{\"environ\":{\"PATH\":\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\"SHELL\":\"/usr/bin/bash\",\"USER\":\"envd\"},\"env_paths\":[\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\"/opt/conda/envs/envd/bin:/opt/conda/bin:/home/envd/.local/bin\"]}","ai.tensorchord.envd.vendor":"envd"}},"rootfs":{"type":"layers","diff_ids":null}}  language-version=v1 tag="pyversion:dev"
#1 importing cache manifest from docker.io/tensorchord/python-cache:envd-v0.3.8
#1 ...

#2 local://build-context
#2 DONE 0.0s

#3 [internal] setting pip cache mount permissions
#3 DONE 0.0s

#1 importing cache manifest from docker.io/tensorchord/python-cache:envd-v0.3.8
#1 ERROR: docker.io/tensorchord/python-cache:envd-v0.3.8: not found

#2 local://build-context
#2 transferring build-context: 29.89kB done
#2 DONE 0.0s

#4 docker-image://docker.io/curlimages/curl:7.86.0
#4 resolve docker.io/curlimages/curl:7.86.0
#4 ...

#5 docker-image://docker.io/tensorchord/horust:v0.2.1
#5 resolve docker.io/tensorchord/horust:v0.2.1 1.0s done
#5 DONE 1.0s

#6 docker-image://docker.io/tensorchord/envd-sshd-from-scratch:v0.3.8
#6 resolve docker.io/tensorchord/envd-sshd-from-scratch:v0.3.8 1.2s done
#6 DONE 1.2s

#7 docker-image://docker.io/library/ubuntu:20.04
#7 resolve docker.io/library/ubuntu:20.04 1.2s done
#7 DONE 1.2s

#4 docker-image://docker.io/curlimages/curl:7.86.0
#4 resolve docker.io/curlimages/curl:7.86.0 1.2s done
#4 DONE 1.3s

#8 [internal] create user envd(u:1000)
#8 CACHED

#9 [internal] conda packages
#9 CACHED

#10 [internal] mkdir for horust service: /etc/horust/services
#10 CACHED

#11 [internal] rm conda source file
#11 CACHED

#12 copy conda from builder
#12 CACHED

#13 [internal] update alternative python3 to envd
#13 CACHED

#14 [internal] install system packages
#14 CACHED

#15 [internal] download conda
#15 CACHED

#16 [internal] update alternative pip3 to envd
#16 CACHED

#17 mkfile /home/envd/.gitconfig
#17 CACHED

#18 [internal] update alternative pip to envd
#18 CACHED

#19 [internal] install horust
#19 CACHED

#20 [internal] prepare language
#20 CACHED

#21 [internal] configure user permissions for /opt/conda/envs/envd/conda-meta
#21 CACHED

#22 [internal] mkdir for horust log: /var/log/horust
#22 CACHED

#23 [internal] create user group envd(g:1000)
#23 CACHED

#24 [internal] create dir for ssh key
#24 CACHED

#25 [internal] creating config dir
#25 CACHED

#26 [internal] add user envd to sudoers
#26 CACHED

#27 [internal] add envd-sshd from tensorchord/envd-sshd-from-scratch:v0.3.8
#27 CACHED

#28 [internal] pip install build
#28 CACHED

#29 [internal] add conda environment to /home/envd/.bashrc
#29 CACHED

#30 [internal] setting prompt bash config
#30 CACHED

#31 [internal] PyPI packages
#31 CACHED

#32 [internal] mkdir config and cache
#32 CACHED

#33 [internal] initialize conda bash environment
#33 CACHED

#34 [internal] install ssh keys
#34 CACHED

#35 [internal] create conda directory
#35 CACHED

#36 [internal] create cache dir
#36 CACHED

#37 [internal] Python packages
#37 CACHED

#38 [internal] install built-in packages
#38 CACHED

#39 [internal] install conda
#39 CACHED

#40 [internal] init conda bash env
#40 CACHED

#41 [internal] language environment and system packages
#41 CACHED

#42 [internal] setting prompt starship config
#42 CACHED

#43 [internal] create conda environment: bash -c "/opt/conda/bin/conda create -n envd python=3.9"
#43 CACHED

#44 [internal] update alternative python to envd
#44 CACHED

#45 [internal] create file /etc/horust/services/sshd.toml
#45 CACHED

#46 /usr/bin/bash -c set -euo pipefail
touch test.txt

DEBU[2023-01-22T00:26:21+08:00] stopping session
ERRO[2023-01-22T00:26:21+08:00] Buildkit error: failed to solve: process "/usr/bin/bash -c set -euo pipefail\ntouch test.txt\n" did not complete successfully: exit code: 1
(1) attached stack trace
  -- stack trace:
  | github.com/tensorchord/envd/pkg/builder.generalBuilder.build.func1
  |     github.com/tensorchord/envd/pkg/builder/build.go:249
  | golang.org/x/sync/errgroup.(*Group).Go.func1
  |     golang.org/x/[email protected]/errgroup/errgroup.go:75
  | runtime.goexit
  |     runtime/asm_amd64.s:1571
Wraps: (2) Buildkit error
Wraps: (3) failed to solve: process "/usr/bin/bash -c set -euo pipefail\ntouch test.txt\n" did not complete successfully: exit code: 1
  | (1) failed to solve: process "/usr/bin/bash -c set -euo pipefail\ntouch test.txt\n" did not complete successfully: exit code: 1
  | Error types: (1) *builder.BuildkitdErr
Error types: (1) *withstack.withStack (2) *errutil.withPrefix (3) *builder.BuildkitdErr
#46 0.118 touch: cannot touch 'test.txt': Permission denied
#46 ERROR: process "/usr/bin/bash -c set -euo pipefail\ntouch test.txt\n" did not complete successfully: exit code: 1
------
 > importing cache manifest from docker.io/tensorchord/python-cache:envd-v0.3.8:
------
------
 > /usr/bin/bash -c set -euo pipefail
touch test.txt
:
#46 0.118 touch: cannot touch 'test.txt': Permission denied
------
ERRO[2023-01-22T00:26:21+08:00] failed to load docker image: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.41/images/load?quiet=1": context canceled  language-version=v1 tag="pyversion:dev"
error: failed to build the image: failed to build: failed to wait error group: Buildkit error: failed to solve: process "/usr/bin/bash -c set -euo pipefail\ntouch test.txt\n" did not complete successfully: exit code: 1
(1) attached stack trace
  -- stack trace:
  | github.com/tensorchord/envd/pkg/app/build.BuildImage
  |     github.com/tensorchord/envd/pkg/app/build/build.go:81
  | github.com/tensorchord/envd/pkg/app.up
  |     github.com/tensorchord/envd/pkg/app/up.go:165
  | github.com/urfave/cli/v2.(*Command).Run
  |     github.com/urfave/cli/[email protected]/command.go:271
  | github.com/urfave/cli/v2.(*Command).Run
  |     github.com/urfave/cli/[email protected]/command.go:264
  | github.com/urfave/cli/v2.(*App).RunContext
  |     github.com/urfave/cli/[email protected]/app.go:333
  | github.com/urfave/cli/v2.(*App).Run
  |     github.com/urfave/cli/[email protected]/app.go:310
  | main.run
  |     github.com/tensorchord/envd/cmd/envd/main.go:39
  | main.main
  |     github.com/tensorchord/envd/cmd/envd/main.go:67
  | runtime.main
  |     runtime/proc.go:250
Wraps: (2) failed to build the image
Wraps: (3) attached stack trace
  -- stack trace:
  | github.com/tensorchord/envd/pkg/builder.generalBuilder.Build
  |     github.com/tensorchord/envd/pkg/builder/build.go:123
  | github.com/tensorchord/envd/pkg/app/build.BuildImage
  |     github.com/tensorchord/envd/pkg/app/build/build.go:80
  | github.com/tensorchord/envd/pkg/app.up
  |     github.com/tensorchord/envd/pkg/app/up.go:165
  | github.com/urfave/cli/v2.(*Command).Run
  |     github.com/urfave/cli/[email protected]/command.go:271
  | github.com/urfave/cli/v2.(*Command).Run
  |     github.com/urfave/cli/[email protected]/command.go:264
  | github.com/urfave/cli/v2.(*App).RunContext
  |     github.com/urfave/cli/[email protected]/app.go:333
  | github.com/urfave/cli/v2.(*App).Run
  |     github.com/urfave/cli/[email protected]/app.go:310
  | main.run
  |     github.com/tensorchord/envd/cmd/envd/main.go:39
  | main.main
  |     github.com/tensorchord/envd/cmd/envd/main.go:67
  | runtime.main
  |     runtime/proc.go:250
Wraps: (4) failed to build
Wraps: (5) attached stack trace
  -- stack trace:
  | github.com/tensorchord/envd/pkg/builder.generalBuilder.build
  |     github.com/tensorchord/envd/pkg/builder/build.go:316
  | github.com/tensorchord/envd/pkg/builder.generalBuilder.Build
  |     github.com/tensorchord/envd/pkg/builder/build.go:122
  | github.com/tensorchord/envd/pkg/app/build.BuildImage
  |     github.com/tensorchord/envd/pkg/app/build/build.go:80
  | github.com/tensorchord/envd/pkg/app.up
  |     github.com/tensorchord/envd/pkg/app/up.go:165
  | github.com/urfave/cli/v2.(*Command).Run
  |     github.com/urfave/cli/[email protected]/command.go:271
  | github.com/urfave/cli/v2.(*Command).Run
  |     github.com/urfave/cli/[email protected]/command.go:264
  | github.com/urfave/cli/v2.(*App).RunContext
  |     github.com/urfave/cli/[email protected]/app.go:333
  | github.com/urfave/cli/v2.(*App).Run
  |     github.com/urfave/cli/[email protected]/app.go:310
  | main.run
  |     github.com/tensorchord/envd/cmd/envd/main.go:39
  | main.main
  |     github.com/tensorchord/envd/cmd/envd/main.go:67
  | [...repeated from below...]
Wraps: (6) failed to wait error group
Wraps: (7) attached stack trace
  -- stack trace:
  | github.com/tensorchord/envd/pkg/builder.generalBuilder.build.func1
  |     github.com/tensorchord/envd/pkg/builder/build.go:249
  | golang.org/x/sync/errgroup.(*Group).Go.func1
  |     golang.org/x/[email protected]/errgroup/errgroup.go:75
  | runtime.goexit
  |     runtime/asm_amd64.s:1571
Wraps: (8) Buildkit error
Wraps: (9) failed to solve: process "/usr/bin/bash -c set -euo pipefail\ntouch test.txt\n" did not complete successfully: exit code: 1
  | (1) failed to solve: process "/usr/bin/bash -c set -euo pipefail\ntouch test.txt\n" did not complete successfully: exit code: 1
  | Error types: (1) *builder.BuildkitdErr
Error types: (1) *withstack.withStack (2) *errutil.withPrefix (3) *withstack.withStack (4) *errutil.withPrefix (5) *withstack.withStack (6) *errutil.withPrefix (7) *withstack.withStack (8) *errutil.withPrefix (9) *builder.BuildkitdErr
error: failed to solve: process "/usr/bin/bash -c set -euo pipefail\ntouch test.txt\n" did not complete successfully: exit code: 1

Additional Info


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

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