Git Product home page Git Product logo

Comments (7)

danhunsaker avatar danhunsaker commented on May 3, 2024 1

Since act runs workflows in Docker, run-on-arch-action runs using Docker-in-Docker (DinD), which is actually a misleading name, since what's really going on is act is setting up the various Docker actions on the host system, rather than inside the job's container. Without getting into all the technical details on why running Docker actually inside a container is so difficult in the first place, I'll just point out that since the run-on-arch-action container has to run on the host system, the volumes it mounts have to exist on the host system as well. Any that don't end up being empty folders in the container, leading to this error.

There isn't really a great way to work around this other than avoiding DinD to begin with. It might be possible, for example, to use QEMU directly instead of letting Docker abstract it for us. But any approach would be a massive overhaul of the action, potentially even worse if we wouldn't be able to use Dockerfiles to define supported distro/arch combos anymore.

This doesn't really fix the problem, but hopefully it explains it a bit better so a proper solution can be devised.

from run-on-arch-action.

elijahr avatar elijahr commented on May 3, 2024

@tcdude what is your workflow config yml, and what act command are you running?

from run-on-arch-action.

tcdude avatar tcdude commented on May 3, 2024

Here's the yml (I stripped the end, because it's not part of the issue):

name: Linux-ARM

on: push

jobs:
  build_job:
    runs-on: ubuntu-18.04
    name: Build on ${{ matrix.distro }} ${{ matrix.arch }}

    # Run steps for both armv6 and aarch64
    strategy:
      matrix:
        include:
          - arch: aarch64
            distro: stretch
          - arch: armv6
            distro: jessie

    steps:
      - uses: actions/[email protected]
      - uses: uraimo/[email protected]
        name: Build artifact
        id: build
        with:
          arch: ${{ matrix.arch }}
          distro: ${{ matrix.distro }}

          # Not required, but speeds up builds
          githubToken: ${{ github.token }}

          # Create an artifacts directory
          setup: |
            mkdir -p "${PWD}/artifacts"

          # Mount the artifacts directory as /artifacts in the container
          dockerRunArgs: |
            --volume "${PWD}/artifacts:/artifacts"

          # Pass the correct artifact name
          env: | # YAML, but pipe character is necessary
            artifact_name: krafix-linux-${{ matrix.arch }}

          # The shell to run commands with in the container
          shell: /bin/bash

          # Install some dependencies in the container. This speeds up builds if
          # you are also using githubToken. Any dependencies installed here will
          # be part of the container image that gets cached, so subsequent
          # builds don't have to re-install them. The image layer is cached
          # publicly in your project's package repository, so it is vital that
          # no secrets are present in the container state or logs.
          install: |
              apt-get update -y -q
              apt-get upgrade -y -q
              apt-get install -y -q libasound2-dev libxinerama-dev libgl1-mesa-dev libxi-dev git build-essential

          # Produce a binary artifact and place it in the mounted volume
          run: |
            echo " * Get Submodules"
            git submodule update --init --recursive

            echo " * Get Kinc"
            git clone --recursive https://github.com/Kode/Kinc.git
            echo " * Get Node.js"
            git clone https://github.com/Kode/nodejs_bin.git --depth 1
            echo " * Setup Node.js"
            nodejs_bin/copysysbin.sh
            echo " * Compile"
            nodejs_bin/node Kinc/make --compile  || nodejs_bin/node-linuxarm Kinc/make --compile
            echo " * Copying artifact"
            cp build/Release/krafix "/artifacts/${artifact_name}"

...
# More stuff happening, but not using run-on-arch-action related elements

And the act command was simply act -j build_job

FYI: this workflow as is works perfectly fine when executed on GitHub Actions.
I also tried to run the minimal example in the README.md, which fails with the exact same error as stated in issue above

from run-on-arch-action.

uraimo avatar uraimo commented on May 3, 2024

I wonder if for some reason we weren't able to create run-on-arch-commands.sh, that path starting with / is a bit strange but since run-on-arch.sh seems to be already there it should be ok.
Does act stores more logs somewhere?

Edit: please try running it with -v, I don't have a linux box available right now.

from run-on-arch-action.

tcdude avatar tcdude commented on May 3, 2024

