nektos / act

Run your GitHub Actions locally 🚀
https://nektosact.com
MIT License
53.57k stars 1.34k forks source link

actions/upload-artifact@v3 fails with Unable to get ACTIONS_RUNTIME_TOKEN env variable #1929

Open CanePlayz opened 1 year ago

CanePlayz commented 1 year ago

Bug report info

act version:            0.2.48
GOOS:                   windows
GOARCH:                 amd64
NumCPU:                 8
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        \\.\pipe\docker_engine(broken)
Config files:
        C:\Users\jjpfs\.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.18.10
        Module path:           github.com/nektos/act
        Main version:          (devel)
        Main path:             github.com/nektos/act
        Main checksum:
        Build settings:
                -compiler:            gc
                -ldflags:             -s -w -X main.version=0.2.48 -X main.commit=3a0a6425a80f3405670d8d7b11ed18ea56a09af4 -X main.date=2023-07-10T20:04:04Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 windows
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         3a0a6425a80f3405670d8d7b11ed18ea56a09af4
                vcs.time:             2023-07-10T20:03:46Z
                vcs.modified:         false
Docker Engine:
        Engine version:        24.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.90.1-microsoft-standard-WSL2
        OS CPU:                8
        OS memory:             7861 MB
        Security options:
                name=seccomp,profile=builtin

Command used with act

act push

Describe issue

When act encounters the actions/upload-artifact@v3 action, it fails with this output:

[Build/Build]   ❗  ::error::Unable to get ACTIONS_RUNTIME_TOKEN env variable
[Build/Build]   ❌  Failure - Main Upload artifacts
[Build/Build] exitcode '1': failure
[Build/Build] 🏁  Job failed

Link to GitHub repository

https://github.com/CanePlayz/HDGraph (the build workflow but with ubuntu-latest)

Workflow content

name: Build

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest

    env:
      DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
      DOTNET_NOLOGO: true
      DOTNET_CLI_TELEMETRY_OPTOUT: true

    steps:
    - name: Checkout
      uses: actions/checkout@v3

    - name: Install .NET
      uses: actions/setup-dotnet@v3
      with:
        dotnet-version: 7.0.x

    - name: Publish
      run: >
        dotnet publish HDGraph --output publish/ --configuration Release

    - name: Upload artifacts
      uses: actions/upload-artifact@v3
      with:
        name: HDGraph
        path: publish/

Relevant log output

-

Additional information

No response

GuessWhoSamFoo commented 1 year ago

Have you tried --artifact-server-path as descibed in https://github.com/nektos/act/issues/329#issuecomment-1187246629?

CanePlayz commented 1 year ago

Thanks, but now I get this error:

