[GH-ISSUE #2193] Crash on version 0.2.58 with "open : no such file or directory" #1034

Closed
opened 2026-03-01 21:48:22 +03:00 by kerem · 8 comments
Owner

Originally created by @goofyblci on GitHub (Feb 1, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2193

Bug report info

act version:            0.2.58
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 20
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
Config files:
        /root/.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
                -ldflags:             -s -w -X main.version=0.2.58 -X main.commit=3ed38d8e8b63f435cb845fbe9cdccc7ff032f402 -X main.date=2024-02-01T02:12:51Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         3ed38d8e8b63f435cb845fbe9cdccc7ff032f402
                vcs.time:             2024-02-01T02:12:33Z
                vcs.modified:         false
Docker Engine:
        Engine version:        25.0.0
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         systemd
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Ubuntu 22.04.3 LTS
        OS type:               linux
        OS version:            22.04
        OS arch:               x86_64
        OS kernel:             6.5.0-15-generic
        OS CPU:                20
        OS memory:             31775 MB
        Security options:
                name=apparmor
                name=seccomp,profile=builtin
                name=cgroupns

Command used with act

act -j test

Describe issue

Run the github workflow with a positive output

https://github.com/cplee/github-actions-demo

Workflow content

name: CI
on: push

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
    - run: npm install
    - run: npm test

Relevant log output

DEBU[0000] Loading environment from /home/user/Documents/projects/github-actions-demo/.env
DEBU[0000] Loading action inputs from /home/user/Documents/projects/github-actions-demo/.input
DEBU[0000] Loading secrets from /home/user/Documents/projects/github-actions-demo/.secrets
DEBU[0000] Loading vars from /home/user/Documents/projects/github-actions-demo/.vars
DEBU[0000] Evaluated matrix inclusions: map[]
DEBU[0000] Loading workflows from '/home/user/Documents/projects/github-actions-demo/.github/workflows'
DEBU[0000] Loading workflows recursively
DEBU[0000] Found workflow 'main.yml' in '/home/user/Documents/projects/github-actions-demo/.github/workflows/main.yml'
DEBU[0000] Reading workflow '/home/user/Documents/projects/github-actions-demo/.github/workflows/main.yml'
DEBU[0000] Conditional GET for notices etag=96b12462-d702-4b18-af76-8a7da5d9756e
DEBU[0000] Preparing plan with all jobs
DEBU[0000] Using the only detected workflow event: push
DEBU[0000] Planning jobs for event: push
? Please choose the default image you want to use with act:
  - Large size image: ca. 17GB download + 53.1GB storage, you will need 75GB of free disk space, snapshots of GitHub Hosted Runners without snap and pulled docker images
  - Medium size image: ~500MB, includes only necessary tools to bootstrap actions and aims to be compatible with most actions
  - Micro size image: <200MB, contains only NodeJS required to bootstrap actions, doesn't work with all actions

Default image and other options can be changed manually in ~/.actrc (please refer to https://github.com/nektos/act#configuration for additional information about file structure) Medium
FATA[0001] open : no such file or directory

Additional information

with 0.2.57 works everything fine!

Originally created by @goofyblci on GitHub (Feb 1, 2024). Original GitHub issue: https://github.com/nektos/act/issues/2193 ### Bug report info ```plain text act version: 0.2.58 GOOS: linux GOARCH: amd64 NumCPU: 20 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock Config files: /root/.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 -ldflags: -s -w -X main.version=0.2.58 -X main.commit=3ed38d8e8b63f435cb845fbe9cdccc7ff032f402 -X main.date=2024-02-01T02:12:51Z -X main.builtBy=goreleaser CGO_ENABLED: 0 GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: 3ed38d8e8b63f435cb845fbe9cdccc7ff032f402 vcs.time: 2024-02-01T02:12:33Z vcs.modified: false Docker Engine: Engine version: 25.0.0 Engine runtime: runc Cgroup version: 2 Cgroup driver: systemd Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Ubuntu 22.04.3 LTS OS type: linux OS version: 22.04 OS arch: x86_64 OS kernel: 6.5.0-15-generic OS CPU: 20 OS memory: 31775 MB Security options: name=apparmor name=seccomp,profile=builtin name=cgroupns ``` ### Command used with act ```sh act -j test ``` ### Describe issue Run the github workflow with a positive output ### Link to GitHub repository https://github.com/cplee/github-actions-demo ### Workflow content ```yml name: CI on: push jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 - run: npm install - run: npm test ``` ### Relevant log output ```sh DEBU[0000] Loading environment from /home/user/Documents/projects/github-actions-demo/.env DEBU[0000] Loading action inputs from /home/user/Documents/projects/github-actions-demo/.input DEBU[0000] Loading secrets from /home/user/Documents/projects/github-actions-demo/.secrets DEBU[0000] Loading vars from /home/user/Documents/projects/github-actions-demo/.vars DEBU[0000] Evaluated matrix inclusions: map[] DEBU[0000] Loading workflows from '/home/user/Documents/projects/github-actions-demo/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'main.yml' in '/home/user/Documents/projects/github-actions-demo/.github/workflows/main.yml' DEBU[0000] Reading workflow '/home/user/Documents/projects/github-actions-demo/.github/workflows/main.yml' DEBU[0000] Conditional GET for notices etag=96b12462-d702-4b18-af76-8a7da5d9756e DEBU[0000] Preparing plan with all jobs DEBU[0000] Using the only detected workflow event: push DEBU[0000] Planning jobs for event: push ? Please choose the default image you want to use with act: - Large size image: ca. 17GB download + 53.1GB storage, you will need 75GB of free disk space, snapshots of GitHub Hosted Runners without snap and pulled docker images - Medium size image: ~500MB, includes only necessary tools to bootstrap actions and aims to be compatible with most actions - Micro size image: <200MB, contains only NodeJS required to bootstrap actions, doesn't work with all actions Default image and other options can be changed manually in ~/.actrc (please refer to https://github.com/nektos/act#configuration for additional information about file structure) Medium FATA[0001] open : no such file or directory ``` ### Additional information with 0.2.57 works everything fine!
kerem 2026-03-01 21:48:22 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@RizwanNaasir commented on GitHub (Feb 1, 2024):

Screenshot 2024-02-01 at 10 27 39 AM Same Here `0.2.58`
<!-- gh-comment-id:1921718248 --> @RizwanNaasir commented on GitHub (Feb 1, 2024): <img width="1442" alt="Screenshot 2024-02-01 at 10 27 39 AM" src="https://github.com/nektos/act/assets/97438351/d0c6b09d-7aac-48e3-9b13-7907a8d137e7"> Same Here `0.2.58`
Author
Owner

@ChristopherHX commented on GitHub (Feb 1, 2024):

Could this be a regression of https://github.com/nektos/act/pull/2140?

I can reproduce this bug on windows.

<!-- gh-comment-id:1921743764 --> @ChristopherHX commented on GitHub (Feb 1, 2024): Could this be a regression of <https://github.com/nektos/act/pull/2140>? I can reproduce this bug on windows.
Author
Owner

@ChristopherHX commented on GitHub (Feb 1, 2024):

You can also just create the .actrc via v0.2.57 or create a file like

~/.actrc/%USERPROFILE%\.actrc

small

-P ubuntu-latest=node:16-buster-slim
-P ubuntu-22.04=node:16-bullseye-slim
-P ubuntu-20.04=node:16-buster-slim
-P ubuntu-18.04=node:16-buster-slim

medium

-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

large

-P ubuntu-latest=catthehacker/ubuntu:full-latest
-P ubuntu-22.04=catthehacker/ubuntu:full-22.04
-P ubuntu-20.04=catthehacker/ubuntu:full-20.04
-P ubuntu-18.04=catthehacker/ubuntu:full-18.04
<!-- gh-comment-id:1921757073 --> @ChristopherHX commented on GitHub (Feb 1, 2024): You can also just create the `.actrc` via v0.2.57 or create a file like `~/.actrc`/`%USERPROFILE%\.actrc` small ``` -P ubuntu-latest=node:16-buster-slim -P ubuntu-22.04=node:16-bullseye-slim -P ubuntu-20.04=node:16-buster-slim -P ubuntu-18.04=node:16-buster-slim ``` medium ``` -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 ``` large ``` -P ubuntu-latest=catthehacker/ubuntu:full-latest -P ubuntu-22.04=catthehacker/ubuntu:full-22.04 -P ubuntu-20.04=catthehacker/ubuntu:full-20.04 -P ubuntu-18.04=catthehacker/ubuntu:full-18.04 ```
Author
Owner

@mrnossiom commented on GitHub (Feb 1, 2024):

I'm investigating

<!-- gh-comment-id:1921952021 --> @mrnossiom commented on GitHub (Feb 1, 2024): I'm investigating
Author
Owner

@patrickisgreat commented on GitHub (Feb 1, 2024):

lol -- I just went to use this for the first time thinking this will be excellent and useful and this bug seems to have popped up mere hours ago. I can confirm I too am experiencing this -- MacOS Sonoma / M2 ARM.
Screenshot 2024-02-01 at 2 44 22 PM

<!-- gh-comment-id:1922103417 --> @patrickisgreat commented on GitHub (Feb 1, 2024): lol -- I just went to use this for the first time thinking this will be excellent and useful and this bug seems to have popped up mere hours ago. I can confirm I too am experiencing this -- MacOS Sonoma / M2 ARM. <img width="897" alt="Screenshot 2024-02-01 at 2 44 22 PM" src="https://github.com/nektos/act/assets/786298/01da90c3-c860-43f8-8dea-ab0298d74af8">
Author
Owner

@ChristopherHX commented on GitHub (Feb 5, 2024):

@mrnossiom Now is Windows Defender against the update: https://github.com/microsoft/winget-pkgs/pull/137554#issuecomment-1925998401

Not shure how we should proceed with the xdg library, I was surprised seeing a duplicated bugreport about this and saw winget didn't merge the update.

I will let scan the binary via my local windows system tomorrow. I don't understand why it is flagged.

Or is creating a directory without answering the survey the problem?

<!-- gh-comment-id:1926007312 --> @ChristopherHX commented on GitHub (Feb 5, 2024): @mrnossiom Now is Windows Defender against the update: https://github.com/microsoft/winget-pkgs/pull/137554#issuecomment-1925998401 Not shure how we should proceed with the xdg library, I was surprised seeing a duplicated bugreport about this and saw winget didn't merge the update. I will let scan the binary via my local windows system tomorrow. I don't understand why it is flagged. Or is creating a directory without answering the survey the problem?
Author
Owner

@mrnossiom commented on GitHub (Feb 13, 2024):

Hi @ChristopherHX,

I really have no idea what could have triggered this. It was my first time writing Go, but I don't see any weird pattern that could be malicious. I run on Linux (as you could guess because I'm pushing enforcement of the XDG spec) and don't have access to a Windows system.

Referring to the XDG lib docs, it does create the folder even though it's not used.

Maybe we could ask help for XDG's maintainers, if it seems like a good idea to you, I can open an issue there.

Btw, did you try to scan the binary yourself as you mentioned ? I don't know how theses CIs work, but can we get more information about what triggers Windows Defender ?

<!-- gh-comment-id:1942149666 --> @mrnossiom commented on GitHub (Feb 13, 2024): Hi @ChristopherHX, I really have no idea what could have triggered this. It was my first time writing Go, but I don't see any weird pattern that could be malicious. I run on Linux (as you could guess because I'm pushing enforcement of the XDG spec) and don't have access to a Windows system. Referring to the XDG lib docs, it does create the folder even though it's not used. Maybe we could ask help for XDG's maintainers, if it seems like a good idea to you, I can open an issue there. Btw, did you try to scan the binary yourself as you mentioned ? I don't know how theses CIs work, but can we get more information about what triggers Windows Defender ?
Author
Owner

@ChristopherHX commented on GitHub (Feb 13, 2024):

They seem to have accepted it after some reruns, no worries

<!-- gh-comment-id:1942151818 --> @ChristopherHX commented on GitHub (Feb 13, 2024): They seem to have accepted it after some reruns, no worries
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#1034
No description provided.