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

AZ_CLI_GITHUB_ACTION_1726245395565.sh: No such file or directory%0A #2459

Open
AndreRicardo-Zoetis opened this issue Sep 13, 2024 · 2 comments
Labels
kind/bug Something isn't working

Comments

@AndreRicardo-Zoetis
Copy link

Bug report info

act version:            0.2.59
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 12
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	/var/run/docker.sock
Config files:           
	/home/andre/.config/act/actrc:
		-P ubuntu-latest=catthehacker/ubuntu:act-latest
		-P ubuntu-22.04=catthehacker/ubuntu:act-22.04
		-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
	Go version:            go1.20.13
	Module path:           github.com/nektos/act
	Main version:          (devel)
	Main path:             github.com/nektos/act
	Main checksum:         
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-trimpath:            true
		CGO_ENABLED:          0
		GOARCH:               amd64
		GOOS:                 linux
		GOAMD64:              v1
		vcs:                  git
		vcs.revision:         e8856f0fb00fcdd16eef2325b845f55f5d346f51
		vcs.time:             2023-08-21T16:17:06Z
		vcs.modified:         true
Docker Engine:
	Engine version:        26.1.3
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         systemd
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Ubuntu 22.04.4 LTS
	OS type:               linux
	OS version:            22.04
	OS arch:               x86_64
	OS kernel:             6.5.0-44-generic
	OS CPU:                12
	OS memory:             47843 MB
	Security options:
		name=apparmor
		name=seccomp,profile=builtin
		name=cgroupns

Command used with act

gh act -W '.github/workflows/az.yml' -v

Describe issue

Rather than having the version of az version got the error AZ_CLI_GITHUB_ACTION_1726245395565.sh: No such file or directory%0A.

Confirmed on GitHub that the workflow works fine
https://github.com/AndreRicardo-Zoetis/act-issue/actions/runs/10852886032/job/30119932094

Link to GitHub repository

https://github.com/AndreRicardo-Zoetis/act-issue

Workflow content

name: 'az test'
on:
  workflow_dispatch:

jobs:
  build:
    name: 
    runs-on: ubuntu-latest

    steps:
    - name: Azure CLI script file
      uses: azure/cli@v2
      with:
        azcliversion: 2.56.0
        inlineScript: az --version

Relevant log output

