Initial install on windows outputs "The system cannot find the file specified" on first run
dsmiller95 opened this issue · comments
Dmiller commented
Bug report info
act version: 0.2.58
GOOS: windows
GOARCH: amd64
NumCPU: 32
Docker host: DOCKER_HOST environment variable is not set
Sockets found:
\\.\pipe\docker_engine(broken)
Config files:
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: windows
GOAMD64: v1
vcs: git
vcs.revision: 3ed38d8e8b63f435cb845fbe9cdccc7ff032f402
vcs.time: 2024-02-01T02:12:33Z
vcs.modified: false
Docker Engine:
Engine version: 25.0.2
Engine runtime: runc
Cgroup version: 1
Cgroup driver: cgroupfs
Storage driver: overlay2
Registry URI: https://index.docker.io/v1/
OS: Docker Desktop
OS type: linux
OS version:
OS arch: x86_64
OS kernel: 5.15.133.1-microsoft-standard-WSL2
OS CPU: 32
OS memory: 31663 MB
Security options:
name=seccomp,profile=unconfined
Command used with act
act -n
act
Describe issue
After following the setup steps defined in the readme, the first run of act fails with the same error whenever a command is invoked which requires picking the default docker image.
These are my setup steps:
- Installed Docker Desktop
- Restart machine
- Install Act via winget
Test is rep
Link to GitHub repository
No response
Workflow content
name: On Push, do nothing
on: push
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: exit 0
Relevant log output
$ act push -v 2> log_out.txt
? 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
########## log_out.txt ###########
time="2024-02-04T12:53:50-06:00" level=debug msg="Loading environment from F:\\source\\tmp\\act-demo\\.env"
time="2024-02-04T12:53:50-06:00" level=debug msg="Conditional GET for notices etag=d8bc7c2d-a20f-4b4a-b8e0-08aca290f896"
time="2024-02-04T12:53:50-06:00" level=debug msg="Loading action inputs from F:\\source\\tmp\\act-demo\\.input"
time="2024-02-04T12:53:50-06:00" level=debug msg="Loading secrets from F:\\source\\tmp\\act-demo\\.secrets"
time="2024-02-04T12:53:50-06:00" level=debug msg="Loading vars from F:\\source\\tmp\\act-demo\\.vars"
time="2024-02-04T12:53:50-06:00" level=debug msg="Evaluated matrix inclusions: map[]"
time="2024-02-04T12:53:50-06:00" level=debug msg="Loading workflows from 'F:\\source\\tmp\\act-demo\\.github\\workflows'"
time="2024-02-04T12:53:50-06:00" level=debug msg="Loading workflows recursively"
time="2024-02-04T12:53:50-06:00" level=debug msg="Found workflow 'on_push_do_nothing.yml' in 'F:\\source\\tmp\\act-demo\\.github\\workflows\\on_push_do_nothing.yml'"
time="2024-02-04T12:53:50-06:00" level=debug msg="Reading workflow 'F:\\source\\tmp\\act-demo\\.github\\workflows\\on_push_do_nothing.yml'"
time="2024-02-04T12:53:50-06:00" level=debug msg="Using first passed in arguments event for filtering: push"
time="2024-02-04T12:53:50-06:00" level=debug msg="Preparing plan for a event: push"
time="2024-02-04T12:53:50-06:00" level=debug msg="Using first passed in arguments event: push"
time="2024-02-04T12:53:50-06:00" level=debug msg="Planning jobs for event: push"
time="2024-02-04T12:53:51-06:00" level=debug msg="Saving notices etag=d8bc7c2d-a20f-4b4a-b8e0-08aca290f896"
time="2024-02-04T12:53:51-06:00" level=debug msg="No new notices"
time="2024-02-04T12:53:52-06:00" level=fatal msg="open : The system cannot find the file specified."
Additional information
$ ls -a ~ | grep actrc
outputs empty
find .
outputs:
.
./.github
./.github/workflows
./.github/workflows/on_push_do_nothing.yml
./log_out.txt
ChristopherHX commented
@dsmiller95 We released v0.2.59 due to this bug, but Defender detected malware???microsoft/winget-pkgs#137554
Please create a .actrc
file manually see my comment:
#2193 (comment)
Or provide a -P
flag to act
Dmiller commented
Ah, dang! since it's a bad version, I tried downgrading to v0.2.57 manually, via:
winget uninstall nektos.act
winget install nektos.act --version 0.2.57
It seems to be resolved, thanks!