Cross issue: Services doesn't seems to work #93

Closed
opened 2024-03-02 19:26:42 +00:00 by stevefan1999 · 3 comments

Bug report info

https://gitea.com/gitea/act_runner/issues/506

Command used with act

Runing in Gitea Action Runner

Describe issue

gitea/act_runner#506

No response

Workflow content

```
name: services-host-network
on: push
jobs:
  services-host-network1:
    runs-on: ubuntu-latest
    services:
      nginx:
        image: "nginx:latest"
        ports:
          - "8080:80"
    steps:
      - run: curl -v http://localhost:8080
```

Relevant log output

```
2024-03-02T19:21:48.3062504Z flyio-gitea-act-runner-5f6749b4d-ll6rs(version:v0.2.6) received task 96 of job 64, be triggered by event: push
2024-03-02T19:21:48.3076088Z workflow prepared
2024-03-02T19:21:48.3078924Z evaluating expression 'success()'
2024-03-02T19:21:48.3084636Z expression 'success()' evaluated to 'true'
2024-03-02T19:21:48.3085712Z 🚀  Start image=ghcr.io/catthehacker/ubuntu:runner-22.04
2024-03-02T19:21:48.3515436Z   🐳  docker pull image=nginx:latest platform= username= forcePull=false
2024-03-02T19:21:48.3515776Z   🐳  docker pull nginx:latest
2024-03-02T19:21:48.3562464Z Image exists? false
2024-03-02T19:21:48.3563735Z pulling image 'docker.io/library/nginx:latest' ()
2024-03-02T19:21:51.2622858Z Pulling from library/nginx :: latest
2024-03-02T19:21:51.9749959Z Pulling fs layer :: e1caac4eb9d2
2024-03-02T19:21:51.9780384Z Pulling fs layer :: 88f6f236f401
2024-03-02T19:21:51.9781252Z Pulling fs layer :: c3ea3344e711
2024-03-02T19:21:51.9783047Z Pulling fs layer :: cc1bb4345a3a
2024-03-02T19:21:51.9790617Z Pulling fs layer :: da8fa4352481
2024-03-02T19:21:51.9790998Z Pulling fs layer :: c7f80e9cdab2
2024-03-02T19:21:51.9791167Z Pulling fs layer :: 18a869624cb6
2024-03-02T19:21:51.9791274Z Waiting :: cc1bb4345a3a
2024-03-02T19:21:51.9791351Z Waiting :: da8fa4352481
2024-03-02T19:21:51.9791563Z Waiting :: c7f80e9cdab2
2024-03-02T19:21:51.9792010Z Waiting :: 18a869624cb6
2024-03-02T19:21:52.6958853Z Downloading :: 88f6f236f401 :: [>                                                  ]    426kB/41.39MB
2024-03-02T19:21:52.7017014Z Downloading :: c3ea3344e711 :: [==================================================>]     629B/629B
2024-03-02T19:21:52.7025673Z Verifying Checksum :: c3ea3344e711
2024-03-02T19:21:52.7034360Z Download complete :: c3ea3344e711
2024-03-02T19:21:52.7269037Z Downloading :: e1caac4eb9d2 :: [>                                                  ]  294.9kB/29.12MB
2024-03-02T19:21:52.7994305Z Downloading :: 88f6f236f401 :: [=========>                                         ]  7.629MB/41.39MB
2024-03-02T19:21:52.8251714Z Downloading :: e1caac4eb9d2 :: [======>                                            ]  3.862MB/29.12MB
2024-03-02T19:21:52.9053405Z Downloading :: 88f6f236f401 :: [=================>                                 ]  14.85MB/41.39MB
2024-03-02T19:21:52.9262883Z Downloading :: e1caac4eb9d2 :: [===========>                                       ]  6.531MB/29.12MB
2024-03-02T19:21:53.0079413Z Downloading :: 88f6f236f401 :: [==========================>                        ]  22.06MB/41.39MB
2024-03-02T19:21:53.0306661Z Downloading :: e1caac4eb9d2 :: [================>                                  ]  9.792MB/29.12MB
2024-03-02T19:21:53.1156883Z Downloading :: 88f6f236f401 :: [===================================>               ]  29.29MB/41.39MB
2024-03-02T19:21:53.1389723Z Downloading :: e1caac4eb9d2 :: [======================>                            ]  13.35MB/29.12MB
2024-03-02T19:21:53.2282615Z Downloading :: 88f6f236f401 :: [==========================================>        ]  34.83MB/41.39MB
2024-03-02T19:21:53.2453644Z Downloading :: e1caac4eb9d2 :: [=============================>                     ]   16.9MB/29.12MB
2024-03-02T19:21:53.3285352Z Verifying Checksum :: 88f6f236f401
2024-03-02T19:21:53.3297662Z Download complete :: 88f6f236f401
2024-03-02T19:21:53.3497280Z Downloading :: e1caac4eb9d2 :: [====================================>              ]  21.37MB/29.12MB
2024-03-02T19:21:53.4512002Z Downloading :: e1caac4eb9d2 :: [=================================================> ]  29.06MB/29.12MB
2024-03-02T19:21:53.4526445Z Downloading :: cc1bb4345a3a :: [=====================================>             ]     720B/957B
2024-03-02T19:21:53.4528893Z Downloading :: cc1bb4345a3a :: [==================================================>]     957B/957B
2024-03-02T19:21:53.4531020Z Verifying Checksum :: e1caac4eb9d2
2024-03-02T19:21:53.4532991Z Download complete :: e1caac4eb9d2
2024-03-02T19:21:53.4539243Z Verifying Checksum :: cc1bb4345a3a
2024-03-02T19:21:53.4540502Z Download complete :: cc1bb4345a3a
2024-03-02T19:21:53.5352171Z Extracting :: e1caac4eb9d2 :: [>                                                  ]  294.9kB/29.12MB
2024-03-02T19:21:53.6397466Z Extracting :: e1caac4eb9d2 :: [======>                                            ]  3.834MB/29.12MB
2024-03-02T19:21:53.7543830Z Extracting :: e1caac4eb9d2 :: [============>                                      ]  7.078MB/29.12MB
2024-03-02T19:21:53.8614989Z Extracting :: e1caac4eb9d2 :: [===============>                                   ]  9.142MB/29.12MB
2024-03-02T19:21:53.9725042Z Extracting :: e1caac4eb9d2 :: [=================>                                 ]  10.32MB/29.12MB
2024-03-02T19:21:54.0445904Z Downloading :: da8fa4352481 :: [==================================================>]     394B/394B
2024-03-02T19:21:54.0446477Z Verifying Checksum :: da8fa4352481
2024-03-02T19:21:54.0446682Z Download complete :: da8fa4352481
2024-03-02T19:21:54.0836711Z Extracting :: e1caac4eb9d2 :: [====================>                              ]   11.8MB/29.12MB
2024-03-02T19:21:54.1463079Z Downloading :: c7f80e9cdab2 :: [=============================>                     ]     719B/1.209kB
2024-03-02T19:21:54.1470556Z Downloading :: c7f80e9cdab2 :: [==================================================>]  1.209kB/1.209kB
2024-03-02T19:21:54.1472974Z Verifying Checksum :: c7f80e9cdab2
2024-03-02T19:21:54.1473285Z Download complete :: c7f80e9cdab2
2024-03-02T19:21:54.1852742Z Extracting :: e1caac4eb9d2 :: [=========================>                         ]  15.04MB/29.12MB
2024-03-02T19:21:54.1956973Z Downloading :: 18a869624cb6 :: [=========================>                         ]     719B/1.399kB
2024-03-02T19:21:54.1961893Z Downloading :: 18a869624cb6 :: [==================================================>]  1.399kB/1.399kB
2024-03-02T19:21:54.1964282Z Verifying Checksum :: 18a869624cb6
2024-03-02T19:21:54.1966614Z Download complete :: 18a869624cb6
2024-03-02T19:21:54.2914733Z Extracting :: e1caac4eb9d2 :: [================================>                  ]  19.17MB/29.12MB
2024-03-02T19:21:54.3977291Z Extracting :: e1caac4eb9d2 :: [======================================>            ]  22.71MB/29.12MB
2024-03-02T19:21:54.6754000Z Extracting :: e1caac4eb9d2 :: [==========================================>        ]  24.77MB/29.12MB
2024-03-02T19:21:54.7801715Z Extracting :: e1caac4eb9d2 :: [==============================================>    ]  26.84MB/29.12MB
2024-03-02T19:21:54.9019518Z Extracting :: e1caac4eb9d2 :: [===============================================>   ]  27.72MB/29.12MB
2024-03-02T19:21:55.3462997Z Extracting :: e1caac4eb9d2 :: [================================================>  ]  28.31MB/29.12MB
2024-03-02T19:21:55.5380347Z Extracting :: e1caac4eb9d2 :: [==================================================>]  29.12MB/29.12MB
2024-03-02T19:21:55.6303501Z Pull complete :: e1caac4eb9d2
2024-03-02T19:21:55.7371634Z Extracting :: 88f6f236f401 :: [>                                                  ]    426kB/41.39MB
2024-03-02T19:21:55.8471087Z Extracting :: 88f6f236f401 :: [====>                                              ]  3.834MB/41.39MB
2024-03-02T19:21:55.9676139Z Extracting :: 88f6f236f401 :: [=========>                                         ]  7.668MB/41.39MB
2024-03-02T19:21:56.0690953Z Extracting :: 88f6f236f401 :: [==============>                                    ]  12.35MB/41.39MB
2024-03-02T19:21:56.1810067Z Extracting :: 88f6f236f401 :: [======================>                            ]  18.32MB/41.39MB
2024-03-02T19:21:56.2820755Z Extracting :: 88f6f236f401 :: [===========================>                       ]     23MB/41.39MB
2024-03-02T19:21:56.3909100Z Extracting :: 88f6f236f401 :: [=================================>                 ]  28.11MB/41.39MB
2024-03-02T19:21:56.4936533Z Extracting :: 88f6f236f401 :: [=======================================>           ]   32.8MB/41.39MB
2024-03-02T19:21:56.5996120Z Extracting :: 88f6f236f401 :: [==========================================>        ]  35.36MB/41.39MB
2024-03-02T19:21:56.7108871Z Extracting :: 88f6f236f401 :: [=============================================>     ]  37.49MB/41.39MB
2024-03-02T19:21:56.8988431Z Extracting :: 88f6f236f401 :: [===============================================>   ]  39.19MB/41.39MB
2024-03-02T19:21:57.0629667Z Extracting :: 88f6f236f401 :: [==================================================>]  41.39MB/41.39MB
2024-03-02T19:21:57.1415189Z Pull complete :: 88f6f236f401
2024-03-02T19:21:57.1526028Z Extracting :: c3ea3344e711 :: [==================================================>]     629B/629B
2024-03-02T19:21:57.1532627Z Extracting :: c3ea3344e711 :: [==================================================>]     629B/629B
2024-03-02T19:21:57.2043491Z Pull complete :: c3ea3344e711
2024-03-02T19:21:57.2167651Z Extracting :: cc1bb4345a3a :: [==================================================>]     957B/957B
2024-03-02T19:21:57.2172041Z Extracting :: cc1bb4345a3a :: [==================================================>]     957B/957B
2024-03-02T19:21:57.2611559Z Pull complete :: cc1bb4345a3a
2024-03-02T19:21:57.2723717Z Extracting :: da8fa4352481 :: [==================================================>]     394B/394B
2024-03-02T19:21:57.2727427Z Extracting :: da8fa4352481 :: [==================================================>]     394B/394B
2024-03-02T19:21:57.3239892Z Pull complete :: da8fa4352481
2024-03-02T19:21:57.3352926Z Extracting :: c7f80e9cdab2 :: [==================================================>]  1.209kB/1.209kB
2024-03-02T19:21:57.3355279Z Extracting :: c7f80e9cdab2 :: [==================================================>]  1.209kB/1.209kB
2024-03-02T19:21:57.3770408Z Pull complete :: c7f80e9cdab2
2024-03-02T19:21:57.3881115Z Extracting :: 18a869624cb6 :: [==================================================>]  1.399kB/1.399kB
2024-03-02T19:21:57.3885429Z Extracting :: 18a869624cb6 :: [==================================================>]  1.399kB/1.399kB
2024-03-02T19:21:57.4300697Z Pull complete :: 18a869624cb6
2024-03-02T19:21:57.4678242Z Digest: sha256:c26ae7472d624ba1fafd296e73cecc4f93f853088e6a9c13c0d52f6ca5865107 :: 
2024-03-02T19:21:57.4790705Z Status: Downloaded newer image for nginx:latest :: 
2024-03-02T19:21:57.4868874Z   🐳  docker pull image=ghcr.io/catthehacker/ubuntu:runner-22.04 platform= username= forcePull=false
2024-03-02T19:21:57.4869434Z   🐳  docker pull ghcr.io/catthehacker/ubuntu:runner-22.04
2024-03-02T19:21:57.4918599Z Image exists? true
2024-03-02T19:21:57.4919583Z   🐳  docker pull image=nginx:latest platform= username= forcePull=false
2024-03-02T19:21:57.4919706Z   🐳  docker pull nginx:latest
2024-03-02T19:21:57.4953574Z Image exists? true
2024-03-02T19:21:57.4954274Z   🐳  docker create image=nginx:latest platform= entrypoint=[] cmd=[]
2024-03-02T19:21:57.4963988Z Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:nginx:latest Volumes:map[] WorkingDir:/workspace/stevefan1999/test3 Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2024-03-02T19:21:57.5109609Z Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:bridge PortBindings:map[] RestartPolicy:{Name: 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:true 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:[] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2024-03-02T19:21:57.7903898Z Created container name=GITEA-ACTIONS-TASK-96-WORKFLOW-services-host-network-JOB-services-host-network1_nginx id=aee8a07530955225836b2e67171423fff5c91afe2a81dd17a3977f5ca62cb501 from image nginx:latest (platform: )
2024-03-02T19:21:57.7904351Z ENV ==> []
2024-03-02T19:21:57.7904544Z   🐳  docker run image=nginx:latest platform= entrypoint=[] cmd=[]
2024-03-02T19:21:57.7904764Z Starting container: aee8a07530955225836b2e67171423fff5c91afe2a81dd17a3977f5ca62cb501
2024-03-02T19:21:58.7568052Z Started container: aee8a07530955225836b2e67171423fff5c91afe2a81dd17a3977f5ca62cb501
2024-03-02T19:21:58.9296340Z   🐳  docker create image=ghcr.io/catthehacker/ubuntu:runner-22.04 platform= entrypoint=["/bin/sleep" "10800"] cmd=[]
2024-03-02T19:21:58.9320312Z Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false 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:ghcr.io/catthehacker/ubuntu:runner-22.04 Volumes:map[] WorkingDir:/workspace/stevefan1999/test3 Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2024-03-02T19:21:58.9433189Z Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:bridge PortBindings:map[] RestartPolicy:{Name: 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:true 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:GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1 Target:/workspace/stevefan1999/test3 ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-toolcache Target:/toolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2024-03-02T19:21:59.0760906Z Created container name=GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1 id=f880c6e3dbfffb974f09340cb7bcfda74167e85f4497e11681778d3a1c57cd90 from image ghcr.io/catthehacker/ubuntu:runner-22.04 (platform: )
2024-03-02T19:21:59.0765799Z ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
2024-03-02T19:21:59.0768028Z   🐳  docker run image=ghcr.io/catthehacker/ubuntu:runner-22.04 platform= entrypoint=["/bin/sleep" "10800"] cmd=[]
2024-03-02T19:21:59.0769904Z Starting container: f880c6e3dbfffb974f09340cb7bcfda74167e85f4497e11681778d3a1c57cd90
2024-03-02T19:21:59.4703711Z Started container: f880c6e3dbfffb974f09340cb7bcfda74167e85f4497e11681778d3a1c57cd90
2024-03-02T19:21:59.6447568Z   🐳  docker exec cmd=[chown -R 1001:1001 /workspace/stevefan1999/test3] user=0 workdir=
2024-03-02T19:21:59.6448035Z Exec command '[chown -R 1001:1001 /workspace/stevefan1999/test3]'
2024-03-02T19:21:59.6448330Z Working directory '/workspace/stevefan1999/test3'
2024-03-02T19:21:59.7198733Z Writing entry to tarball workflow/event.json len:4469
2024-03-02T19:21:59.7199828Z Writing entry to tarball workflow/envs.txt len:0
2024-03-02T19:21:59.7200195Z Extracting content to '/var/run/act/'
2024-03-02T19:21:59.7637577Z setupEnv => map[ACT:true ACTIONS_RUNTIME_TOKEN:*** ACTIONS_RUNTIME_URL:https://git2.stevefan1999.me/api/actions_pipeline/ CI:true GITEA_ACTIONS:true GITEA_ACTIONS_RUNNER_VERSION:v0.2.6 GITEA_RUNNER_ENV_VAR_1: GITEA_RUNNER_ENV_VAR_2: GITEA_RUNNER_ENV_VAR_3: GITEA_RUNNER_ENV_VAR_4: GITEA_RUNNER_ENV_VAR_5: GITEA_RUNNER_ENV_VAR_6: GITEA_RUNNER_ENV_VAR_7: GITEA_RUNNER_ENV_VAR_8: GITEA_RUNNER_ENV_VAR_9: GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:stevefan1999 GITHUB_API_URL:https://git2.stevefan1999.me/api/v1 GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL: GITHUB_HEAD_REF: GITHUB_JOB:services-host-network1 GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:stevefan1999/test3 GITHUB_REPOSITORY_OWNER:stevefan1999 GITHUB_RETENTION_DAYS: GITHUB_RUN_ID:21 GITHUB_RUN_NUMBER:2 GITHUB_SERVER_URL:https://git2.stevefan1999.me GITHUB_SHA:4e1cc79179a8f3a5c6dabcdaed108492c017c744 GITHUB_TOKEN:*** GITHUB_WORKFLOW:services-host-network GITHUB_WORKSPACE:/workspace/stevefan1999/test3 ImageOS:ubuntu20 JOB_CONTAINER_NAME:GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
2024-03-02T19:21:59.7738316Z evaluating expression ''
2024-03-02T19:21:59.7739737Z expression '' evaluated to 'true'
2024-03-02T19:21:59.7740047Z ⭐ Run Main curl -v http://localhost:8080
2024-03-02T19:21:59.7740453Z Writing entry to tarball workflow/outputcmd.txt len:0
2024-03-02T19:21:59.7740675Z Writing entry to tarball workflow/statecmd.txt len:0
2024-03-02T19:21:59.7740802Z Writing entry to tarball workflow/pathcmd.txt len:0
2024-03-02T19:21:59.7740916Z Writing entry to tarball workflow/envs.txt len:0
2024-03-02T19:21:59.7741012Z Writing entry to tarball workflow/SUMMARY.md len:0
2024-03-02T19:21:59.7741106Z Extracting content to '/var/run/act'
2024-03-02T19:21:59.8156283Z Wrote command \n\ncurl -v http://localhost:8080\n\n to 'workflow/0'
2024-03-02T19:21:59.8157033Z Writing entry to tarball workflow/0 len:31
2024-03-02T19:21:59.8157291Z Extracting content to '/var/run/act'
2024-03-02T19:21:59.8191083Z   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0] user= workdir=
2024-03-02T19:21:59.8192025Z Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0]'
2024-03-02T19:21:59.8192583Z Working directory '/workspace/stevefan1999/test3'
2024-03-02T19:22:00.0618903Z *   Trying 127.0.0.1:8080...
2024-03-02T19:22:00.0619307Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-03-02T19:22:00.0619401Z                                  Dload  Upload   Total   Spent    Left  Speed
2024-03-02T19:22:00.0619648Z 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* connect to 127.0.0.1 port 8080 failed: Connection refused
2024-03-02T19:22:00.0619778Z *   Trying ::1:8080...
2024-03-02T19:22:00.0624002Z * Immediate connect fail for ::1: Cannot assign requested address
2024-03-02T19:22:00.0624174Z * Failed to connect to localhost port 8080 after 0 ms: Connection refused
2024-03-02T19:22:00.0624292Z 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-03-02T19:22:00.0625918Z * Closing connection 0
2024-03-02T19:22:00.0627681Z curl: (7) Failed to connect to localhost port 8080 after 0 ms: Connection refused
2024-03-02T19:22:00.0877271Z exitcode '7': failure
2024-03-02T19:22:00.0877926Z Cleaning up services for job services-host-network1
2024-03-02T19:22:00.4599177Z Removed container: aee8a07530955225836b2e67171423fff5c91afe2a81dd17a3977f5ca62cb501
2024-03-02T19:22:00.4600271Z Cleaning up container for job services-host-network1
2024-03-02T19:22:00.7266783Z Removed container: f880c6e3dbfffb974f09340cb7bcfda74167e85f4497e11681778d3a1c57cd90
2024-03-02T19:22:00.7284786Z   🐳  docker volume rm GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1
2024-03-02T19:22:00.7344081Z   🐳  docker volume rm GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1-env
2024-03-02T19:22:00.7399917Z 🏁  Job failed
2024-03-02T19:22:00.7512046Z Job 'services-host-network1' failed
```