$ gh act -W '.github/workflows/az.yml' -v
DEBU[0000] Loading environment from /home/andre/code/act-issue/.env
DEBU[0000] Loading action inputs from /home/andre/code/act-issue/.input
DEBU[0000] Loading secrets from /home/andre/code/act-issue/.secrets
DEBU[0000] Loading vars from /home/andre/code/act-issue/.vars
DEBU[0000] Evaluated matrix inclusions: map[]
DEBU[0000] Loading workflow '/home/andre/code/act-issue/.github/workflows/az.yml'
DEBU[0000] Reading workflow '/home/andre/code/act-issue/.github/workflows/az.yml'
DEBU[0000] Conditional GET for notices etag=f263be9c-41bc-47d9-8e6c-5965bd75dc81
DEBU[0000] Preparing plan with all jobs
DEBU[0000] Using default workflow event: push
DEBU[0000] Planning jobs for event: push
DEBU[0000] gc: 2024-09-13 17:40:09.704037401 +0100 WEST m=+0.004326999  module=artifactcache
DEBU[0000] Plan Stages: [0xc000010330]
DEBU[0000] Stages Runs: [build]
DEBU[0000] Job.Name: build
DEBU[0000] Job.RawNeeds: {0 0    <nil> []    0 0}
DEBU[0000] Job.RawRunsOn: {8 0 !!str ubuntu-latest  <nil> []    9 14}
DEBU[0000] Job.Env: {0 0    <nil> []    0 0}
DEBU[0000] Job.If: {0 0  success()  <nil> []    0 0}
DEBU[0000] Job.Steps: Azure CLI script file
DEBU[0000] Job.TimeoutMinutes:
DEBU[0000] Job.Services: map[]
DEBU[0000] Job.Strategy: <nil>
DEBU[0000] Job.RawContainer: {0 0    <nil> []    0 0}
DEBU[0000] Job.Defaults.Run.Shell:
DEBU[0000] Job.Defaults.Run.WorkingDirectory:
DEBU[0000] Job.Outputs: map[]
DEBU[0000] Job.Uses:
DEBU[0000] Job.With: map[]
DEBU[0000] Job.Result:
DEBU[0000] Empty Strategy, matrixes=[map[]]
DEBU[0000] Job Matrices: [map[]]
DEBU[0000] Runner Matrices: map[]
DEBU[0000] Final matrix after applying user inclusions '[map[]]'
DEBU[0000] Loading revision from git directory
DEBU[0000] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
DEBU[0000] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
DEBU[0000] using github ref: refs/heads/main
DEBU[0000] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
DEBU[0000] Detected CPUs: 12
[az test/build] [DEBUG] evaluating expression 'success()'
[az test/build] [DEBUG] expression 'success()' evaluated to 'true'
[az test/build] 🚀  Start image=catthehacker/ubuntu:act-latest
INFO[0000] Parallel tasks (0) below minimum, setting to 1
[az test/build]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[az test/build] [DEBUG]   🐳  docker pull catthehacker/ubuntu:act-latest
[az test/build] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:act-latest' ()
DEBU[0000] Saving notices etag=f263be9c-41bc-47d9-8e6c-5965bd75dc81
DEBU[0000] No new notices
[az test/build] [DEBUG] Pulling from catthehacker/ubuntu :: act-latest
[az test/build] [DEBUG] Digest: sha256:cfc3a7d39de50d5414ef460ba0e1fbf3acc7296b15df49e33d32a10ed39ab874 ::
[az test/build] [DEBUG] Status: Image is up to date for catthehacker/ubuntu:act-latest ::
[az test/build] [DEBUG] Removed container: 64a7b86bcd5043e00f36e63838a9a2eaafe064b7fdc31ea2f5e7293da3df5941
[az test/build] [DEBUG]   🐳  docker volume rm act-az-test-build-be1d58fa6880e0867754055283e9da5673c29866f9cdccc2e8677ae03f8dd12c
[az test/build] [DEBUG]   🐳  docker volume rm act-az-test-build-be1d58fa6880e0867754055283e9da5673c29866f9cdccc2e8677ae03f8dd12c-env
INFO[0001] Parallel tasks (0) below minimum, setting to 1
[az test/build]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[az test/build] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:catthehacker/ubuntu:act-latest Volumes:map[] WorkingDir:/home/andre/code/act-issue Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[az test/build] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:host PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-az-test-build-be1d58fa6880e0867754055283e9da5673c29866f9cdccc2e8677ae03f8dd12c-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-az-test-build-be1d58fa6880e0867754055283e9da5673c29866f9cdccc2e8677ae03f8dd12c Target:/home/andre/code/act-issue ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[az test/build] [DEBUG] input.NetworkAliases ==> [build]
[az test/build] [DEBUG] Created container name=act-az-test-build-be1d58fa6880e0867754055283e9da5673c29866f9cdccc2e8677ae03f8dd12c id=81a529221810a744f6890158eb36ded97fadb6ae80e9640e63b0d3b4108a317d from image catthehacker/ubuntu:act-latest (platform: )
[az test/build] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
[az test/build]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[az test/build] [DEBUG] Starting container: 81a529221810a744f6890158eb36ded97fadb6ae80e9640e63b0d3b4108a317d
[az test/build] [DEBUG] Started container: 81a529221810a744f6890158eb36ded97fadb6ae80e9640e63b0d3b4108a317d
[az test/build] [DEBUG] Writing entry to tarball workflow/event.json len:2
[az test/build] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[az test/build] [DEBUG] Extracting content to '/var/run/act/'
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build]   ☁  git clone 'https://github.com/azure/cli' # ref=v2
[az test/build] [DEBUG]   cloning https://github.com/azure/cli to /home/andre/.cache/act/azure-cli@v2
[az test/build] [DEBUG] Unable to pull refs/heads/v2: non-fast-forward update
[az test/build] [DEBUG] Cloned https://github.com/azure/cli to /home/andre/.cache/act/azure-cli@v2
[az test/build] [DEBUG] Checked out v2
[az test/build] [DEBUG] Read action &{Azure CLI Action  Automate your GitHub workflows using Azure CLI scripts. map[azcliversion:{Azure CLI version to be used to execute the script. If not provided, latest version is used false agentazcliversion} inlineScript:{Specify the script here true }] map[] {node20 map[] dist/index.js  always()  always()   [] []} {blue login.svg}} from 'Unknown'
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://172.18.233.57:36321/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v2 GITHUB_ACTION_REPOSITORY:azure/cli GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:AndreRicardo-Zoetis/act-issue GITHUB_REPOSITORY_OWNER:AndreRicardo-Zoetis GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb GITHUB_WORKFLOW:az test GITHUB_WORKSPACE:/home/andre/code/act-issue INPUT_AZCLIVERSION:2.56.0 INPUT_INLINESCRIPT:az --version ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] evaluating expression ''
[az test/build] [DEBUG] expression '' evaluated to 'true'
[az test/build] ⭐ Run Main Azure CLI script file
[az test/build] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[az test/build] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[az test/build] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[az test/build] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[az test/build] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[az test/build] [DEBUG] Extracting content to '/var/run/act'
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] About to run action &{Azure CLI Action  Automate your GitHub workflows using Azure CLI scripts. map[azcliversion:{Azure CLI version to be used to execute the script. If not provided, latest version is used false agentazcliversion} inlineScript:{Specify the script here true }] map[] {node20 map[] dist/index.js  always()  always()   [] []} {blue login.svg}}
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] type=remote-action actionDir=/home/andre/.cache/act/azure-cli@v2 actionPath= workdir=/home/andre/code/act-issue actionCacheDir=/home/andre/.cache/act actionName=azure-cli@v2 containerActionDir=/var/run/act/actions/azure-cli@v2
[az test/build] [DEBUG] /var/run/act/actions/azure-cli@v2
[az test/build] [DEBUG] Removing /home/andre/.cache/act/azure-cli@v2/.gitignore before docker cp
[az test/build]   🐳  docker cp src=/home/andre/.cache/act/azure-cli@v2/ dst=/var/run/act/actions/azure-cli@v2/
[az test/build] [DEBUG] Writing tarball /tmp/act555031714 from /home/andre/.cache/act/azure-cli@v2/
[az test/build] [DEBUG] Stripping prefix:/home/andre/.cache/act/azure-cli@v2/ src:/home/andre/.cache/act/azure-cli@v2/
[az test/build] [DEBUG] Extracting content from '/tmp/act555031714' to '/var/run/act/actions/azure-cli@v2/'
[az test/build] [DEBUG] executing remote job container: [node /var/run/act/actions/azure-cli@v2/dist/index.js]
[az test/build]   🐳  docker exec cmd=[node /var/run/act/actions/azure-cli@v2/dist/index.js] user= workdir=
[az test/build] [DEBUG] Exec command '[node /var/run/act/actions/azure-cli@v2/dist/index.js]'
[az test/build] [DEBUG] Working directory '/home/andre/code/act-issue'
| Starting script execution via docker image mcr.microsoft.com/azure-cli:2.56.0
[az test/build]   ❗  ::error::Error: bash: /tmp/AZ_CLI_GITHUB_ACTION_1726245613480.sh: No such file or directory%0A
| cleaning up container...
| MICROSOFT_AZURE_CLI_1726245612750_CONTAINER
|
[az test/build]   🚧  ::warning::
[az test/build]   ❗  ::error::bash: /tmp/AZ_CLI_GITHUB_ACTION_1726245613480.sh: No such file or directory%0A
[az test/build]   ❌  Failure - Main Azure CLI script file
[az test/build] exitcode '1': failure
[az test/build] 🏁  Job failed
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
[az test/build] [DEBUG] HEAD points to '78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 78bd7f6dfcf0a09f3fd6d17639a1a22b9a38b3cb
Error: Job 'build' failed

