Home Quick start All builds News Donations
More
Log In
Light Theme Docs
Workers

SparrowCI Report - gh-melezhik-sparrowci-docker-task | [image: melezhik/sparrow:debian]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 2969
Status: FAIL
Image: melezhik/sparrow:debian
Worker status: OK
---
Date: 09.02.2023 @ 20:02
Time elapsed: 134 sec
---
SCM: https://github.com/melezhik/sparrowci-docker-task.git
Git sha: 28f6f71
Git comment: Update sparrow.yaml
image:
  - melezhik/sparrow:debian
  
tasks:
  -
    name: run-docker
    default: true
    depends:
      -
        name: install-docker-cli
    language: Bash
    code: |
      set -e
      set -x
      id
      export user=$(whoami)
      sudo --preserve-env=user usermod -a -G docker worker
      #newgrp docker
      id
      docker run hello-world
  -
    name: install-docker-cli
    plugin: docker-engine
    config:
      cli_only: true
20:01:39 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
20:01:42 :: [repository] - installing docker-engine, version 0.001016
[task run: task.bash - install-docker-cli]
[dump code: task.bash]
[1] set -e
[2] 
[3] cli_only=$(config cli_only)
[4] 
[5] set -x
[6] 
[7] echo "cli_only: ${cli_only}"
[8] 
[9] export DEBIAN_FRONTEND=noninteractive
[10] 
[11] sudo apt-get update
[12] 
[13] sudo apt-get update
[14] sudo apt-get install -y \
[15]     ca-certificates \
[16]     curl \
[17]     gnupg \
[18]     lsb-release
[19] 
[20] 
[21] sudo mkdir -m 0755 -p /etc/apt/keyrings
[22] 
[23] curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
[24] 
[25] echo \
[26]   "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
[27]   $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
[28] 
[29] sudo apt-get update
[30] 
[31] echo "current user:" $(whoami)
[32] 
[33] export user=$(whoami)
[34] 
[35] if test "$cli_only" = "True"; then
[36]   sudo apt-get install -y docker-ce-cli
[37]   sudo groupadd docker
[38]   sudo --preserve-env=user usermod -a -G docker $user
[39] else
[40]   sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
[41]   sudo --preserve-env=user usermod -a -G docker $user
[42] fi
[43] 
[44] 
[45] 
[task stdout]
20:01:44 :: cli_only: True
20:01:44 :: Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
20:01:44 :: Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
20:01:44 :: Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
20:01:44 :: Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB]
20:01:44 :: Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [222 kB]
20:01:45 :: Get:6 https://dl.cloudsmith.io/public/nxadm-pkgs/rakudo-pkg/deb/debian bullseye InRelease [5264 B]
20:01:45 :: Fetched 8618 kB in 1s (5747 kB/s)
20:01:46 :: Reading package lists...
20:01:46 :: Hit:1 http://deb.debian.org/debian bullseye InRelease
20:01:46 :: Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease
20:01:46 :: Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
20:01:46 :: Get:4 https://dl.cloudsmith.io/public/nxadm-pkgs/rakudo-pkg/deb/debian bullseye InRelease [5264 B]
20:01:47 :: Fetched 5264 B in 0s (12.4 kB/s)
20:01:47 :: Reading package lists...
20:01:48 :: Reading package lists...
20:01:48 :: Building dependency tree...
20:01:48 :: Reading state information...
20:01:48 :: ca-certificates is already the newest version (20210119).
20:01:48 :: ca-certificates set to manually installed.
20:01:48 :: gnupg is already the newest version (2.2.27-2+deb11u2).
20:01:48 :: gnupg set to manually installed.
20:01:48 :: lsb-release is already the newest version (11.1.0).
20:01:48 :: The following additional packages will be installed:
20:01:48 ::   libcurl4
20:01:48 :: The following packages will be upgraded:
20:01:48 ::   curl libcurl4
20:01:48 :: 2 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
20:01:48 :: Need to get 616 kB of archives.
20:01:48 :: After this operation, 2048 B of additional disk space will be used.
20:01:48 :: Get:1 http://deb.debian.org/debian-security bullseye-security/main amd64 curl amd64 7.74.0-1.3+deb11u5 [270 kB]
20:01:48 :: Get:2 http://deb.debian.org/debian-security bullseye-security/main amd64 libcurl4 amd64 7.74.0-1.3+deb11u5 [346 kB]
20:01:48 :: Fetched 616 kB in 0s (11.4 MB/s)
20:01:48 :: (Reading database ... 
20:01:48 :: (Reading database ... 5%
20:01:48 :: (Reading database ... 10%
20:01:48 :: (Reading database ... 15%
20:01:48 :: (Reading database ... 20%
20:01:48 :: (Reading database ... 25%
20:01:48 :: (Reading database ... 30%
20:01:48 :: (Reading database ... 35%
20:01:48 :: (Reading database ... 40%
20:01:48 :: (Reading database ... 45%
20:01:48 :: (Reading database ... 50%
20:01:48 :: (Reading database ... 55%
20:01:48 :: (Reading database ... 60%
20:01:48 :: (Reading database ... 65%
20:01:48 :: (Reading database ... 70%
20:01:48 :: (Reading database ... 75%
20:01:48 :: (Reading database ... 80%
20:01:48 :: (Reading database ... 85%
20:01:48 :: (Reading database ... 90%
20:01:48 :: (Reading database ... 95%
20:01:48 :: (Reading database ... 100%
20:01:48 :: (Reading database ... 19016 files and directories currently installed.)
20:01:48 :: Preparing to unpack .../curl_7.74.0-1.3+deb11u5_amd64.deb ...
20:01:48 :: Unpacking curl (7.74.0-1.3+deb11u5) over (7.74.0-1.3+deb11u3) ...
20:01:49 :: Preparing to unpack .../libcurl4_7.74.0-1.3+deb11u5_amd64.deb ...
20:01:49 :: Unpacking libcurl4:amd64 (7.74.0-1.3+deb11u5) over (7.74.0-1.3+deb11u3) ...
20:01:49 :: Setting up libcurl4:amd64 (7.74.0-1.3+deb11u5) ...
20:01:49 :: Setting up curl (7.74.0-1.3+deb11u5) ...
20:01:49 :: Processing triggers for libc-bin (2.31-13+deb11u5) ...
20:01:49 :: Hit:1 http://deb.debian.org/debian bullseye InRelease
20:01:49 :: Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease
20:01:49 :: Get:3 https://download.docker.com/linux/debian bullseye InRelease [43.3 kB]
20:01:49 :: Hit:4 http://deb.debian.org/debian bullseye-updates InRelease
20:01:49 :: Get:5 https://dl.cloudsmith.io/public/nxadm-pkgs/rakudo-pkg/deb/debian bullseye InRelease [5264 B]
20:01:49 :: Get:6 https://download.docker.com/linux/debian bullseye/stable amd64 Packages [18.1 kB]
20:01:49 :: Fetched 66.7 kB in 0s (142 kB/s)
20:01:50 :: Reading package lists...
20:01:50 :: current user: worker
20:01:50 :: Reading package lists...
20:01:50 :: Building dependency tree...
20:01:50 :: Reading state information...
20:01:51 :: The following additional packages will be installed:
20:01:51 ::   docker-buildx-plugin docker-compose-plugin docker-scan-plugin
20:01:51 :: The following NEW packages will be installed:
20:01:51 ::   docker-buildx-plugin docker-ce-cli docker-compose-plugin docker-scan-plugin
20:01:51 :: 0 upgraded, 4 newly installed, 0 to remove and 13 not upgraded.
20:01:51 :: Need to get 52.3 MB of archives.
20:01:51 :: After this operation, 164 MB of additional disk space will be used.
20:01:51 :: Get:1 https://download.docker.com/linux/debian bullseye/stable amd64 docker-buildx-plugin amd64 0.10.2-1~debian.11~bullseye [25.9 MB]
20:01:51 :: Get:2 https://download.docker.com/linux/debian bullseye/stable amd64 docker-ce-cli amd64 5:23.0.0-1~debian.11~bullseye [13.2 MB]
20:01:51 :: Get:3 https://download.docker.com/linux/debian bullseye/stable amd64 docker-compose-plugin amd64 2.15.1-1~debian.11~bullseye [9572 kB]
20:01:51 :: Get:4 https://download.docker.com/linux/debian bullseye/stable amd64 docker-scan-plugin amd64 0.23.0~debian-bullseye [3623 kB]
20:01:52 :: Fetched 52.3 MB in 1s (59.5 MB/s)
20:01:52 :: Selecting previously unselected package docker-buildx-plugin.
20:01:52 :: (Reading database ... 
20:01:52 :: (Reading database ... 5%
20:01:52 :: (Reading database ... 10%
20:01:52 :: (Reading database ... 15%
20:01:52 :: (Reading database ... 20%
20:01:52 :: (Reading database ... 25%
20:01:52 :: (Reading database ... 30%
20:01:52 :: (Reading database ... 35%
20:01:52 :: (Reading database ... 40%
20:01:52 :: (Reading database ... 45%
20:01:52 :: (Reading database ... 50%
20:01:52 :: (Reading database ... 55%
20:01:52 :: (Reading database ... 60%
20:01:52 :: (Reading database ... 65%
20:01:52 :: (Reading database ... 70%
20:01:52 :: (Reading database ... 75%
20:01:52 :: (Reading database ... 80%
20:01:52 :: (Reading database ... 85%
20:01:52 :: (Reading database ... 90%
20:01:52 :: (Reading database ... 95%
20:01:52 :: (Reading database ... 100%
20:01:52 :: (Reading database ... 19016 files and directories currently installed.)
20:01:52 :: Preparing to unpack .../docker-buildx-plugin_0.10.2-1~debian.11~bullseye_amd64.deb ...
20:01:52 :: Unpacking docker-buildx-plugin (0.10.2-1~debian.11~bullseye) ...
20:01:53 :: Selecting previously unselected package docker-ce-cli.
20:01:53 :: Preparing to unpack .../docker-ce-cli_5%3a23.0.0-1~debian.11~bullseye_amd64.deb ...
20:01:53 :: Unpacking docker-ce-cli (5:23.0.0-1~debian.11~bullseye) ...
20:01:54 :: Selecting previously unselected package docker-compose-plugin.
20:01:54 :: Preparing to unpack .../docker-compose-plugin_2.15.1-1~debian.11~bullseye_amd64.deb ...
20:01:54 :: Unpacking docker-compose-plugin (2.15.1-1~debian.11~bullseye) ...
20:01:55 :: Selecting previously unselected package docker-scan-plugin.
20:01:55 :: Preparing to unpack .../docker-scan-plugin_0.23.0~debian-bullseye_amd64.deb ...
20:01:55 :: Unpacking docker-scan-plugin (0.23.0~debian-bullseye) ...
20:01:55 :: Setting up docker-scan-plugin (0.23.0~debian-bullseye) ...
20:01:55 :: Setting up docker-buildx-plugin (0.10.2-1~debian.11~bullseye) ...
20:01:55 :: Setting up docker-compose-plugin (2.15.1-1~debian.11~bullseye) ...
20:01:55 :: Setting up docker-ce-cli (5:23.0.0-1~debian.11~bullseye) ...
[task stderr]
20:01:56 :: ++ echo 'cli_only: True'
20:01:56 :: ++ export DEBIAN_FRONTEND=noninteractive
20:01:56 :: ++ DEBIAN_FRONTEND=noninteractive
20:01:56 :: ++ sudo apt-get update
20:01:56 :: ++ sudo apt-get update
20:01:56 :: ++ sudo apt-get install -y ca-certificates curl gnupg lsb-release
20:01:56 :: debconf: delaying package configuration, since apt-utils is not installed
20:01:56 :: ++ sudo mkdir -m 0755 -p /etc/apt/keyrings
20:01:56 :: ++ curl -fsSL https://download.docker.com/linux/debian/gpg
20:01:56 :: ++ sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
20:01:56 :: ++ sudo tee /etc/apt/sources.list.d/docker.list
20:01:56 :: +++ dpkg --print-architecture
20:01:56 :: +++ lsb_release -cs
20:01:56 :: ++ echo 'deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian   bullseye stable'
20:01:56 :: ++ sudo apt-get update
20:01:56 :: +++ whoami
20:01:56 :: ++ echo 'current user:' worker
20:01:56 :: +++ whoami
20:01:56 :: ++ export user=worker
20:01:56 :: ++ user=worker
20:01:56 :: ++ test True = True
20:01:56 :: ++ sudo apt-get install -y docker-ce-cli
20:01:56 :: debconf: delaying package configuration, since apt-utils is not installed
20:01:56 :: ++ sudo groupadd docker
20:01:56 :: ++ sudo --preserve-env=user usermod -a -G docker worker
20:00:54 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
source directory does not yet exist, download source archive from storage
20:00:57 :: [repository] - installing pack-unpack, version 0.000001
[task run: task.bash - unpack source archive]
[dump code: task.bash]
[1] set -e
[2] 
[3] file=$(config file)
[4] dir=$(config dir)
[5] 
[6] echo "tar -xzf $file "
[7] 
[8] tar -xzf $file
[9] 
[10] if test $dir; then
[11]   ls -l $dir
[12] fi
[13] 
[14] 
[task stdout]
20:00:59 :: tar -xzf source.tar.gz 
[task run: task.bash - tasks/run-docker]
[dump code: task.bash]
[1] set -e
[2] set -x
[3] id
[4] export user=$(whoami)
[5] sudo --preserve-env=user usermod -a -G docker worker
[6] #newgrp docker
[7] id
[8] docker run hello-world
[9] 
[task stdout]
20:01:58 :: uid=1000(worker) gid=1000(worker) groups=1000(worker),1001(wheel)
20:01:58 :: uid=1000(worker) gid=1000(worker) groups=1000(worker),1001(wheel)
[task stderr]
20:01:58 :: ++ id
20:01:58 :: +++ whoami
20:01:58 :: ++ export user=worker
20:01:58 :: ++ user=worker
20:01:58 :: ++ sudo --preserve-env=user usermod -a -G docker worker
20:01:58 :: ++ id
20:01:58 :: ++ docker run hello-world
20:01:58 :: docker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied.
20:01:58 :: See 'docker run --help'.
20:01:58 :: task exit status: 126
20:01:58 :: task tasks/run-docker FAILED
The spawned command 'docker exec -i sparrow-worker sh -l /var/.sparrowdo/env/run-docker/.sparrowdo/sparrowrun.sh' exited unsuccessfully (exit code: 126, signal: 0)
  in block <unit> at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/resources/D89191B85489D8D1AA2CA29B23BB54732926E4C8 line 13
  in sub MAIN at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/bin/sparrowdo line 3
  in block <unit> at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/bin/sparrowdo line 1