[Build/Build]   🐳  docker cp src=C:\Users\jjpfs\.cache\act/actions-upload-artifact@v3/ dst=/var/run/act/actions/actions-upload-artifact@v3/
[Build/Build]   🐳  docker exec cmd=[node /var/run/act/actions/actions-upload-artifact@v3/dist/index.js] user= workdir=
[Build/Build]   💬  ::debug::followSymbolicLinks 'true'
[Build/Build]   💬  ::debug::implicitDescendants 'true'
[Build/Build]   💬  ::debug::omitBrokenSymbolicLinks 'true'
[Build/Build]   💬  ::debug::followSymbolicLinks 'true'
[Build/Build]   💬  ::debug::implicitDescendants 'true'
[Build/Build]   💬  ::debug::matchDirectories 'true'
[Build/Build]   💬  ::debug::omitBrokenSymbolicLinks 'true'
[Build/Build]   💬  ::debug::Search path '/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish'
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Base.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Controls.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.DesignerSupport.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Desktop.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Dialogs.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Fonts.Inter.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.FreeDesktop.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Markup.Xaml.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Markup.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Metal.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.MicroCom.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Native.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.OpenGL.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Remote.Protocol.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Skia.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Themes.Fluent.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Win32.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.X11.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Cogwheel.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/CommunityToolkit.Mvvm.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/HDGraph was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/HDGraph.deps.json was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/HDGraph.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/HDGraph.pdb was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/HDGraph.runtimeconfig.json was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/HarfBuzzSharp.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/MicroCom.Runtime.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Microsoft.Win32.SystemEvents.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/SkiaSharp.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/System.Drawing.Common.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/System.IO.Pipelines.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Tmds.DBus.Protocol.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-arm from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-arm/native from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-arm/native/libHarfBuzzSharp.so was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-arm/native/libSkiaSharp.so was found using the provided searchPath
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-arm64 from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-arm64/native from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-arm64/native/libHarfBuzzSharp.so was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-arm64/native/libSkiaSharp.so was found using the provided searchPath
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-musl-x64 from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-musl-x64/native from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-musl-x64/native/libHarfBuzzSharp.so was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-musl-x64/native/libSkiaSharp.so was found using the provided searchPath
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-x64 from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-x64/native from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-x64/native/libHarfBuzzSharp.so was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/linux-x64/native/libSkiaSharp.so was found using the provided searchPath
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/osx from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/osx/native from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/osx/native/libAvaloniaNative.dylib was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/osx/native/libHarfBuzzSharp.dylib was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/osx/native/libSkiaSharp.dylib was found using the provided searchPath
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/unix from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/unix/lib from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/unix/lib/net6.0 from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/unix/lib/net6.0/System.Drawing.Common.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win/lib from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win/lib/net6.0 from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win/lib/net6.0/Microsoft.Win32.SystemEvents.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win/lib/net6.0/System.Drawing.Common.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-arm64 from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-arm64/native from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-arm64/native/av_libglesv2.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-arm64/native/libHarfBuzzSharp.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-arm64/native/libSkiaSharp.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-x64 from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-x64/native from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-x64/native/av_libglesv2.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-x64/native/libHarfBuzzSharp.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-x64/native/libSkiaSharp.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-x86 from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::Removing /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-x86/native from rawSearchResults because it is a directory
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-x86/native/av_libglesv2.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-x86/native/libHarfBuzzSharp.dll was found using the provided searchPath
[Build/Build]   💬  ::debug::File:/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/runtimes/win-x86/native/libSkiaSharp.dll was found using the provided searchPath
| With the provided path, there will be 56 files uploaded
[Build/Build]   💬  ::debug::Root artifact directory is /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish
| Starting artifact upload
| For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging
| Artifact name is valid!
[Build/Build]   💬  ::debug::Artifact Url: http://192.168.178.170:34567/_apis/pipelines/workflows/1/artifacts?api-version=6.0-preview
[Build/Build]   💬  ::debug::Upload Resource URL: http://192.168.178.170:34567/upload/1
| Container for artifact "HDGraph" successfully created. Starting upload of file(s)
[Build/Build]   💬  ::debug::File Concurrency: 2, and Chunk Size: 8388608
[Build/Build]   💬  ::debug::/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Base.dll is greater than 64k in size. Creating a gzip file on-disk /tmp/tmp-338-1T6SVkM6l0Si to potentially reduce the upload size
[Build/Build]   💬  ::debug::/mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Controls.dll is greater than 64k in size. Creating a gzip file on-disk /tmp/tmp-338-t96b2tHUXR5s to potentially reduce the upload size
[Build/Build]   💬  ::debug::The gzip file created for /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Controls.dll is smaller than the original file. The file will be uploaded using gzip.
2023/07/31 01:48:26 http: panic serving 192.168.178.170:64940: mkdir \tmp: The system cannot find the file specified.
goroutine 5448 [running]:
net/http.(*conn).serve.func1()
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:1825 +0xbf
panic({0xa458e0, 0xc00008a210})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:844 +0x258
github.com/nektos/act/pkg/artifacts.uploads.func2({0xc589c8, 0xc0000f2000}, 0xc000492200, {0xc0004a4100, 0x1, 0xc0000f2040?})
        /home/runner/work/act/act/pkg/artifacts/server.go:132 +0x478
github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc0004e2120, {0xc589c8, 0xc0000f2000}, 0xc000492200)
        /home/runner/go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387 +0x82b
