home-assistant / supervisor

:house_with_garden: Home Assistant Supervisor
https://home-assistant.io/hassio/
Apache License 2.0
1.72k stars 627 forks source link

run task "run supervisor" in Dev container terminated with error #4391

Closed ThierryBourbon closed 1 year ago

ThierryBourbon commented 1 year ago

Describe the issue you are experiencing

I have dev environment in vscode Dev container: core dev works fine I am in Dev container: Supervisor dev When I start "run supervisor" in termianl task, the process terminate whit error

What type of installation are you running?

Home Assistant Supervised

Which operating system are you running on?

Debian

Steps to reproduce the issue

  1. Terminal
  2. run task -
  3. run supervisor
  4. ...

Anything in the Supervisor logs that might be useful for us?

*  Executing task: supervisor_run 

Run Supervisor
Starting docker.
Waiting for docker to initialize...
Docker was initialized
Error response from daemon: No such container: hassio_supervisor
Starting Supervisor
Deleted build cache objects:
st1zfmcls1ezlui6e9ahna2ej
sd1htxg6r1yghcp3zkuw7ceke
2iuyxj07h1vfvo5vzf9a826ly

Total reclaimed space: 1.504kB
dev: Pulling from home-assistant/amd64-builder
Digest: sha256:6d938daf990083a5bd14ca339af2e9b80b5b0d1a31b465e1954c7843c0b82b8f
Status: Image is up to date for ghcr.io/home-assistant/amd64-builder:dev
ghcr.io/home-assistant/amd64-builder:dev
[10:45:16] INFO: Setup crosscompiling feature
[10:45:18] INFO: Using host docker setup with '/var/run/docker.sock'
[10:45:18] INFO: Run generic build for: amd64
[10:45:19] INFO: Download image ghcr.io/home-assistant/amd64-base-python:3.11-alpine3.16 for CodeNotary validation
CAS saved locally the trusted public key
CAS automatically trusted the signature found on current connection
UID:            1686389756093188669
Kind:           docker
Name:           docker://ghcr.io/home-assistant/amd64-base-python:3.11-alpine3.16
Hash:           96048454e4c493509da7c6c344d040d2685a937ca8b478b4b4ca628c6a4103ad
Size:           181 MB
Timestamp:      2023-06-10 09:35:56.093188669 +0000 UTC
Metadata:       GITHUB_WORKSPACE="/home/runner/work/docker-base/docker-base"
                platform="linux"
                version="3.11-alpine3.16"
                GITHUB_RUN_NUMBER="169"
                GITHUB_API_URL="https://api.github.com"
                GITHUB_REPOSITORY="home-assistant/docker-base"
                GITHUB_RUN_ID="5229095086"
                GITHUB_ACTION="__home-assistant_builder"
                CI="true"
                GITHUB_ACTOR="pvizeli"
                GITHUB_EVENT_NAME="release"
                GITHUB_SERVER_URL="https://github.com"
                GITHUB_SHA="aa1a2f49ba9e9fb082c77cd04f374e6c434627c6"
                GITHUB_WORKFLOW="Build base images"
                CAS_CI_ENV="github"
                GITHUB_GRAPHQL_URL="https://api.github.com/graphql"
                GITHUB_JOB="build_python"
                GITHUB_REF="refs/tags/2023.06.0"
                architecture="amd64"
                docker={
                    "Architecture": "amd64",
                    "Author": "",
                    "Comment": "buildkit.dockerfile.v0",
                    "Created": "2023-06-10T09:35:53.02166611Z",
                    "DockerVersion": "",
                    "Id": "sha256:96048454e4c493509da7c6c344d040d2685a937ca8b478b4b4ca628c6a4103ad",
                    "Metadata": {
                        "LastTagTime": "0001-01-01T00:00:00Z"
                    },
                    "Os": "linux",
                    "RepoDigests": [],
                    "RepoTags": [
                        "ghcr.io/home-assistant/amd64-base-python:3.11-alpine3.16"
                    ],
                    "Size": 180942932,
                    "VirtualSize": 180942932
                }
                GITHUB_ACTIONS="true"
SignerID:       bm90YXJ5QGhvbWUtYXNzaXN0YW50Lmlv
Apikey revoked: no
Status:         TRUSTED
[10:45:21] INFO: Image ghcr.io/home-assistant/amd64-base-python:3.11-alpine3.16 is trusted
[10:45:21] INFO: Run build for homeassistant/amd64-hassio-supervisor:latest with platform linux/amd64
#1 [internal] load .dockerignore
#1 transferring context:
#1 ...

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 1.31kB 0.2s done
#2 DONE 0.3s

#1 [internal] load .dockerignore
#1 transferring context: 276B 0.2s done
#1 DONE 0.3s

#3 [internal] load metadata for ghcr.io/home-assistant/amd64-base-python:3.11-alpine3.16
#3 DONE 1.3s