Here's the output from act with the -v flag for the Basic example on the README.md :

time="2021-05-06T20:30:03+02:00" level=debug msg="Loading environment from /home/tc/tmp/act-test/.env"
time="2021-05-06T20:30:03+02:00" level=debug msg="Loading secrets from /home/tc/tmp/act-test/.secrets"
time="2021-05-06T20:30:03+02:00" level=debug msg="Loading workflows from '/home/tc/tmp/act-test/.github/workflows'"
time="2021-05-06T20:30:03+02:00" level=debug msg="Reading workflow '/home/tc/tmp/act-test/.github/workflows/linux-arm.yml'"
time="2021-05-06T20:30:03+02:00" level=debug msg="Planning job: armv7_job"
time="2021-05-06T20:30:03+02:00" level=debug msg="Loading slug from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:03+02:00" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
time="2021-05-06T20:30:03+02:00" level=warning msg="unable to get git revision: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:03+02:00" level=debug msg="Loading revision from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:03+02:00" level=warning msg="unable to get git ref: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:03+02:00" level=debug msg="context env => map[ACT:true]"
[linux-arm.yml/Build on ubuntu-18.04 armv7] 🚀  Start image=nektos/act-environments-ubuntu:18.04
time="2021-05-06T20:30:03+02:00" level=debug msg="Loading slug from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:03+02:00" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
time="2021-05-06T20:30:03+02:00" level=warning msg="unable to get git revision: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:03+02:00" level=debug msg="Loading revision from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:03+02:00" level=warning msg="unable to get git ref: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
[linux-arm.yml/Build on ubuntu-18.04 armv7]   🐳  docker pull nektos/act-environments-ubuntu:18.04
time="2021-05-06T20:30:04+02:00" level=debug msg="Image exists? true"
[linux-arm.yml/Build on ubuntu-18.04 armv7]   🐳  docker create image=nektos/act-environments-ubuntu:18.04 platform=linux/amd64 entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[linux-arm.yml/Build on ubuntu-18.04 armv7] Created container name=act-linux-arm-yml-Build-on-ubuntu-18-04-armv7 id=8542833513b3118a74baffade2932d6578d5772c439a14620d732a6071b85e39 from image nektos/act-environments-ubuntu:18.04 (platform: linux/amd64)
[linux-arm.yml/Build on ubuntu-18.04 armv7] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp]
[linux-arm.yml/Build on ubuntu-18.04 armv7]   🐳  docker run image=nektos/act-environments-ubuntu:18.04 platform=linux/amd64 entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[linux-arm.yml/Build on ubuntu-18.04 armv7] Starting container: 8542833513b3118a74baffade2932d6578d5772c439a14620d732a6071b85e39
[linux-arm.yml/Build on ubuntu-18.04 armv7] Started container: 8542833513b3118a74baffade2932d6578d5772c439a14620d732a6071b85e39
[linux-arm.yml/Build on ubuntu-18.04 armv7]   🐳  docker cp src=/home/tc/tmp/act-test/. dst=/home/tc/tmp/act-test
[linux-arm.yml/Build on ubuntu-18.04 armv7] Exec command '[mkdir -p /home/tc/tmp/act-test]'
time="2021-05-06T20:30:04+02:00" level=debug msg="Writing tarball /tmp/act426151405 from /home/tc/tmp/act-test/."
time="2021-05-06T20:30:04+02:00" level=debug msg="Stripping prefix:/home/tc/tmp/act-test/ src:/home/tc/tmp/act-test/."
[linux-arm.yml/Build on ubuntu-18.04 armv7] Extracting content from '/tmp/act426151405' to '/home/tc/tmp/act-test'
time="2021-05-06T20:30:04+02:00" level=debug msg="Writing entry to tarball workflow/event.json len:2"
time="2021-05-06T20:30:04+02:00" level=debug msg="Writing entry to tarball workflow/envs.txt len:0"
time="2021-05-06T20:30:04+02:00" level=debug msg="Writing entry to tarball home/.act len:0"
[linux-arm.yml/Build on ubuntu-18.04 armv7] Extracting content to '/home/tc/tmp'
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading slug from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git revision: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading revision from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git ref: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading slug from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git revision: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading revision from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git ref: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="context env => map[ACT:true]"
time="2021-05-06T20:30:04+02:00" level=debug msg="context env => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_ENV:/home/tc/tmp/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/home/tc/tmp/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_REF: GITHUB_REPOSITORY: GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA: GITHUB_TOKEN: GITHUB_WORKFLOW:linux-arm.yml GITHUB_WORKSPACE:/home/tc/tmp/act-test HOME:/home/tc/tmp/home ImageOS:ubuntu18.04]"
[linux-arm.yml/Build on ubuntu-18.04 armv7] setupEnv => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_ENV:/home/tc/tmp/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/home/tc/tmp/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_REF: GITHUB_REPOSITORY: GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA: GITHUB_TOKEN: GITHUB_WORKFLOW:linux-arm.yml GITHUB_WORKSPACE:/home/tc/tmp/act-test HOME:/home/tc/tmp/home ImageOS:ubuntu18.04]
[linux-arm.yml/Build on ubuntu-18.04 armv7] ⭐  Run actions/[email protected]
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading slug from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git revision: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading revision from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git ref: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
[linux-arm.yml/Build on ubuntu-18.04 armv7] Skipping actions/checkout
[linux-arm.yml/Build on ubuntu-18.04 armv7]   ✅  Success - actions/[email protected]
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading slug from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git revision: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading revision from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git ref: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading slug from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git revision: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading revision from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git ref: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="context env => map[ACT:true]"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading slug from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git revision: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading revision from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git ref: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="context env => map[ACT:true]"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading slug from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git revision: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading revision from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git ref: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="context env => map[ACT:true]"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading slug from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git revision: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading revision from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git ref: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="context env => map[ACT:true]"
time="2021-05-06T20:30:04+02:00" level=debug msg="Evaluating 'github['token']' instead of 'github.token'"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading slug from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git revision: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="Loading revision from git directory '/home/tc/tmp/act-test/.git'"
time="2021-05-06T20:30:04+02:00" level=warning msg="unable to get git ref: open /home/tc/tmp/act-test/.git/refs/heads/master: no such file or directory"
time="2021-05-06T20:30:04+02:00" level=debug msg="context env => map[ACT:true]"
time="2021-05-06T20:30:04+02:00" level=debug msg="context env => map[ACT:true CI:true GITHUB_ACTION:runcmd GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_ENV:/home/tc/tmp/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/home/tc/tmp/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_REF: GITHUB_REPOSITORY: GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA: GITHUB_TOKEN: GITHUB_WORKFLOW:linux-arm.yml GITHUB_WORKSPACE:/home/tc/tmp/act-test HOME:/home/tc/tmp/home INPUT_ARCH:armv7 INPUT_DISTRO:ubuntu18.04 INPUT_GITHUBTOKEN:${{ github.token }} INPUT_RUN:uname -a\necho ::set-output name=uname::$(uname -a)\n ImageOS:ubuntu18.04]"
time="2021-05-06T20:30:04+02:00" level=debug msg="Evaluating 'github['token']' instead of 'github.token'"
[linux-arm.yml/Build on ubuntu-18.04 armv7] setupEnv => map[ACT:true CI:true GITHUB_ACTION:runcmd GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_ENV:/home/tc/tmp/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/home/tc/tmp/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_REF: GITHUB_REPOSITORY: GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA: GITHUB_TOKEN: GITHUB_WORKFLOW:linux-arm.yml GITHUB_WORKSPACE:/home/tc/tmp/act-test HOME:/home/tc/tmp/home INPUT_ARCH:armv7 INPUT_DISTRO:ubuntu18.04 INPUT_GITHUBTOKEN: INPUT_RUN:uname -a
echo ::set-output name=uname::$(uname -a)
 ImageOS:ubuntu18.04]