net/http.serverHandler.ServeHTTP({0xc56528?}, {0xc589c8, 0xc0000f2000}, 0xc000492200)
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:2916 +0x43b
net/http.(*conn).serve(0xc0001cc0a0, {0xc593f8, 0xc000412210})
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:1966 +0x5d7
created by net/http.(*Server).Serve
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:3071 +0x4db
| An error has been caught http-client index 1, retrying the upload
| Error: socket hang up
|     at connResetException (node:internal/errors:720:14)
|     at Socket.socketOnEnd (node:_http_client:525:23)
|     at Socket.emit (node:events:526:35)
|     at endReadableNT (node:internal/streams/readable:1359:12)
|     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
|   code: 'ECONNRESET'
| }
| Exponential backoff for retry #1. Waiting for 6259 milliseconds before continuing the upload at offset 0
[Build/Build]   💬  ::debug::The gzip file created for /mnt/g/Meine Ablage/Daten/Informatik/Projekte/HDGraph/publish/Avalonia.Base.dll is smaller than the original file. The file will be uploaded using gzip.
| An error has been caught http-client index 0, retrying the upload
| Error: Client has already been disposed.
|     at HttpClient.<anonymous> (/run/act/actions/actions-upload-artifact@v3/dist/index.js:4724:23)
|     at Generator.next (<anonymous>)
|     at /run/act/actions/actions-upload-artifact@v3/dist/index.js:4495:71
|     at new Promise (<anonymous>)
|     at __webpack_modules__.6255.__awaiter (/run/act/actions/actions-upload-artifact@v3/dist/index.js:4491:12)
|     at HttpClient.request (/run/act/actions/actions-upload-artifact@v3/dist/index.js:4722:16)
|     at HttpClient.<anonymous> (/run/act/actions/actions-upload-artifact@v3/dist/index.js:4675:25)
|     at Generator.next (<anonymous>)
|     at /run/act/actions/actions-upload-artifact@v3/dist/index.js:4495:71
|     at new Promise (<anonymous>)
| Exponential backoff for retry #1. Waiting for 4543 milliseconds before continuing the upload at offset 0
| Finished backoff for retry #1, continuing with upload
2023/07/31 01:48:31 http: panic serving 192.168.178.170:64941: mkdir \tmp: The system cannot find the file specified.
goroutine 5400 [running]:
net/http.(*conn).serve.func1()
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:1825 +0xbf
panic({0xa458e0, 0xc0000a6900})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:844 +0x258
github.com/nektos/act/pkg/artifacts.uploads.func2({0xc589c8, 0xc0004f40e0}, 0xc000492300, {0xc000782080, 0x1, 0xc0004f4120?})
        /home/runner/work/act/act/pkg/artifacts/server.go:132 +0x478
github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc0004e2120, {0xc589c8, 0xc0004f40e0}, 0xc000492300)
        /home/runner/go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387 +0x82b
net/http.serverHandler.ServeHTTP({0xc56528?}, {0xc589c8, 0xc0004f40e0}, 0xc000492300)
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:2916 +0x43b
net/http.(*conn).serve(0xc00018a0a0, {0xc593f8, 0xc000412210})
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:1966 +0x5d7
created by net/http.(*Server).Serve
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:3071 +0x4db
| An error has been caught http-client index 0, retrying the upload
| Error: read ECONNRESET
|     at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
|   errno: -104,
|   code: 'ECONNRESET',
|   syscall: 'read'
| }
| Exponential backoff for retry #2. Waiting for 9677 milliseconds before continuing the upload at offset 0
| Finished backoff for retry #1, continuing with upload
2023/07/31 01:48:32 http: panic serving 192.168.178.170:64942: mkdir \tmp: The system cannot find the file specified.
goroutine 5645 [running]:
net/http.(*conn).serve.func1()
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:1825 +0xbf
panic({0xa458e0, 0xc00008aba0})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:844 +0x258
github.com/nektos/act/pkg/artifacts.uploads.func2({0xc589c8, 0xc0000f20e0}, 0xc0001d2000, {0xc0004a42e0, 0x1, 0xc0000f2120?})
        /home/runner/work/act/act/pkg/artifacts/server.go:132 +0x478
github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc0004e2120, {0xc589c8, 0xc0000f20e0}, 0xc0001d2000)
        /home/runner/go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387 +0x82b
net/http.serverHandler.ServeHTTP({0xc56528?}, {0xc589c8, 0xc0000f20e0}, 0xc0001d2000)
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:2916 +0x43b
net/http.(*conn).serve(0xc0001ae0a0, {0xc593f8, 0xc000412210})
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:1966 +0x5d7
created by net/http.(*Server).Serve
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:3071 +0x4db
| An error has been caught http-client index 1, retrying the upload
| Error: write ECONNRESET
|     at afterWriteDispatched (node:internal/stream_base_commons:160:15)
|     at writeGeneric (node:internal/stream_base_commons:151:3)
|     at Socket._writeGeneric (node:net:931:11)
|     at Socket._write (node:net:943:8)
|     at doWrite (node:internal/streams/writable:411:12)
|     at clearBuffer (node:internal/streams/writable:572:7)
|     at Writable.uncork (node:internal/streams/writable:351:7)
|     at connectionCorkNT (node:_http_outgoing:951:8)
|     at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
|   errno: -104,
|   code: 'ECONNRESET',
|   syscall: 'write'
| }
| Exponential backoff for retry #2. Waiting for 10389 milliseconds before continuing the upload at offset 0
| Total file count: 56 ---- Processed file #0 (0.0%)
| Finished backoff for retry #2, continuing with upload
2023/07/31 01:48:40 http: panic serving 192.168.178.170:64946: mkdir \tmp: The system cannot find the file specified.
goroutine 5646 [running]:
net/http.(*conn).serve.func1()
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:1825 +0xbf
panic({0xa458e0, 0xc0000a72c0})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:844 +0x258
github.com/nektos/act/pkg/artifacts.uploads.func2({0xc589c8, 0xc0004f42a0}, 0xc000128200, {0xc0007820a0, 0x1, 0xc0004f42e0?})
        /home/runner/work/act/act/pkg/artifacts/server.go:132 +0x478