#4 [1/9] FROM ghcr.io/home-assistant/amd64-base-python:3.11-alpine3.16@sha256:f295e0a8ccd8007447b1b0e3f585f08aa3bd5a19b88c7c8f9fac30dc705c9d0b
#4 resolve ghcr.io/home-assistant/amd64-base-python:3.11-alpine3.16@sha256:f295e0a8ccd8007447b1b0e3f585f08aa3bd5a19b88c7c8f9fac30dc705c9d0b 0.0s done
#4 DONE 0.0s

#5 [2/9] WORKDIR /usr/src
#5 DONE 0.1s

#6 [internal] load build context
#6 transferring context: 347.10kB 3.7s
#6 transferring context: 6.80MB 8.8s
#6 ...

#7 [3/9] RUN     set -x     && apk add --no-cache         eudev         eudev-libs         git         libffi         libpulse         musl         openssl     && apk add --no-cache --virtual .build-dependencies         build-base         go         && git clone -b "v1.0.2" --depth 1         https://github.com/codenotary/cas     && cd cas     && make cas     && mv cas /usr/bin/cas         && apk del .build-dependencies     && rm -rf /root/go /root/.cache     && rm -rf /usr/src/cas
#0 0.621 + apk add --no-cache eudev eudev-libs git libffi libpulse musl openssl
#0 0.662 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
#0 1.085 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
#0 1.995 (1/28) Installing udev-init-scripts (35-r0)
#0 2.021 Executing udev-init-scripts-35-r0.post-install
#0 2.142 (2/28) Installing eudev-libs (3.2.11-r0)
#0 2.241 (3/28) Installing libblkid (2.38-r1)
#0 2.309 (4/28) Installing zstd-libs (1.5.2-r1)
#0 2.408 (5/28) Installing kmod-libs (29-r2)
#0 2.465 (6/28) Installing eudev (3.2.11-r0)
#0 2.661 (7/28) Installing pcre2 (10.40-r0)
#0 2.746 (8/28) Installing git (2.36.6-r0)
#0 4.217 (9/28) Installing libxau (1.0.9-r0)
#0 4.237 (10/28) Installing libxdmcp (1.1.3-r0)
#0 4.267 (11/28) Installing libxcb (1.15-r0)
#0 4.349 (12/28) Installing libx11 (1.8-r1)
#0 4.540 (13/28) Installing libasyncns (0.8-r1)
#0 4.558 (14/28) Installing dbus-libs (1.14.8-r0)
#0 4.596 (15/28) Installing libltdl (2.4.7-r0)
#0 4.611 (16/28) Installing orc (0.4.32-r0)
#0 4.679 (17/28) Installing libogg (1.3.5-r1)
#0 4.709 (18/28) Installing flac (1.3.4-r0)
#0 4.761 (19/28) Installing alsa-lib (1.2.7.2-r0)
#0 4.878 (20/28) Installing opus (1.3.1-r1)
#0 4.924 (21/28) Installing libvorbis (1.3.7-r0)
#0 4.972 (22/28) Installing libsndfile (1.1.0-r0)
#0 5.032 (23/28) Installing libgomp (11.2.1_git20220219-r2)
#0 5.082 (24/28) Installing soxr (0.1.3-r2)
#0 5.128 (25/28) Installing speexdsp (1.2.0-r0)
#0 5.153 (26/28) Installing tdb-libs (1.4.6-r0)
#0 5.183 (27/28) Installing libpulse (15.0-r2)
#0 5.295 (28/28) Installing openssl (1.1.1u-r1)
#0 5.340 Executing busybox-1.35.0-r17.trigger
#0 5.351 Executing eudev-3.2.11-r0.trigger
#0 5.357 OK: 51 MiB in 82 packages
#0 5.481 + apk add --no-cache --virtual .build-dependencies build-base go
#0 5.494 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
#0 5.725 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
#0 6.452 (1/18) Installing binutils (2.38-r3)
#0 7.041 (2/18) Installing libmagic (5.41-r0)
#0 7.261 (3/18) Installing file (5.41-r0)
#0 7.289 (4/18) Installing libatomic (11.2.1_git20220219-r2)
#0 7.310 (5/18) Installing gmp (6.2.1-r2)
#0 7.385 (6/18) Installing isl22 (0.22-r0)
#0 7.492 (7/18) Installing mpfr4 (4.1.0-r0)
#0 7.729 (8/18) Installing mpc1 (1.2.1-r0)
#0 7.758 (9/18) Installing gcc (11.2.1_git20220219-r2)
#7 ...

#6 [internal] load build context
#6 transferring context: 9.93MB 13.9s
#6 transferring context: 13.09MB 19.0s
#6 ...

#7 [3/9] RUN     set -x     && apk add --no-cache         eudev         eudev-libs         git         libffi         libpulse         musl         openssl     && apk add --no-cache --virtual .build-dependencies         build-base         go         && git clone -b "v1.0.2" --depth 1         https://github.com/codenotary/cas     && cd cas     && make cas     && mv cas /usr/bin/cas         && apk del .build-dependencies     && rm -rf /root/go /root/.cache     && rm -rf /usr/src/cas
#7 11.33 (10/18) Installing musl-dev (1.2.3-r3)
#7 11.57 (11/18) Installing libc-dev (0.7.2-r3)
#7 11.59 (12/18) Installing g++ (11.2.1_git20220219-r2)
#7 13.93 (13/18) Installing make (4.3-r0)
#7 13.98 (14/18) Installing fortify-headers (1.1-r1)
#7 14.01 (15/18) Installing patch (2.7.6-r7)
#7 14.09 (16/18) Installing build-base (0.5-r3)
#7 14.11 (17/18) Installing go (1.18.7-r0)
#7 ...