Additional information

No response

@AndreRicardo-Zoetis AndreRicardo-Zoetis added the kind/bug Something isn't working label Sep 13, 2024
@AndreRicardo-Zoetis
Copy link
Author

AndreRicardo-Zoetis commented Sep 13, 2024

Same issue with latest version of act

$ gh extension list
NAME    REPO           VERSION
gh act  nektos/gh-act  v0.2.67
$ gh act --bug-report
act version:            0.2.67
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 12
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
Config files:
        /home/andre/.config/act/actrc:
                -P ubuntu-latest=catthehacker/ubuntu:act-latest
                -P ubuntu-22.04=catthehacker/ubuntu:act-22.04
                -P ubuntu-20.04=catthehacker/ubuntu:act-20.04
                -P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
        Go version:            go1.21.13
        Module path:           github.com/nektos/act
        Main version:          (devel)
        Main path:             github.com/nektos/act
        Main checksum:
        Build settings:
                -buildmode:           exe
                -compiler:            gc
                -trimpath:            true
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         3f5d34d38dec16a3c4cec1e8aab00d5f123727b2
                vcs.time:             2024-09-07T22:56:04Z
                vcs.modified:         true
Docker Engine:
        Engine version:        26.1.3
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         systemd
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Ubuntu 22.04.4 LTS
        OS type:               linux
        OS version:            22.04
        OS arch:               x86_64
        OS kernel:             6.5.0-44-generic
        OS CPU:                12
        OS memory:             47843 MB
        Security options:
                name=apparmor
                name=seccomp,profile=builtin
                name=cgroupns