Additional information

Also I'm not sure if that's intentional but that the actual test data wasn't used at all, and therefore we cannot determine whether this is a regression or not (since the test data is actually useless at the moment), as such each Actions just runs in under a minute.

Maybe we should ensure that the actual behavior in Docker should match rather than mocking it in Golang.

### Bug report info ```plain text https://gitea.com/gitea/act_runner/issues/506 ``` ### Command used with act ```sh Runing in Gitea Action Runner ``` ### Describe issue https://gitea.com/gitea/act_runner/issues/506 ### Link to GitHub repository _No response_ ### Workflow content ````yml ``` name: services-host-network on: push jobs: services-host-network1: runs-on: ubuntu-latest services: nginx: image: "nginx:latest" ports: - "8080:80" steps: - run: curl -v http://localhost:8080 ``` ```` ### Relevant log output ````sh ``` 2024-03-02T19:21:48.3062504Z flyio-gitea-act-runner-5f6749b4d-ll6rs(version:v0.2.6) received task 96 of job 64, be triggered by event: push 2024-03-02T19:21:48.3076088Z workflow prepared 2024-03-02T19:21:48.3078924Z evaluating expression 'success()' 2024-03-02T19:21:48.3084636Z expression 'success()' evaluated to 'true' 2024-03-02T19:21:48.3085712Z 🚀 Start image=ghcr.io/catthehacker/ubuntu:runner-22.04 2024-03-02T19:21:48.3515436Z 🐳 docker pull image=nginx:latest platform= username= forcePull=false 2024-03-02T19:21:48.3515776Z 🐳 docker pull nginx:latest 2024-03-02T19:21:48.3562464Z Image exists? false 2024-03-02T19:21:48.3563735Z pulling image 'docker.io/library/nginx:latest' () 2024-03-02T19:21:51.2622858Z Pulling from library/nginx :: latest 2024-03-02T19:21:51.9749959Z Pulling fs layer :: e1caac4eb9d2 2024-03-02T19:21:51.9780384Z Pulling fs layer :: 88f6f236f401 2024-03-02T19:21:51.9781252Z Pulling fs layer :: c3ea3344e711 2024-03-02T19:21:51.9783047Z Pulling fs layer :: cc1bb4345a3a 2024-03-02T19:21:51.9790617Z Pulling fs layer :: da8fa4352481 2024-03-02T19:21:51.9790998Z Pulling fs layer :: c7f80e9cdab2 2024-03-02T19:21:51.9791167Z Pulling fs layer :: 18a869624cb6 2024-03-02T19:21:51.9791274Z Waiting :: cc1bb4345a3a 2024-03-02T19:21:51.9791351Z Waiting :: da8fa4352481 2024-03-02T19:21:51.9791563Z Waiting :: c7f80e9cdab2 2024-03-02T19:21:51.9792010Z Waiting :: 18a869624cb6 2024-03-02T19:21:52.6958853Z Downloading :: 88f6f236f401 :: [> ] 426kB/41.39MB 2024-03-02T19:21:52.7017014Z Downloading :: c3ea3344e711 :: [==================================================>] 629B/629B 2024-03-02T19:21:52.7025673Z Verifying Checksum :: c3ea3344e711 2024-03-02T19:21:52.7034360Z Download complete :: c3ea3344e711 2024-03-02T19:21:52.7269037Z Downloading :: e1caac4eb9d2 :: [> ] 294.9kB/29.12MB 2024-03-02T19:21:52.7994305Z Downloading :: 88f6f236f401 :: [=========> ] 7.629MB/41.39MB 2024-03-02T19:21:52.8251714Z Downloading :: e1caac4eb9d2 :: [======> ] 3.862MB/29.12MB 2024-03-02T19:21:52.9053405Z Downloading :: 88f6f236f401 :: [=================> ] 14.85MB/41.39MB 2024-03-02T19:21:52.9262883Z Downloading :: e1caac4eb9d2 :: [===========> ] 6.531MB/29.12MB 2024-03-02T19:21:53.0079413Z Downloading :: 88f6f236f401 :: [==========================> ] 22.06MB/41.39MB 2024-03-02T19:21:53.0306661Z Downloading :: e1caac4eb9d2 :: [================> ] 9.792MB/29.12MB 2024-03-02T19:21:53.1156883Z Downloading :: 88f6f236f401 :: [===================================> ] 29.29MB/41.39MB 2024-03-02T19:21:53.1389723Z Downloading :: e1caac4eb9d2 :: [======================> ] 13.35MB/29.12MB 2024-03-02T19:21:53.2282615Z Downloading :: 88f6f236f401 :: [==========================================> ] 34.83MB/41.39MB 2024-03-02T19:21:53.2453644Z Downloading :: e1caac4eb9d2 :: [=============================> ] 16.9MB/29.12MB 2024-03-02T19:21:53.3285352Z Verifying Checksum :: 88f6f236f401 2024-03-02T19:21:53.3297662Z Download complete :: 88f6f236f401 2024-03-02T19:21:53.3497280Z Downloading :: e1caac4eb9d2 :: [====================================> ] 21.37MB/29.12MB 2024-03-02T19:21:53.4512002Z Downloading :: e1caac4eb9d2 :: [=================================================> ] 29.06MB/29.12MB 2024-03-02T19:21:53.4526445Z Downloading :: cc1bb4345a3a :: [=====================================> ] 720B/957B 2024-03-02T19:21:53.4528893Z Downloading :: cc1bb4345a3a :: [==================================================>] 957B/957B 2024-03-02T19:21:53.4531020Z Verifying Checksum :: e1caac4eb9d2 2024-03-02T19:21:53.4532991Z Download complete :: e1caac4eb9d2 2024-03-02T19:21:53.4539243Z Verifying Checksum :: cc1bb4345a3a 2024-03-02T19:21:53.4540502Z Download complete :: cc1bb4345a3a 2024-03-02T19:21:53.5352171Z Extracting :: e1caac4eb9d2 :: [> ] 294.9kB/29.12MB 2024-03-02T19:21:53.6397466Z Extracting :: e1caac4eb9d2 :: [======> ] 3.834MB/29.12MB 2024-03-02T19:21:53.7543830Z Extracting :: e1caac4eb9d2 :: [============> ] 7.078MB/29.12MB 2024-03-02T19:21:53.8614989Z Extracting :: e1caac4eb9d2 :: [===============> ] 9.142MB/29.12MB 2024-03-02T19:21:53.9725042Z Extracting :: e1caac4eb9d2 :: [=================> ] 10.32MB/29.12MB 2024-03-02T19:21:54.0445904Z Downloading :: da8fa4352481 :: [==================================================>] 394B/394B 2024-03-02T19:21:54.0446477Z Verifying Checksum :: da8fa4352481 2024-03-02T19:21:54.0446682Z Download complete :: da8fa4352481 2024-03-02T19:21:54.0836711Z Extracting :: e1caac4eb9d2 :: [====================> ] 11.8MB/29.12MB 2024-03-02T19:21:54.1463079Z Downloading :: c7f80e9cdab2 :: [=============================> ] 719B/1.209kB 2024-03-02T19:21:54.1470556Z Downloading :: c7f80e9cdab2 :: [==================================================>] 1.209kB/1.209kB 2024-03-02T19:21:54.1472974Z Verifying Checksum :: c7f80e9cdab2 2024-03-02T19:21:54.1473285Z Download complete :: c7f80e9cdab2 2024-03-02T19:21:54.1852742Z Extracting :: e1caac4eb9d2 :: [=========================> ] 15.04MB/29.12MB 2024-03-02T19:21:54.1956973Z Downloading :: 18a869624cb6 :: [=========================> ] 719B/1.399kB 2024-03-02T19:21:54.1961893Z Downloading :: 18a869624cb6 :: [==================================================>] 1.399kB/1.399kB 2024-03-02T19:21:54.1964282Z Verifying Checksum :: 18a869624cb6 2024-03-02T19:21:54.1966614Z Download complete :: 18a869624cb6 2024-03-02T19:21:54.2914733Z Extracting :: e1caac4eb9d2 :: [================================> ] 19.17MB/29.12MB 2024-03-02T19:21:54.3977291Z Extracting :: e1caac4eb9d2 :: [======================================> ] 22.71MB/29.12MB 2024-03-02T19:21:54.6754000Z Extracting :: e1caac4eb9d2 :: [==========================================> ] 24.77MB/29.12MB 2024-03-02T19:21:54.7801715Z Extracting :: e1caac4eb9d2 :: [==============================================> ] 26.84MB/29.12MB 2024-03-02T19:21:54.9019518Z Extracting :: e1caac4eb9d2 :: [===============================================> ] 27.72MB/29.12MB 2024-03-02T19:21:55.3462997Z Extracting :: e1caac4eb9d2 :: [================================================> ] 28.31MB/29.12MB 2024-03-02T19:21:55.5380347Z Extracting :: e1caac4eb9d2 :: [==================================================>] 29.12MB/29.12MB 2024-03-02T19:21:55.6303501Z Pull complete :: e1caac4eb9d2 2024-03-02T19:21:55.7371634Z Extracting :: 88f6f236f401 :: [> ] 426kB/41.39MB 2024-03-02T19:21:55.8471087Z Extracting :: 88f6f236f401 :: [====> ] 3.834MB/41.39MB 2024-03-02T19:21:55.9676139Z Extracting :: 88f6f236f401 :: [=========> ] 7.668MB/41.39MB 2024-03-02T19:21:56.0690953Z Extracting :: 88f6f236f401 :: [==============> ] 12.35MB/41.39MB 2024-03-02T19:21:56.1810067Z Extracting :: 88f6f236f401 :: [======================> ] 18.32MB/41.39MB 2024-03-02T19:21:56.2820755Z Extracting :: 88f6f236f401 :: [===========================> ] 23MB/41.39MB 2024-03-02T19:21:56.3909100Z Extracting :: 88f6f236f401 :: [=================================> ] 28.11MB/41.39MB 2024-03-02T19:21:56.4936533Z Extracting :: 88f6f236f401 :: [=======================================> ] 32.8MB/41.39MB 2024-03-02T19:21:56.5996120Z Extracting :: 88f6f236f401 :: [==========================================> ] 35.36MB/41.39MB 2024-03-02T19:21:56.7108871Z Extracting :: 88f6f236f401 :: [=============================================> ] 37.49MB/41.39MB 2024-03-02T19:21:56.8988431Z Extracting :: 88f6f236f401 :: [===============================================> ] 39.19MB/41.39MB 2024-03-02T19:21:57.0629667Z Extracting :: 88f6f236f401 :: [==================================================>] 41.39MB/41.39MB 2024-03-02T19:21:57.1415189Z Pull complete :: 88f6f236f401 2024-03-02T19:21:57.1526028Z Extracting :: c3ea3344e711 :: [==================================================>] 629B/629B 2024-03-02T19:21:57.1532627Z Extracting :: c3ea3344e711 :: [==================================================>] 629B/629B 2024-03-02T19:21:57.2043491Z Pull complete :: c3ea3344e711 2024-03-02T19:21:57.2167651Z Extracting :: cc1bb4345a3a :: [==================================================>] 957B/957B 2024-03-02T19:21:57.2172041Z Extracting :: cc1bb4345a3a :: [==================================================>] 957B/957B 2024-03-02T19:21:57.2611559Z Pull complete :: cc1bb4345a3a 2024-03-02T19:21:57.2723717Z Extracting :: da8fa4352481 :: [==================================================>] 394B/394B 2024-03-02T19:21:57.2727427Z Extracting :: da8fa4352481 :: [==================================================>] 394B/394B 2024-03-02T19:21:57.3239892Z Pull complete :: da8fa4352481 2024-03-02T19:21:57.3352926Z Extracting :: c7f80e9cdab2 :: [==================================================>] 1.209kB/1.209kB 2024-03-02T19:21:57.3355279Z Extracting :: c7f80e9cdab2 :: [==================================================>] 1.209kB/1.209kB 2024-03-02T19:21:57.3770408Z Pull complete :: c7f80e9cdab2 2024-03-02T19:21:57.3881115Z Extracting :: 18a869624cb6 :: [==================================================>] 1.399kB/1.399kB 2024-03-02T19:21:57.3885429Z Extracting :: 18a869624cb6 :: [==================================================>] 1.399kB/1.399kB 2024-03-02T19:21:57.4300697Z Pull complete :: 18a869624cb6 2024-03-02T19:21:57.4678242Z Digest: sha256:c26ae7472d624ba1fafd296e73cecc4f93f853088e6a9c13c0d52f6ca5865107 :: 2024-03-02T19:21:57.4790705Z Status: Downloaded newer image for nginx:latest :: 2024-03-02T19:21:57.4868874Z 🐳 docker pull image=ghcr.io/catthehacker/ubuntu:runner-22.04 platform= username= forcePull=false 2024-03-02T19:21:57.4869434Z 🐳 docker pull ghcr.io/catthehacker/ubuntu:runner-22.04 2024-03-02T19:21:57.4918599Z Image exists? true 2024-03-02T19:21:57.4919583Z 🐳 docker pull image=nginx:latest platform= username= forcePull=false 2024-03-02T19:21:57.4919706Z 🐳 docker pull nginx:latest 2024-03-02T19:21:57.4953574Z Image exists? true 2024-03-02T19:21:57.4954274Z 🐳 docker create image=nginx:latest platform= entrypoint=[] cmd=[] 2024-03-02T19:21:57.4963988Z Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:nginx:latest Volumes:map[] WorkingDir:/workspace/stevefan1999/test3 Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]} 2024-03-02T19:21:57.5109609Z Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:bridge PortBindings:map[] RestartPolicy:{Name: 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:true 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:[] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>} 2024-03-02T19:21:57.7903898Z Created container name=GITEA-ACTIONS-TASK-96-WORKFLOW-services-host-network-JOB-services-host-network1_nginx id=aee8a07530955225836b2e67171423fff5c91afe2a81dd17a3977f5ca62cb501 from image nginx:latest (platform: ) 2024-03-02T19:21:57.7904351Z ENV ==> [] 2024-03-02T19:21:57.7904544Z 🐳 docker run image=nginx:latest platform= entrypoint=[] cmd=[] 2024-03-02T19:21:57.7904764Z Starting container: aee8a07530955225836b2e67171423fff5c91afe2a81dd17a3977f5ca62cb501 2024-03-02T19:21:58.7568052Z Started container: aee8a07530955225836b2e67171423fff5c91afe2a81dd17a3977f5ca62cb501 2024-03-02T19:21:58.9296340Z 🐳 docker create image=ghcr.io/catthehacker/ubuntu:runner-22.04 platform= entrypoint=["/bin/sleep" "10800"] cmd=[] 2024-03-02T19:21:58.9320312Z Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false 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:ghcr.io/catthehacker/ubuntu:runner-22.04 Volumes:map[] WorkingDir:/workspace/stevefan1999/test3 Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]} 2024-03-02T19:21:58.9433189Z Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:bridge PortBindings:map[] RestartPolicy:{Name: 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:true 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:GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1 Target:/workspace/stevefan1999/test3 ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-toolcache Target:/toolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>} 2024-03-02T19:21:59.0760906Z Created container name=GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1 id=f880c6e3dbfffb974f09340cb7bcfda74167e85f4497e11681778d3a1c57cd90 from image ghcr.io/catthehacker/ubuntu:runner-22.04 (platform: ) 2024-03-02T19:21:59.0765799Z ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] 2024-03-02T19:21:59.0768028Z 🐳 docker run image=ghcr.io/catthehacker/ubuntu:runner-22.04 platform= entrypoint=["/bin/sleep" "10800"] cmd=[] 2024-03-02T19:21:59.0769904Z Starting container: f880c6e3dbfffb974f09340cb7bcfda74167e85f4497e11681778d3a1c57cd90 2024-03-02T19:21:59.4703711Z Started container: f880c6e3dbfffb974f09340cb7bcfda74167e85f4497e11681778d3a1c57cd90 2024-03-02T19:21:59.6447568Z 🐳 docker exec cmd=[chown -R 1001:1001 /workspace/stevefan1999/test3] user=0 workdir= 2024-03-02T19:21:59.6448035Z Exec command '[chown -R 1001:1001 /workspace/stevefan1999/test3]' 2024-03-02T19:21:59.6448330Z Working directory '/workspace/stevefan1999/test3' 2024-03-02T19:21:59.7198733Z Writing entry to tarball workflow/event.json len:4469 2024-03-02T19:21:59.7199828Z Writing entry to tarball workflow/envs.txt len:0 2024-03-02T19:21:59.7200195Z Extracting content to '/var/run/act/' 2024-03-02T19:21:59.7637577Z setupEnv => map[ACT:true ACTIONS_RUNTIME_TOKEN:*** ACTIONS_RUNTIME_URL:https://git2.stevefan1999.me/api/actions_pipeline/ CI:true GITEA_ACTIONS:true GITEA_ACTIONS_RUNNER_VERSION:v0.2.6 GITEA_RUNNER_ENV_VAR_1: GITEA_RUNNER_ENV_VAR_2: GITEA_RUNNER_ENV_VAR_3: GITEA_RUNNER_ENV_VAR_4: GITEA_RUNNER_ENV_VAR_5: GITEA_RUNNER_ENV_VAR_6: GITEA_RUNNER_ENV_VAR_7: GITEA_RUNNER_ENV_VAR_8: GITEA_RUNNER_ENV_VAR_9: GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:stevefan1999 GITHUB_API_URL:https://git2.stevefan1999.me/api/v1 GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL: GITHUB_HEAD_REF: GITHUB_JOB:services-host-network1 GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:stevefan1999/test3 GITHUB_REPOSITORY_OWNER:stevefan1999 GITHUB_RETENTION_DAYS: GITHUB_RUN_ID:21 GITHUB_RUN_NUMBER:2 GITHUB_SERVER_URL:https://git2.stevefan1999.me GITHUB_SHA:4e1cc79179a8f3a5c6dabcdaed108492c017c744 GITHUB_TOKEN:*** GITHUB_WORKFLOW:services-host-network GITHUB_WORKSPACE:/workspace/stevefan1999/test3 ImageOS:ubuntu20 JOB_CONTAINER_NAME:GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:] 2024-03-02T19:21:59.7738316Z evaluating expression '' 2024-03-02T19:21:59.7739737Z expression '' evaluated to 'true' 2024-03-02T19:21:59.7740047Z ⭐ Run Main curl -v http://localhost:8080 2024-03-02T19:21:59.7740453Z Writing entry to tarball workflow/outputcmd.txt len:0 2024-03-02T19:21:59.7740675Z Writing entry to tarball workflow/statecmd.txt len:0 2024-03-02T19:21:59.7740802Z Writing entry to tarball workflow/pathcmd.txt len:0 2024-03-02T19:21:59.7740916Z Writing entry to tarball workflow/envs.txt len:0 2024-03-02T19:21:59.7741012Z Writing entry to tarball workflow/SUMMARY.md len:0 2024-03-02T19:21:59.7741106Z Extracting content to '/var/run/act' 2024-03-02T19:21:59.8156283Z Wrote command \n\ncurl -v http://localhost:8080\n\n to 'workflow/0' 2024-03-02T19:21:59.8157033Z Writing entry to tarball workflow/0 len:31 2024-03-02T19:21:59.8157291Z Extracting content to '/var/run/act' 2024-03-02T19:21:59.8191083Z 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0] user= workdir= 2024-03-02T19:21:59.8192025Z Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0]' 2024-03-02T19:21:59.8192583Z Working directory '/workspace/stevefan1999/test3' 2024-03-02T19:22:00.0618903Z * Trying 127.0.0.1:8080... 2024-03-02T19:22:00.0619307Z % Total % Received % Xferd Average Speed Time Time Time Current 2024-03-02T19:22:00.0619401Z Dload Upload Total Spent Left Speed 2024-03-02T19:22:00.0619648Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connect to 127.0.0.1 port 8080 failed: Connection refused 2024-03-02T19:22:00.0619778Z * Trying ::1:8080... 2024-03-02T19:22:00.0624002Z * Immediate connect fail for ::1: Cannot assign requested address 2024-03-02T19:22:00.0624174Z * Failed to connect to localhost port 8080 after 0 ms: Connection refused 2024-03-02T19:22:00.0624292Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2024-03-02T19:22:00.0625918Z * Closing connection 0 2024-03-02T19:22:00.0627681Z curl: (7) Failed to connect to localhost port 8080 after 0 ms: Connection refused 2024-03-02T19:22:00.0877271Z exitcode '7': failure 2024-03-02T19:22:00.0877926Z Cleaning up services for job services-host-network1 2024-03-02T19:22:00.4599177Z Removed container: aee8a07530955225836b2e67171423fff5c91afe2a81dd17a3977f5ca62cb501 2024-03-02T19:22:00.4600271Z Cleaning up container for job services-host-network1 2024-03-02T19:22:00.7266783Z Removed container: f880c6e3dbfffb974f09340cb7bcfda74167e85f4497e11681778d3a1c57cd90 2024-03-02T19:22:00.7284786Z 🐳 docker volume rm GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1 2024-03-02T19:22:00.7344081Z 🐳 docker volume rm GITEA-ACTIONS-TASK-96_WORKFLOW-services-host-network_JOB-services-host-network1-env 2024-03-02T19:22:00.7399917Z 🏁 Job failed 2024-03-02T19:22:00.7512046Z Job 'services-host-network1' failed ``` ```` ### Additional information Also I'm not sure if that's intentional but that the actual test data wasn't used at all, and therefore we cannot determine whether this is a regression or not (since the test data is actually useless at the moment), as such each Actions just runs in under a minute. Maybe we should ensure that the **actual behavior in Docker** should match rather than mocking it in Golang.
stevefan1999 added the
kind
bug
label 2024-03-02 19:26:42 +00:00
Author

Also upstream act seems to have it supported few months ago: https://github.com/nektos/act/releases/tag/v0.2.53

Also upstream act seems to have it supported few months ago: https://github.com/nektos/act/releases/tag/v0.2.53

This works starting with gitea/act_runner#491, like I told you in the other issue

image

Both nektos act and gitea act doesn't support waiting for the container to be ready, so postgres and mysql are somewhat broken without waiting manually.

This works starting with https://gitea.com/gitea/act_runner/pulls/491, like I told you in the other issue ![image](/attachments/8d72e63c-2c98-46ff-9bda-c844915274eb) Both nektos act and gitea act doesn't support waiting for the container to be ready, so postgres and mysql are somewhat broken without waiting manually.
119 KiB
Owner

I think this can be closed.

I think this can be closed.
lunny closed this issue 2024-04-01 13:50:04 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/act#93
No description provided.