docker-gitea-act-runner icon indicating copy to clipboard operation
docker-gitea-act-runner copied to clipboard

Runner fails to mount volume during job set up

Open QuantumQuacken opened this issue 9 months ago • 1 comments

Hello, the runner fails to mount a local volume with message [tempDataSonarQ] is not a valid volume, will be ignored. Instead, Gitea's act_runner mounts it without issue.

I'm using the latest act_runner.

name: SQ Scan .NET
on:
  push:
    branches: [main]

jobs:
  build:
    runs-on: [ubuntu-latest]
    container:
      image: catthehacker/ubuntu:act-latest
      volumes:
        - tempDataSonarQ:/mnt/td
      
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Run Scan
        run: |
          <various_commands>    
Log of Set up Job
2024-05-09T07:55:17.8233688Z VergaRunner(version:v0.2.10) received task 571 of job 590, be triggered by event: push
2024-05-09T07:55:17.8240330Z workflow prepared
2024-05-09T07:55:17.8242255Z evaluating expression 'success()'
2024-05-09T07:55:17.8243670Z expression 'success()' evaluated to 'true'
2024-05-09T07:55:17.8244247Z 🚀  Start image=catthehacker/ubuntu:act-latest
2024-05-09T07:55:17.8416852Z   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false
2024-05-09T07:55:17.8417361Z   🐳  docker pull catthehacker/ubuntu:act-latest
2024-05-09T07:55:17.8439592Z Image exists? true
2024-05-09T07:55:17.8588921Z   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["/bin/sleep" "10800"] cmd=[] network="bridge"
2024-05-09T07:55:17.8798945Z Custom container.Config from options ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:true ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image: Volumes:map[] WorkingDir: Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2024-05-09T07:55:17.8799799Z Merged container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:true ExposedPorts:map[] Tty:false 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:/workspace/digital/supervisoreBackend Entrypoint:[/bin/sleep 10800] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2024-05-09T07:55:17.8800703Z Custom container.HostConfig from options ==> &{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:bridge PortBindings:map[] RestartPolicy:{Name:no 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:0xc00052a3c0 OomKillDisable:0xc00052a2bb PidsLimit:0xc00052a420 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2024-05-09T07:55:17.8801520Z --network and --net in the options will be ignored.
2024-05-09T07:55:17.8802141Z Merged container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:bridge PortBindings:map[] RestartPolicy:{Name:no MaximumRetryCount:0} AutoRemove:true 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:0xc00052a3c0 OomKillDisable:0xc00052a2bb PidsLimit:0xc00052a420 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:GITEA-ACTIONS-TASK-571_WORKFLOW-SQ-Scan-NET_JOB-build-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:tempDataSonarQ Target:/mnt/td ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-571_WORKFLOW-SQ-Scan-NET_JOB-build Target:/workspace/digital/supervisoreBackend ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2024-05-09T07:55:17.8803410Z [tempDataSonarQ] is not a valid volume, will be ignored
2024-05-09T07:55:17.9733241Z Created container name=GITEA-ACTIONS-TASK-571_WORKFLOW-SQ-Scan-NET_JOB-build id=b168bc0b49173aeac2338f53e5a7d6b6ae966f780dea28d7ad4bc77a4efbd524 from image catthehacker/ubuntu:act-latest (platform: )
2024-05-09T07:55:17.9733734Z ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
2024-05-09T07:55:17.9734029Z   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["/bin/sleep" "10800"] cmd=[] network="bridge"
2024-05-09T07:55:17.9734180Z Starting container: b168bc0b49173aeac2338f53e5a7d6b6ae966f780dea28d7ad4bc77a4efbd524
2024-05-09T07:55:18.3943891Z Started container: b168bc0b49173aeac2338f53e5a7d6b6ae966f780dea28d7ad4bc77a4efbd524
2024-05-09T07:55:18.5666624Z Writing entry to tarball workflow/event.json len:5209
2024-05-09T07:55:18.5667403Z Writing entry to tarball workflow/envs.txt len:0
2024-05-09T07:55:18.5667705Z Extracting content to '/var/run/act/'
2024-05-09T07:55:18.5990683Z   ☁  git clone 'https://github.com/actions/checkout' # ref=v4
2024-05-09T07:55:18.5991333Z   cloning https://github.com/actions/checkout to /data/cache/actions/actions-checkout@v4
2024-05-09T07:55:19.1944261Z Non-terminating error while running 'git clone': some refs were not updated
2024-05-09T07:55:19.2442956Z evaluating expression ''
2024-05-09T07:55:19.2443689Z expression '' evaluated to 'true'
2024-05-09T07:55:19.2444057Z ⭐ Run Main Checkout
2024-05-09T07:55:19.2444373Z Writing entry to tarball workflow/outputcmd.txt len:0
2024-05-09T07:55:19.2444593Z Writing entry to tarball workflow/statecmd.txt len:0
2024-05-09T07:55:19.2444731Z Writing entry to tarball workflow/pathcmd.txt len:0
2024-05-09T07:55:19.2444880Z Writing entry to tarball workflow/envs.txt len:0
2024-05-09T07:55:19.2444993Z Writing entry to tarball workflow/SUMMARY.md len:0
2024-05-09T07:55:19.2445110Z Extracting content to '/var/run/act'
2024-05-09T07:55:19.2677977Z expression '${{ github.repository }}' rewritten to 'format('{0}', github.repository)'
2024-05-09T07:55:19.2678589Z evaluating expression 'format('{0}', github.repository)'
2024-05-09T07:55:19.2679254Z expression 'format('{0}', github.repository)' evaluated to '%!t(string=digital/supervisoreBackend)'
2024-05-09T07:55:19.2679661Z expression '${{ github.token }}' rewritten to 'format('{0}', github.token)'
2024-05-09T07:55:19.2679889Z evaluating expression 'format('{0}', github.token)'
2024-05-09T07:55:19.2680351Z expression 'format('{0}', github.token)' evaluated to '%!t(string=***)'
2024-05-09T07:55:19.2681238Z type=remote-action actionDir=/data/cache/actions/actions-checkout@v4 actionPath= workdir=/workspace/digital/supervisoreBackend actionCacheDir=/data/cache/actions actionName=actions-checkout@v4 containerActionDir=/var/run/act/actions/actions-checkout@v4
2024-05-09T07:55:19.2681529Z /var/run/act/actions/actions-checkout@v4
2024-05-09T07:55:19.2681832Z   🐳  docker cp src=/data/cache/actions/actions-checkout@v4/ dst=/var/run/act/actions/actions-checkout@v4/
2024-05-09T07:55:19.2683147Z Writing tarball /tmp/act583855701 from /data/cache/actions/actions-checkout@v4/
2024-05-09T07:55:19.2683584Z Stripping prefix:/data/cache/actions/actions-checkout@v4/ src:/data/cache/actions/actions-checkout@v4/
2024-05-09T07:55:19.4333579Z Extracting content from '/tmp/act583855701' to '/var/run/act/actions/actions-checkout@v4/'
2024-05-09T07:55:19.6959100Z executing remote job container: [node /var/run/act/actions/actions-checkout@v4/dist/index.js]
2024-05-09T07:55:19.6959951Z   🐳  docker exec cmd=[node /var/run/act/actions/actions-checkout@v4/dist/index.js] user= workdir=
2024-05-09T07:55:19.6960232Z Exec command '[node /var/run/act/actions/actions-checkout@v4/dist/index.js]'
2024-05-09T07:55:19.6960986Z Working directory '/workspace/digital/supervisoreBackend'
2024-05-09T07:55:19.9906175Z ::add-matcher::/run/act/actions/actions-checkout@v4/dist/problem-matcher.json

QuantumQuacken avatar May 09 '24 08:05 QuantumQuacken

I'm also having this issue.

my1e5 avatar Jun 03 '24 15:06 my1e5

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If the issue is still valid, please add a respective comment to prevent this issue from being closed automatically. Thank you for your contributions.

github-actions[bot] avatar Sep 02 '24 16:09 github-actions[bot]