#6 [internal] load build context
#6 transferring context: 15.24MB 24.1s
#6 transferring context: 17.75MB 25.3s done
#6 CANCELED

#7 [3/9] RUN     set -x     && apk add --no-cache         eudev         eudev-libs         git         libffi         libpulse         musl         openssl     && apk add --no-cache --virtual .build-dependencies         build-base         go         && git clone -b "v1.0.2" --depth 1         https://github.com/codenotary/cas     && cd cas     && make cas     && mv cas /usr/bin/cas         && apk del .build-dependencies     && rm -rf /root/go /root/.cache     && rm -rf /usr/src/cas
#7 24.66 ERROR: Failed to create usr/lib/go/src/time/tzdata/zipdata.go: Connection aborted
#7 24.66 ERROR: go-1.18.7-r0: IO ERROR
#7 25.04 (18/18) Installing .build-dependencies (20230618.104548)
#7 25.04 Executing busybox-1.35.0-r17.trigger
#7 25.06 1 error; 230 MiB in 99 packages
#7 ERROR: process "/bin/ash -o pipefail -c set -x     && apk add --no-cache         eudev         eudev-libs         git         libffi         libpulse         musl         openssl     && apk add --no-cache --virtual .build-dependencies         build-base         go         && git clone -b \"v${CAS_VERSION}\" --depth 1         https://github.com/codenotary/cas     && cd cas     && make cas     && mv cas /usr/bin/cas         && apk del .build-dependencies     && rm -rf /root/go /root/.cache     && rm -rf /usr/src/cas" did not complete successfully: exit code: 1
------
 > [3/9] RUN     set -x     && apk add --no-cache         eudev         eudev-libs         git         libffi         libpulse         musl         openssl     && apk add --no-cache --virtual .build-dependencies         build-base         go         && git clone -b "v1.0.2" --depth 1         https://github.com/codenotary/cas     && cd cas     && make cas     && mv cas /usr/bin/cas         && apk del .build-dependencies     && rm -rf /root/go /root/.cache     && rm -rf /usr/src/cas:
#7 13.93 (13/18) Installing make (4.3-r0)
#7 13.98 (14/18) Installing fortify-headers (1.1-r1)
#7 14.01 (15/18) Installing patch (2.7.6-r7)
#7 14.09 (16/18) Installing build-base (0.5-r3)
#7 14.11 (17/18) Installing go (1.18.7-r0)
#7 24.66 ERROR: Failed to create usr/lib/go/src/time/tzdata/zipdata.go: Connection aborted
#7 24.66 ERROR: go-1.18.7-r0: IO ERROR
#7 25.04 (18/18) Installing .build-dependencies (20230618.104548)
#7 25.04 Executing busybox-1.35.0-r17.trigger
#7 25.06 1 error; 230 MiB in 99 packages
------
Dockerfile:14
--------------------
  13 |     WORKDIR /usr/src
  14 | >>> RUN \
  15 | >>>     set -x \
  16 | >>>     && apk add --no-cache \
  17 | >>>         eudev \
  18 | >>>         eudev-libs \
  19 | >>>         git \
  20 | >>>         libffi \
  21 | >>>         libpulse \
  22 | >>>         musl \
  23 | >>>         openssl \
  24 | >>>     && apk add --no-cache --virtual .build-dependencies \
  25 | >>>         build-base \
  26 | >>>         go \
  27 | >>>     \
  28 | >>>     && git clone -b "v${CAS_VERSION}" --depth 1 \
  29 | >>>         https://github.com/codenotary/cas \
  30 | >>>     && cd cas \
  31 | >>>     && make cas \
  32 | >>>     && mv cas /usr/bin/cas \
  33 | >>>     \
  34 | >>>     && apk del .build-dependencies \
  35 | >>>     && rm -rf /root/go /root/.cache \
  36 | >>>     && rm -rf /usr/src/cas
  37 |     
--------------------
ERROR: failed to solve: process "/bin/ash -o pipefail -c set -x     && apk add --no-cache         eudev         eudev-libs         git         libffi         libpulse         musl         openssl     && apk add --no-cache --virtual .build-dependencies         build-base         go         && git clone -b \"v${CAS_VERSION}\" --depth 1         https://github.com/codenotary/cas     && cd cas     && make cas     && mv cas /usr/bin/cas         && apk del .build-dependencies     && rm -rf /root/go /root/.cache     && rm -rf /usr/src/cas" did not complete successfully: exit code: 1

 *  The terminal process "/usr/bin/zsh '-c', 'supervisor_run'" terminated with exit code: 1. 
 *  Press any key to close the terminal.The log of this command :

System Health information

no

Supervisor diagnostics

No response

Additional information

No response

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.