[linux-arm.yml/Build on ubuntu-18.04 armv7] ⭐  Run Run commands
[linux-arm.yml/Build on ubuntu-18.04 armv7]   ☁  git clone 'https://github.com/uraimo/run-on-arch-action' # ref=v2.0.5
[linux-arm.yml/Build on ubuntu-18.04 armv7]   cloning https://github.com/uraimo/run-on-arch-action to /home/tc/.cache/act/[email protected]
[linux-arm.yml/Build on ubuntu-18.04 armv7] Cloned https://github.com/uraimo/run-on-arch-action to /home/tc/.cache/act/[email protected]
[linux-arm.yml/Build on ubuntu-18.04 armv7] Checked out v2.0.5
time="2021-05-06T20:30:05+02:00" level=debug msg="Read action &{Run on architecture Umberto Raimondi, Elijah Shaw-Rutschman Run commands in a Linux container with a specific CPU architecture (armv6, armv7, aarch64, s390x, ppc64le) map[arch:{CPU architecture: armv6, armv7, aarch64, s390x, ppc64le. false aarch64} distro:{Linux distribution name: ubuntu16.04, ubuntu18.04, ubuntu20.04, buster, stretch, jessie, fedora_latest, alpine_latest. false ubuntu18.04} dockerRunArgs:{Additional arguments to pass to docker run, such as volume mappings. See README for example usage. false } env:{Environment variables to propagate to the container. YAML, but must begin with a | character. These variables will be available in both run and setup. false } githubToken:{Your GitHub token, used for caching Docker images in your project's public package registry. Usually this would just be $\\{{ github.token }}. This speeds up builds and is highly recommended. true } install:{Shell commands to execute in the container as part of docker build, such as installing dependencies. This speeds up subsequent builds if githubToken is also used, but note that the image layer will be publicly available in your projects GitHub Package Registry, so make sure the resulting image does not have any secrets cached in logs or state. false } run:{Shell commands to execute in the container. true } setup:{Shell commands to execute on the host before running the container, such as creating directories for volume mappings. See README for example usage. false } shell:{The shell to run commands with in the container. Default: /bin/sh on alpine (because Alpine uses BusyBox), /bin/bash for other distros. false }] map[] {node12 map[] src/run-on-arch.js  [] []} {green cpu}} from '/home/tc/.cache/act/[email protected]/action.yml'"
time="2021-05-06T20:30:05+02:00" level=debug msg="About to run action &{Run on architecture Umberto Raimondi, Elijah Shaw-Rutschman Run commands in a Linux container with a specific CPU architecture (armv6, armv7, aarch64, s390x, ppc64le) map[arch:{CPU architecture: armv6, armv7, aarch64, s390x, ppc64le. false aarch64} distro:{Linux distribution name: ubuntu16.04, ubuntu18.04, ubuntu20.04, buster, stretch, jessie, fedora_latest, alpine_latest. false ubuntu18.04} dockerRunArgs:{Additional arguments to pass to docker run, such as volume mappings. See README for example usage. false } env:{Environment variables to propagate to the container. YAML, but must begin with a | character. These variables will be available in both run and setup. false } githubToken:{Your GitHub token, used for caching Docker images in your project's public package registry. Usually this would just be $\\{{ github.token }}. This speeds up builds and is highly recommended. true } install:{Shell commands to execute in the container as part of docker build, such as installing dependencies. This speeds up subsequent builds if githubToken is also used, but note that the image layer will be publicly available in your projects GitHub Package Registry, so make sure the resulting image does not have any secrets cached in logs or state. false } run:{Shell commands to execute in the container. true } setup:{Shell commands to execute on the host before running the container, such as creating directories for volume mappings. See README for example usage. false } shell:{The shell to run commands with in the container. Default: /bin/sh on alpine (because Alpine uses BusyBox), /bin/bash for other distros. false }] map[] {node12 map[] src/run-on-arch.js  [] []} {green cpu}}"
time="2021-05-06T20:30:05+02:00" level=debug msg="type=3 actionDir=/home/tc/.cache/act/[email protected] actionPath= Workdir=/home/tc/tmp/act-test ActionCacheDir=/home/tc/.cache/act [email protected] containerActionDir=/actions"
[linux-arm.yml/Build on ubuntu-18.04 armv7]   🐳  docker cp src=/home/tc/.cache/act/[email protected] dst=/actions/
[linux-arm.yml/Build on ubuntu-18.04 armv7] Exec command '[mkdir -p /actions/]'
time="2021-05-06T20:30:05+02:00" level=debug msg="Writing tarball /tmp/act436607592 from /home/tc/.cache/act/[email protected]"
time="2021-05-06T20:30:05+02:00" level=debug msg="Stripping prefix:/home/tc/.cache/act/ src:/home/tc/.cache/act/[email protected]"
[linux-arm.yml/Build on ubuntu-18.04 armv7] Extracting content from '/tmp/act436607592' to '/actions/'
time="2021-05-06T20:30:05+02:00" level=debug msg="executing remote job container: [node /actions/[email protected]/src/run-on-arch.js]"
[linux-arm.yml/Build on ubuntu-18.04 armv7] Exec command '[node /actions/[email protected]/src/run-on-arch.js]'
[linux-arm.yml/Build on ubuntu-18.04 armv7]   | Configuring Docker for multi-architecture support
[linux-arm.yml/Build on ubuntu-18.04 armv7]   | [command]/actions/[email protected]/src/run-on-arch.sh /actions/[email protected]/Dockerfiles/Dockerfile.armv7.ubuntu18.04 run-on-arch--linux-arm-yml-armv7-ubuntu18-04
[linux-arm.yml/Build on ubuntu-18.04 armv7]   | Sending build context to Docker daemon  36.86kB