github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc0004e2120, {0xc589c8, 0xc0004f42a0}, 0xc000128200)
        /home/runner/go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387 +0x82b
net/http.serverHandler.ServeHTTP({0xc56528?}, {0xc589c8, 0xc0004f42a0}, 0xc000128200)
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:2916 +0x43b
net/http.(*conn).serve(0xc0001ae140, {0xc593f8, 0xc000412210})
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:1966 +0x5d7
created by net/http.(*Server).Serve
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:3071 +0x4db
| An error has been caught http-client index 0, retrying the upload
| Error: read ECONNRESET
|     at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
|   errno: -104,
|   code: 'ECONNRESET',
|   syscall: 'read'
| }
| Exponential backoff for retry #3. Waiting for 16397 milliseconds before continuing the upload at offset 0
| Finished backoff for retry #2, continuing with upload
2023/07/31 01:48:42 http: panic serving 192.168.178.170:64947: mkdir \tmp: The system cannot find the file specified.
goroutine 5449 [running]:
net/http.(*conn).serve.func1()
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:1825 +0xbf
panic({0xa458e0, 0xc00008aed0})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:844 +0x258
github.com/nektos/act/pkg/artifacts.uploads.func2({0xc589c8, 0xc0000f22a0}, 0xc000492400, {0xc0004a4320, 0x1, 0xc0000f22e0?})
        /home/runner/work/act/act/pkg/artifacts/server.go:132 +0x478
github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc0004e2120, {0xc589c8, 0xc0000f22a0}, 0xc000492400)
        /home/runner/go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387 +0x82b
net/http.serverHandler.ServeHTTP({0xc56528?}, {0xc589c8, 0xc0000f22a0}, 0xc000492400)
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:2916 +0x43b
net/http.(*conn).serve(0xc0001cc140, {0xc593f8, 0xc000412210})
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:1966 +0x5d7
created by net/http.(*Server).Serve
        /opt/hostedtoolcache/go/1.18.10/x64/src/net/http/server.go:3071 +0x4db
| An error has been caught http-client index 1, retrying the upload
| Error: socket hang up
|     at connResetException (node:internal/errors:720:14)
|     at Socket.socketOnEnd (node:_http_client:525:23)
|     at Socket.emit (node:events:526:35)
|     at endReadableNT (node:internal/streams/readable:1359:12)
|     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
|   code: 'ECONNRESET'
| }
| Exponential backoff for retry #3. Waiting for 18530 milliseconds before continuing the upload at offset 0
| Total file count: 56 ---- Processed file #0 (0.0%)
github-actions[bot] commented 7 months ago

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

fabiobsantosprogrow commented 7 months ago

Have you tried --artifact-server-path as descibed in #329 (comment)?

For solved the problem. To make the solution available for all commands I had this line to the configuration file (~/.actrc): --artifact-server-path /home/user/act

almereyda commented 2 months ago

This worked here:

mkdir -p $HOME/.act
echo "--artifact-server-path $HOME/.act" >> $HOME/.actrc
mcascone commented 2 weeks ago

This worked here:

mkdir -p $HOME/.act
echo "--artifact-server-path $HOME/.act" >> $HOME/.actrc

Shouldn't the file be created in $HOME/.act, not directly in $HOME/?

so it should be echo "--artifact-server-path $HOME/.act" >> $HOME/.act/.actrc

Regardless, this didn't fix the issue for me.

almereyda commented 2 weeks ago

Sad to hear it didn't work for you.

This line lists the cases where .actrc is being looked for:

https://github.com/nektos/act/blob/102e6cbce061a8c503387427c005deef141316b6/cmd/root.go#L111

mcascone commented 2 weeks ago

Sad to hear it didn't work for you.

This line lists the cases where .actrc is being looked for:

https://github.com/nektos/act/blob/102e6cbce061a8c503387427c005deef141316b6/cmd/root.go#L111

  • XDG spec (a somewhat ominous location)
  • .actrc in HOME directory
  • .actrc in invocation directory

Indeed, i found the same info, and you are correct that the .actrc should go in $HOME. Still, this doesn't fix the issue. I believe I read somewhere, I can't find it right now, that it has to do with running on M1 silicon, although I could be wrong.

mcascone commented 2 weeks ago

this is just unbelievably frustrating that this doesn't work