[GH-ISSUE #1943] Git Clone failing when running same actions parallely. #932

Closed
opened 2026-03-01 21:47:32 +03:00 by kerem · 5 comments
Owner

Originally created by @sahithibanda01 on GitHub (Aug 2, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1943

Bug report info

act version:            0.2.49
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 10
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	/var/run/docker.sock
	/var/run/podman/podman.sock
Config files:           
Build info:
	Go version:            go1.20.6
	Module path:           github.com/nektos/act
	Main version:          (devel)
	Main path:             github.com/nektos/act
	Main checksum:         
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -s -w -X main.version=0.2.49 -X main.commit=d5d854854651c151ecd914bb6e2e370e0057929a -X main.date=2023-08-01T02:21:56Z -X main.builtBy=goreleaser
		CGO_ENABLED:          0
		GOARCH:               amd64
		GOOS:                 linux
		GOAMD64:              v1
		vcs:                  git
		vcs.revision:         d5d854854651c151ecd914bb6e2e370e0057929a
		vcs.time:             2023-08-01T02:21:38Z
		vcs.modified:         false
Docker Engine:
	Engine version:        20.10.18
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         systemd
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Ubuntu 22.04.1 LTS
	OS type:               linux
	OS version:            22.04
	OS arch:               x86_64
	OS kernel:             5.10.51
	OS CPU:                10
	OS memory:             26070 MB
	Security options:
		name=seccomp,profile=default
		name=cgroupns

Command used with act

act -W workflow.yml -P -self-hosted=-self-hosted -b --detect-event

Describe issue

We are trying to run same github actions in parallel and it is intermitently failing while doing the git clone.
Action name: actions/hello-world-javascript-action@v1.1

act -W worflow.yml -P -self-hosted=-self-hosted -b --detect-event
☁  git clone 'https://github.com/actions/hello-world-javascript-action' # ref=v1.1
Unable to clone https://github.com/actions/hello-world-javascript-action refs/heads/v1.1: already up-to-date
Job succeeded
Error: already up-to-date

https://github.com/actions/hello-world-javascript-action

Workflow content

name: github-action
"on": custom
jobs:
  action:
    name: action
    runs-on: -self-hosted
    steps:
    - id: stepId
      uses: actions/hello-world-javascript-action@v1.1
      with:
        who-to-greet: hello-world

Relevant log output

act -W worflow.yml -P -self-hosted=-self-hosted -b --detect-event
☁  git clone 'https://github.com/actions/hello-world-javascript-action' # ref=v1.1
Unable to clone https://github.com/actions/hello-world-javascript-action refs/heads/v1.1: already up-to-date
Job succeeded
Error: already up-to-date


### Additional information

_No response_
Originally created by @sahithibanda01 on GitHub (Aug 2, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1943 ### Bug report info ```plain text act version: 0.2.49 GOOS: linux GOARCH: amd64 NumCPU: 10 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock /var/run/podman/podman.sock Config files: Build info: Go version: go1.20.6 Module path: github.com/nektos/act Main version: (devel) Main path: github.com/nektos/act Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -s -w -X main.version=0.2.49 -X main.commit=d5d854854651c151ecd914bb6e2e370e0057929a -X main.date=2023-08-01T02:21:56Z -X main.builtBy=goreleaser CGO_ENABLED: 0 GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: d5d854854651c151ecd914bb6e2e370e0057929a vcs.time: 2023-08-01T02:21:38Z vcs.modified: false Docker Engine: Engine version: 20.10.18 Engine runtime: runc Cgroup version: 2 Cgroup driver: systemd Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Ubuntu 22.04.1 LTS OS type: linux OS version: 22.04 OS arch: x86_64 OS kernel: 5.10.51 OS CPU: 10 OS memory: 26070 MB Security options: name=seccomp,profile=default name=cgroupns ``` ### Command used with act ```sh act -W workflow.yml -P -self-hosted=-self-hosted -b --detect-event ``` ### Describe issue We are trying to run same github actions in parallel and it is intermitently failing while doing the git clone. Action name: `actions/hello-world-javascript-action@v1.1` ``` act -W worflow.yml -P -self-hosted=-self-hosted -b --detect-event ☁ git clone 'https://github.com/actions/hello-world-javascript-action' # ref=v1.1 Unable to clone https://github.com/actions/hello-world-javascript-action refs/heads/v1.1: already up-to-date Job succeeded Error: already up-to-date ``` ### Link to GitHub repository https://github.com/actions/hello-world-javascript-action ### Workflow content ```yml name: github-action "on": custom jobs: action: name: action runs-on: -self-hosted steps: - id: stepId uses: actions/hello-world-javascript-action@v1.1 with: who-to-greet: hello-world ``` ### Relevant log output ```sh act -W worflow.yml -P -self-hosted=-self-hosted -b --detect-event ☁ git clone 'https://github.com/actions/hello-world-javascript-action' # ref=v1.1 Unable to clone https://github.com/actions/hello-world-javascript-action refs/heads/v1.1: already up-to-date Job succeeded Error: already up-to-date ``` ``` ### Additional information _No response_
kerem 2026-03-01 21:47:32 +03:00
Author
Owner

@raghavharness commented on GitHub (Aug 2, 2023):

Sometimes we also get this error when running any github action parallely.

Error: empty git-upload-pack given
<!-- gh-comment-id:1662061057 --> @raghavharness commented on GitHub (Aug 2, 2023): Sometimes we also get this error when running any github action parallely. ``` Error: empty git-upload-pack given ```
Author
Owner

@ChristopherHX commented on GitHub (Aug 2, 2023):

I wanted to address this in https://github.com/nektos/act/pull/1913 and followups. To make downloading actions thread safe.

One big problem is getting things merged step by step and getting reviews. Nothing I can do as a single maintainer, my PR's require two approvals from other maintainers however most maintainer disappeared recently and only cplee (owner) can merge anything.

<!-- gh-comment-id:1662101713 --> @ChristopherHX commented on GitHub (Aug 2, 2023): I wanted to address this in https://github.com/nektos/act/pull/1913 and followups. To make downloading actions thread safe. One big problem is getting things merged step by step and getting reviews. Nothing I can do as a single maintainer, my PR's require two approvals from other maintainers however most maintainer disappeared recently and only cplee (owner) can merge anything.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 30, 2024):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:1915803923 --> @github-actions[bot] commented on GitHub (Jan 30, 2024): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@ChristopherHX commented on GitHub (Jan 30, 2024):

Please confirm if the next act release fixes the issue using the feature flag --use-new-action-cache

Note this flag enables a complete rewrite how actions are cloned

I need feedback to know when it's time to make it the new default.

act -W workflow.yml -P -self-hosted=-self-hosted -b --detect-event --use-new-action-cache
<!-- gh-comment-id:1916387050 --> @ChristopherHX commented on GitHub (Jan 30, 2024): Please confirm if the next act release fixes the issue using the feature flag `--use-new-action-cache` **Note** this flag enables a complete rewrite how actions are cloned I need feedback to know when it's time to make it the new default. ``` act -W workflow.yml -P -self-hosted=-self-hosted -b --detect-event --use-new-action-cache ```
Author
Owner

@github-actions[bot] commented on GitHub (Jul 29, 2024):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:2254720226 --> @github-actions[bot] commented on GitHub (Jul 29, 2024): Issue is stale and will be closed in 14 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/act#932
No description provided.