[linux-arm.yml/Build on ubuntu-18.04 armv7]   | Step 1/3 : FROM arm32v7/ubuntu:18.04
[linux-arm.yml/Build on ubuntu-18.04 armv7]   |  ---> b4f2bfbd9e45
[linux-arm.yml/Build on ubuntu-18.04 armv7]   | Step 2/3 : COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh
[linux-arm.yml/Build on ubuntu-18.04 armv7]   |  ---> Using cache
[linux-arm.yml/Build on ubuntu-18.04 armv7]   |  ---> 03367f56d437
[linux-arm.yml/Build on ubuntu-18.04 armv7]   | Step 3/3 : RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh
[linux-arm.yml/Build on ubuntu-18.04 armv7]   |  ---> Using cache
[linux-arm.yml/Build on ubuntu-18.04 armv7]   |  ---> 8bfab4c85009
[linux-arm.yml/Build on ubuntu-18.04 armv7]   | Successfully built 8bfab4c85009
[linux-arm.yml/Build on ubuntu-18.04 armv7]   | Successfully tagged run-on-arch--linux-arm-yml-armv7-ubuntu18-04:latest
[linux-arm.yml/Build on ubuntu-18.04 armv7]   | WARNING: The requested image's platform (linux/arm) does not match the detected host platform (linux/amd64) and no specific platform was requested
[linux-arm.yml/Build on ubuntu-18.04 armv7]   | docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "/actions/[email protected]/src/run-on-arch-commands.sh": stat /actions/[email protected]/src/run-on-arch-commands.sh: no such file or directory: unknown.
[linux-arm.yml/Build on ubuntu-18.04 armv7]   ❗  ::error::The process '/actions/[email protected]/src/run-on-arch.sh' failed with exit code 127
[linux-arm.yml/Build on ubuntu-18.04 armv7]   ❌  Failure - Run commands
time="2021-05-06T20:30:27+02:00" level=debug msg="exit with `FAILURE`: 1"
time="2021-05-06T20:30:27+02:00" level=debug msg="exit with `FAILURE`: 1"
Error: exit with `FAILURE`: 1

from run-on-arch-action.

TyKeeling avatar TyKeeling commented on May 3, 2024

Hi, has there been any update to this? I am running into a similar problem using act version 0.2.24:

| WARNING: The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/amd64) and no specific platform was requested
| docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/run/act/actions/[email protected]/src/run-on-arch-commands.sh": stat /run/act/actions/[email protected]/src/run-on-arch-commands.sh: no such file or directory: unknown.
| time="2021-08-19T18:48:33Z" level=error msg="error waiting for container: context canceled"
[auto-relase.yml/Build on ubuntu-18.04 armv7]   ❗  ::error::The process '/run/act/actions/[email protected]/src/run-on-arch.sh' failed with exit code 127
[auto-relase.yml/Build on ubuntu-18.04 armv7]   ❌  Failure - Run commands

from run-on-arch-action.

573 avatar 573 commented on May 3, 2024

+1 Might have run into the same with github-runner.

from run-on-arch-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.