$ gh act -W '.github/workflows/az.yml' -v
DEBU[0000] Handling container host and socket
DEBU[0000] Defaulting container socket to DOCKER_HOST
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock'
DEBU[0000] Loading environment from /home/andre/code/act-issue/.env
DEBU[0000] Loading action inputs from /home/andre/code/act-issue/.input
DEBU[0000] Loading secrets from /home/andre/code/act-issue/.secrets
DEBU[0000] Loading vars from /home/andre/code/act-issue/.vars
DEBU[0000] Evaluated matrix inclusions: map[]
DEBU[0000] Loading workflow '/home/andre/code/act-issue/.github/workflows/az.yml'
DEBU[0000] Reading workflow '/home/andre/code/act-issue/.github/workflows/az.yml'
DEBU[0000] Conditional GET for notices etag=f263be9c-41bc-47d9-8e6c-5965bd75dc81
DEBU[0000] Preparing plan with all jobs
DEBU[0000] Using default workflow event: push
DEBU[0000] Planning jobs for event: push
DEBU[0000] gc: 2024-09-13 17:59:37.613852496 +0100 WEST m=+0.004839974  module=artifactcache
DEBU[0000] Plan Stages: [0xc00046ec18]
DEBU[0000] Stages Runs: [build]
DEBU[0000] Job.Name: build
DEBU[0000] Job.RawNeeds: {0 0    <nil> []    0 0}
DEBU[0000] Job.RawRunsOn: {8 0 !!str ubuntu-latest  <nil> []    9 14}
DEBU[0000] Job.Env: {0 0    <nil> []    0 0}
DEBU[0000] Job.If: {0 0  success()  <nil> []    0 0}
DEBU[0000] Job.Steps: Azure CLI script file
DEBU[0000] Job.TimeoutMinutes:
DEBU[0000] Job.Services: map[]
DEBU[0000] Job.Strategy: <nil>
DEBU[0000] Job.RawContainer: {0 0    <nil> []    0 0}
DEBU[0000] Job.Defaults.Run.Shell:
DEBU[0000] Job.Defaults.Run.WorkingDirectory:
DEBU[0000] Job.Outputs: map[]
DEBU[0000] Job.Uses:
DEBU[0000] Job.With: map[]
DEBU[0000] Job.Result:
DEBU[0000] Empty Strategy, matrixes=[map[]]
DEBU[0000] Job Matrices: [map[]]
DEBU[0000] Runner Matrices: map[]
DEBU[0000] Final matrix after applying user inclusions '[map[]]'
DEBU[0000] Loading revision from git directory
DEBU[0000] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
DEBU[0000] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
DEBU[0000] using github ref: refs/heads/main
DEBU[0000] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
DEBU[0000] Detected CPUs: 12
[az test/build] [DEBUG] evaluating expression 'success()'
[az test/build] [DEBUG] expression 'success()' evaluated to 'true'
[az test/build] 🚀  Start image=catthehacker/ubuntu:act-latest
DEBU[0000] Parallel tasks (0) below minimum, setting to 1
[az test/build]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[az test/build] [DEBUG]   🐳  docker pull catthehacker/ubuntu:act-latest
[az test/build] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:act-latest' ()
DEBU[0000] Saving notices etag=f263be9c-41bc-47d9-8e6c-5965bd75dc81
DEBU[0000] No new notices
[az test/build] [DEBUG] Pulling from catthehacker/ubuntu :: act-latest
[az test/build] [DEBUG] Digest: sha256:cfc3a7d39de50d5414ef460ba0e1fbf3acc7296b15df49e33d32a10ed39ab874 ::
[az test/build] [DEBUG] Status: Image is up to date for catthehacker/ubuntu:act-latest ::
[az test/build] [DEBUG] Removed container: 81a529221810a744f6890158eb36ded97fadb6ae80e9640e63b0d3b4108a317d
[az test/build] [DEBUG]   🐳  docker volume rm act-az-test-build-be1d58fa6880e0867754055283e9da5673c29866f9cdccc2e8677ae03f8dd12c
[az test/build] [DEBUG]   🐳  docker volume rm act-az-test-build-be1d58fa6880e0867754055283e9da5673c29866f9cdccc2e8677ae03f8dd12c-env
DEBU[0001] Parallel tasks (0) below minimum, setting to 1
[az test/build]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[az test/build] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:catthehacker/ubuntu:act-latest Volumes:map[] WorkingDir:/home/andre/code/act-issue Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[az test/build] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:host PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-az-test-build-be1d58fa6880e0867754055283e9da5673c29866f9cdccc2e8677ae03f8dd12c-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-az-test-build-be1d58fa6880e0867754055283e9da5673c29866f9cdccc2e8677ae03f8dd12c Target:/home/andre/code/act-issue ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[az test/build] [DEBUG] input.NetworkAliases ==> [build]
[az test/build] [DEBUG] Created container name=act-az-test-build-be1d58fa6880e0867754055283e9da5673c29866f9cdccc2e8677ae03f8dd12c id=2b60283ea9f9b5ddc9832a69c8fb322e3c4fd4028cc6ab846c5c1d8b876e8a9f from image catthehacker/ubuntu:act-latest (platform: )
[az test/build] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
[az test/build]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[az test/build] [DEBUG] Starting container: 2b60283ea9f9b5ddc9832a69c8fb322e3c4fd4028cc6ab846c5c1d8b876e8a9f
[az test/build] [DEBUG] Started container: 2b60283ea9f9b5ddc9832a69c8fb322e3c4fd4028cc6ab846c5c1d8b876e8a9f
[az test/build] [DEBUG] Writing entry to tarball workflow/event.json len:2
[az test/build] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[az test/build] [DEBUG] Extracting content to '/var/run/act/'
DEBU[0002] Parallel tasks (0) below minimum, setting to 1
[az test/build]   🐳  docker exec cmd=[node --no-warnings -e console.log(process.execPath)] user= workdir=
[az test/build] [DEBUG] Exec command '[node --no-warnings -e console.log(process.execPath)]'
[az test/build] [DEBUG] Working directory '/home/andre/code/act-issue'
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build]   ☁  git clone 'https://github.com/azure/cli' # ref=v2
[az test/build] [DEBUG]   cloning https://github.com/azure/cli to /home/andre/.cache/act/azure-cli@v2
[az test/build] [DEBUG] Unable to pull refs/heads/v2: non-fast-forward update
[az test/build] [DEBUG] Cloned https://github.com/azure/cli to /home/andre/.cache/act/azure-cli@v2
[az test/build] [DEBUG] Checked out v2
[az test/build] [DEBUG] Read action &{Azure CLI Action  Automate your GitHub workflows using Azure CLI scripts. map[azcliversion:{Azure CLI version to be used to execute the script. If not provided, latest version is used false agentazcliversion} inlineScript:{Specify the script here true }] map[] {node20 map[] dist/index.js  always()  always()     [] []} {blue login.svg}} from 'Unknown'
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://172.18.233.57:34793/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v2 GITHUB_ACTION_REPOSITORY:azure/cli GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:AndreRicardo-Zoetis/act-issue GITHUB_REPOSITORY_OWNER:AndreRicardo-Zoetis GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:4611f322da8c6090d27947843448fec2c70fe3d1 GITHUB_WORKFLOW:az test GITHUB_WORKSPACE:/home/andre/code/act-issue INPUT_AZCLIVERSION:2.56.0 INPUT_INLINESCRIPT:az --version ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] evaluating expression ''
[az test/build] [DEBUG] expression '' evaluated to 'true'
[az test/build] ⭐ Run Main Azure CLI script file
[az test/build] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[az test/build] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[az test/build] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[az test/build] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[az test/build] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[az test/build] [DEBUG] Extracting content to '/var/run/act'
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] About to run action &{Azure CLI Action  Automate your GitHub workflows using Azure CLI scripts. map[azcliversion:{Azure CLI version to be used to execute the script. If not provided, latest version is used false agentazcliversion} inlineScript:{Specify the script here true }] map[] {node20 map[] dist/index.js  always()  always()     [] []} {blue login.svg}}
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] type=remote-action actionDir=/home/andre/.cache/act/azure-cli@v2 actionPath= workdir=/home/andre/code/act-issue actionCacheDir=/home/andre/.cache/act actionName=azure-cli@v2 containerActionDir=/var/run/act/actions/azure-cli@v2
[az test/build] [DEBUG] /var/run/act/actions/azure-cli@v2
[az test/build] [DEBUG] Removing /home/andre/.cache/act/azure-cli@v2/.gitignore before docker cp
[az test/build]   🐳  docker cp src=/home/andre/.cache/act/azure-cli@v2/ dst=/var/run/act/actions/azure-cli@v2/
[az test/build] [DEBUG] Writing tarball /tmp/act502268930 from /home/andre/.cache/act/azure-cli@v2/
[az test/build] [DEBUG] Stripping prefix:/home/andre/.cache/act/azure-cli@v2/ src:/home/andre/.cache/act/azure-cli@v2/
[az test/build] [DEBUG] Extracting content from '/tmp/act502268930' to '/var/run/act/actions/azure-cli@v2/'
[az test/build] [DEBUG] executing remote job container: [/opt/acttoolcache/node/18.20.4/x64/bin/node /var/run/act/actions/azure-cli@v2/dist/index.js]
[az test/build]   🐳  docker exec cmd=[/opt/acttoolcache/node/18.20.4/x64/bin/node /var/run/act/actions/azure-cli@v2/dist/index.js] user= workdir=
[az test/build] [DEBUG] Exec command '[/opt/acttoolcache/node/18.20.4/x64/bin/node /var/run/act/actions/azure-cli@v2/dist/index.js]'
[az test/build] [DEBUG] Working directory '/home/andre/code/act-issue'
| Starting script execution via docker image mcr.microsoft.com/azure-cli:2.56.0
[az test/build]   ❗  ::error::Error: bash: /tmp/AZ_CLI_GITHUB_ACTION_1726246781657.sh: No such file or directory%0A
| cleaning up container...
| MICROSOFT_AZURE_CLI_1726246780896_CONTAINER
|
[az test/build]   🚧  ::warning::
[az test/build]   ❗  ::error::bash: /tmp/AZ_CLI_GITHUB_ACTION_1726246781657.sh: No such file or directory%0A
[az test/build]   ❌  Failure - Main Azure CLI script file
[az test/build] exitcode '1': failure
[az test/build] 🏁  Job failed
[az test/build] [DEBUG] Loading revision from git directory
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
[az test/build] [DEBUG] HEAD points to '4611f322da8c6090d27947843448fec2c70fe3d1'
[az test/build] [DEBUG] using github ref: refs/heads/main
[az test/build] [DEBUG] Found revision: 4611f322da8c6090d27947843448fec2c70fe3d1
Error: Job 'build' failed

@ChristopherHX
Copy link
Contributor

ChristopherHX commented Sep 13, 2024

Please try -P ubuntu-latest=-self-hosted (this means get rid of the job container that doesn't exist by default on GitHub Hosted Runners)

Actions managing their own containers and using bind mounts usually don't work in default job conainers due to environmental differences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants