actions-upload-release-asset
actions-upload-release-asset copied to clipboard
Upload fails: ECONNRESET
I have been trying to find a repository which can upload release assets to GitHub Release pages.
For almost all of the actions, I get the error of connection reset or socket timeout while uploading the package. I landed on https://github.com/actions/upload-release-asset/issues/69 seeing others are facing the issue as well.
So far, all actions I used used the github's library directly. However this repository makes connection to REST API which is unique. But I am still facing the issue.
Let me explain what I am trying to do. We build our tool on different Ubuntu and Debian releases and create Debian packages out of them. All the builds are done on Docker containers to emulate different build OS. At the end, we create a tar with following naming scheme (which is unique for each OS).
FOSSology-<version>-<os_name>-<os_release>.tar.gz
Now, while trying to upload this tar, we are facing issues. In the latest run, I got the following error:
/usr/bin/docker exec 0791872080b91fc8a4e626070c284da003270f97f042928622c7c5a6400c8749 sh -c "cat /etc/*release | grep ^ID"
deleting asset FOSSology-4.0.9-ubuntu-focal.tar.gz before uploading
uploading /__w/fossology/fossology/FOSSology-4.0.9-ubuntu-focal.tar.gz as FOSSology-4.0.9-ubuntu-focal.tar.gz: size: 20290645
Error: Error: write ECONNRESET
Here is the link to the build: https://github.com/GMishx/fossology/runs/6061877258?check_suite_focus=true#step:12:16
Other Actions I tried, failed with similar errors:
- With retries: https://github.com/GMishx/fossology/runs/5198843381?check_suite_focus=true#step:12:48
- Socket hang up: https://github.com/fossology/fossology/runs/4924129242?check_suite_focus=true#step:11:12
- https://github.com/fossology/fossology/runs/4918914106?check_suite_focus=true#step:11:12
At random, some uploads succeeds.