-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to publish assets to Github (ReleaseAsset asset_already_exists) #3559
Comments
I'm getting the same issue on 20.38.3, downgrading to 20.38.2 resolved this for me 20.38.3 error
20.38.2 overwrite success
|
@mrfelton @TrevorSayre This isn't a bug. The release you are trying to push already exists on github. You either have to bump your |
@SupremeTechnopriest Not calling it a bug, personally, but it is a feature I need given how our release process creates a release that we want to overwrite with the files. |
@SupremeTechnopriest in my case, the release only existed as a draft release. In the past this has always worked and I thought this was the standard process.
Has this changed? |
You don't have to create the draft. It's creates automatically. =)
…On Wed, Jan 2, 2019, 5:28 PM Tom Kirkpatrick ***@***.*** wrote:
@SupremeTechnopriest <https://github.com/SupremeTechnopriest> in my case,
the release only existed as a draft release. In the past this has always
worked and I thought this was the standard process.
1. Create a draft release
2. Every build will upload new assets to the draft release, replacing
those of prior builds
3. Publish the draft when you are ready to release.
Has this changed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3559 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKCXvdfznzCD48SqsOfnRXhlOW9BNIGks5u_TJ3gaJpZM4ZaPe0>
.
|
That's probably why you are having issues. |
Interesting. Is that a recent change? |
No idea, just started using electron. I know the docs are wrong.
…On Wed, Jan 2, 2019, 5:40 PM Tom Kirkpatrick ***@***.*** wrote:
Interesting. Is that a recent change?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3559 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKCXsJlHWDmQFEUX7w0ajbTyppppuMqks5u_TVVgaJpZM4ZaPe0>
.
|
There's definitely something buggy here -- the process of being able to update draft releases is how you can do -snapshot releases (as described in that section of the docs). If we need to we could script deleting the old releases first in CI, but that's a regression and I don't see anything stating that was an intended change. Also, the fact that we get a 422 means that the code is now sending a different API request -- its not like electron-builder is just checking for the existence of a release and skipping it with good messaging. |
That's what we were expecting. But since we upgraded to the latest release, it broke. Any updates on this @develar? |
I guess something did change because you can't have the draft release
created beforehand now. Electron builder creates it for you.
…On Wed, Jan 30, 2019, 10:06 AM Henrique Dias ***@***.*** wrote:
@SupremeTechnopriest <https://github.com/SupremeTechnopriest> in my case,
the release only existed as a draft release. In the past this has always
worked and I thought this was the standard process.
1. Create a draft release
2. Every build will upload new assets to the draft release, replacing
those of prior builds
3. Publish the draft when you are ready to release.
Has this changed?
That's what we were expecting. But since we upgraded to the latest
release, it broke. Any updates on this @pgebheim
<https://github.com/pgebheim>?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3559 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKCXtodUb9I3L9XSTW-zP4vQOkiHeEcks5vId8pgaJpZM4ZaPe0>
.
|
Something is clearly wrong here. You are supposed to create the draft yourself, and electron-builder is supposed to publish to the draft only if it exists. Electron Builder isn't supposed to be creating the draft releases for you when you are using the |
Any updates on this? @develar |
@mrfelton not exactly a solution for everyone else here, but in regards to Travis CI and Github releases, why not use their # Only build on code commits, not when tags are added(eg upon publishing a draft release)
if: tag IS blank
# Two build jobs, one on macOS, another on Linux with Docker to build Linux + Windows binaries
matrix:
include:
- name: "macOS"
os: osx
osx_image: xcode9.4
language: node_js
node_js: "10"
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- name: "Windows + Linux"
os: linux
services: docker
language: generic
# Clear out any cached files here
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
# Keep files in these directories
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
# Actual build command/script for the two jobs in the matrix above to use (could probably move these into each one?)
script:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm \
-v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
/bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn dist --linux --win"
else
yarn dist
fi
# Workaround for bug in Travis deploy logic, `tag_name` isn't used for draft releases,
# Specify the tag to target in draft release instead for now via $TRAVIS_TAG
before_deploy:
- export TRAVIS_TAG="preview"
# Deploy to Github Releases as draft release or update the existing one with the above `tag_name` value(any existing files will be overwritten)
deploy:
provider: releases
api_key: $OAUTH_TOKEN
skip_cleanup: true
draft: true
overwrite: true
file_glob: true
file:
- dist/*.exe
- dist*.zip
- dist/*.dmg
- dist/*.snap
- dist/*.AppImage More details here. The above This approach has a drawback in that as it deploys an update to the draft release each commit instead of when a commit is tagged(see alternate version in link provided), when the version is changed in the |
Facing the same issue - Looks like it is unable to clean up an existing draft release and upload the latest packages. Does not have anything to do with creating a draft release/not doing it upfront, as this is the subsequent release after initial draft release with the same tag. |
in my case, the instanceof fails because that but we are asking if it is an instance of the HttpError class defined here: also here's my
from here, I'm not sure how to resolve:
I'll post again when I have a workaround |
I opted to fix by exporting I generate and apply patches using: if importing |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
same issue came up upgrading from 22.11.7 to 22.13.1 |
This still occurs with 22.13.1 @develar |
delete draft release from GitHub, and try to upload again, that fixes the issue for me |
This issue is specifically reintroduced in 22.13.0. |
Same problem in v22.13.1 |
the latest versions won't replace an existing release file and fail with asset_already_exists electron-userland/electron-builder#3559 electron-userland/electron-builder#5148 electron-userland/electron-builder#4940
still happening in v22.14 |
I think this might be resolved via #6563 |
* bump to 2.0.2 [skip ci] * bump to 2.0.2 [skip ci] * ADD:enter password to keyStore * bump to 2.0.3 [skip ci] * ADD: Validator key confirm password * bump to 2.0.4 [skip ci] * Squashed commit of the following: commit 00ad100 Author: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Date: Fri May 20 10:13:14 2022 +0000 bump to 2.0.2 [skip ci] * Squashed commit of the following: commit 956cabd Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 11:55:06 2022 +0200 Releasing just onTag - github sends a 422 when overwriting artifacts, waiting until electron-builder finds a solution commit 6b1ce53 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 11:38:55 2022 +0200 Upgrade electron builder because of electron-userland/electron-builder#3559 commit 94075ce Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 10:44:46 2022 +0200 AppImage target for linux until we support snap commit 8a4d2fb Merge: 4bef8fd ac17166 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 13:31:19 2022 +0200 Change to 2.0.3-beta commit 4bef8fd Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 13:30:14 2022 +0200 Change to 2.0.0-beta commit ac17166 Author: gbayasgalan <73820006+gbayasgalan@users.noreply.github.com> Date: Fri May 20 13:19:48 2022 +0200 FIX: replace stereum/* docker images (#303) * EDIT: replace stereum/lighthouse image * bump to 2.0.2 [skip ci] * EDIT: replace stereum/nimbus image * EDIT: comment out * bump to 2.0.3 [skip ci] Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Co-authored-by: stefa2k <54934211+stefa2k@users.noreply.github.com> Co-authored-by: stefa2k <stefan.kobrc@rocklogic.at> commit 35e55d7 Author: NeoPlays <80448387+NeoPlays@users.noreply.github.com> Date: Fri May 20 13:10:01 2022 +0200 ADD: CPU usage monitoring command (#304) * ADD: CPU usage monitoring command * bump to v2.0.2 [skip ci] Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Co-authored-by: stefa2k <54934211+stefa2k@users.noreply.github.com> commit a297e0e Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:44:41 2022 +0200 Trigger build to test artifact upload in github commit 66c7866 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:27:16 2022 +0200 Just an electron builder error? commit 6e5f012 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:24:53 2022 +0200 Just an electron builder error? commit 95ad36d Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:08:06 2022 +0200 Trying an automated version bump * ADD:validator password routing Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com>
* bump to 2.0.2 [skip ci] * Squashed commit of the following: commit 956cabd Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 11:55:06 2022 +0200 Releasing just onTag - github sends a 422 when overwriting artifacts, waiting until electron-builder finds a solution commit 6b1ce53 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 11:38:55 2022 +0200 Upgrade electron builder because of electron-userland/electron-builder#3559 commit 94075ce Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 10:44:46 2022 +0200 AppImage target for linux until we support snap commit 8a4d2fb Merge: 4bef8fd ac17166 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 13:31:19 2022 +0200 Change to 2.0.3-beta commit 4bef8fd Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 13:30:14 2022 +0200 Change to 2.0.0-beta commit ac17166 Author: gbayasgalan <73820006+gbayasgalan@users.noreply.github.com> Date: Fri May 20 13:19:48 2022 +0200 FIX: replace stereum/* docker images (#303) * EDIT: replace stereum/lighthouse image * bump to 2.0.2 [skip ci] * EDIT: replace stereum/nimbus image * EDIT: comment out * bump to 2.0.3 [skip ci] Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Co-authored-by: stefa2k <54934211+stefa2k@users.noreply.github.com> Co-authored-by: stefa2k <stefan.kobrc@rocklogic.at> commit 35e55d7 Author: NeoPlays <80448387+NeoPlays@users.noreply.github.com> Date: Fri May 20 13:10:01 2022 +0200 ADD: CPU usage monitoring command (#304) * ADD: CPU usage monitoring command * bump to v2.0.2 [skip ci] Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Co-authored-by: stefa2k <54934211+stefa2k@users.noreply.github.com> commit a297e0e Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:44:41 2022 +0200 Trigger build to test artifact upload in github commit 66c7866 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:27:16 2022 +0200 Just an electron builder error? commit 6e5f012 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:24:53 2022 +0200 Just an electron builder error? commit 95ad36d Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:08:06 2022 +0200 Trying an automated version bump * FIX: task manager checkStatus func fixed * ADD: static validator key * REFACTOR:language page changed to new version * DELETE: second button * ADD:animated connecting to formSetup Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com>
I'm having this exact issue in v23.3.3. (Replaced some sensitive data with ******)
|
* bump to 2.0.2 [skip ci] * bump to 2.0.2 [skip ci] * ADD:enter password to keyStore * bump to 2.0.3 [skip ci] * ADD: Validator key confirm password * bump to 2.0.4 [skip ci] * Squashed commit of the following: commit 00ad10013c1b09088beade3daf2a6fb07a66b21c Author: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Date: Fri May 20 10:13:14 2022 +0000 bump to 2.0.2 [skip ci] * Squashed commit of the following: commit 956cabd6922a6cc73d0988a4e3804a1eb3784357 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 11:55:06 2022 +0200 Releasing just onTag - github sends a 422 when overwriting artifacts, waiting until electron-builder finds a solution commit 6b1ce53acc7d561e5c4534fb5485631da51db976 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 11:38:55 2022 +0200 Upgrade electron builder because of electron-userland/electron-builder#3559 commit 94075ceb94ae687fb0e0d7dd7db886b2b776ef09 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 10:44:46 2022 +0200 AppImage target for linux until we support snap commit 8a4d2fb979d65a495fe181bc4afaabd7c684e4d8 Merge: 4bef8fd ac17166 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 13:31:19 2022 +0200 Change to 2.0.3-beta commit 4bef8fdde1d6bca4635d174a29a61540f07fa8ee Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 13:30:14 2022 +0200 Change to 2.0.0-beta commit ac171669ae9e28c0fdc37ace85c533daf5ebfef6 Author: gbayasgalan <73820006+gbayasgalan@users.noreply.github.com> Date: Fri May 20 13:19:48 2022 +0200 FIX: replace stereum/* docker images (#303) * EDIT: replace stereum/lighthouse image * bump to 2.0.2 [skip ci] * EDIT: replace stereum/nimbus image * EDIT: comment out * bump to 2.0.3 [skip ci] Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Co-authored-by: stefa2k <54934211+stefa2k@users.noreply.github.com> Co-authored-by: stefa2k <stefan.kobrc@rocklogic.at> commit 35e55d7c051384f28bc78f68b9c0296f1c2e93ff Author: NeoPlays <80448387+NeoPlays@users.noreply.github.com> Date: Fri May 20 13:10:01 2022 +0200 ADD: CPU usage monitoring command (#304) * ADD: CPU usage monitoring command * bump to v2.0.2 [skip ci] Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Co-authored-by: stefa2k <54934211+stefa2k@users.noreply.github.com> commit a297e0e22774dd2f0afe2eb057ccd79176155021 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:44:41 2022 +0200 Trigger build to test artifact upload in github commit 66c78664a7ae219e437a17446a5b5c31579ad056 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:27:16 2022 +0200 Just an electron builder error? commit 6e5f0121bd42cc25d3311b68be13def9af449c95 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:24:53 2022 +0200 Just an electron builder error? commit 95ad36dfb97c1475e60c6a277c70656a1d653701 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:08:06 2022 +0200 Trying an automated version bump * ADD:validator password routing Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com>
* bump to 2.0.2 [skip ci] * Squashed commit of the following: commit 956cabd6922a6cc73d0988a4e3804a1eb3784357 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 11:55:06 2022 +0200 Releasing just onTag - github sends a 422 when overwriting artifacts, waiting until electron-builder finds a solution commit 6b1ce53acc7d561e5c4534fb5485631da51db976 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 11:38:55 2022 +0200 Upgrade electron builder because of electron-userland/electron-builder#3559 commit 94075ceb94ae687fb0e0d7dd7db886b2b776ef09 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Sat May 21 10:44:46 2022 +0200 AppImage target for linux until we support snap commit 8a4d2fb979d65a495fe181bc4afaabd7c684e4d8 Merge: 4bef8fd ac17166 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 13:31:19 2022 +0200 Change to 2.0.3-beta commit 4bef8fdde1d6bca4635d174a29a61540f07fa8ee Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 13:30:14 2022 +0200 Change to 2.0.0-beta commit ac171669ae9e28c0fdc37ace85c533daf5ebfef6 Author: gbayasgalan <73820006+gbayasgalan@users.noreply.github.com> Date: Fri May 20 13:19:48 2022 +0200 FIX: replace stereum/* docker images (#303) * EDIT: replace stereum/lighthouse image * bump to 2.0.2 [skip ci] * EDIT: replace stereum/nimbus image * EDIT: comment out * bump to 2.0.3 [skip ci] Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Co-authored-by: stefa2k <54934211+stefa2k@users.noreply.github.com> Co-authored-by: stefa2k <stefan.kobrc@rocklogic.at> commit 35e55d7c051384f28bc78f68b9c0296f1c2e93ff Author: NeoPlays <80448387+NeoPlays@users.noreply.github.com> Date: Fri May 20 13:10:01 2022 +0200 ADD: CPU usage monitoring command (#304) * ADD: CPU usage monitoring command * bump to v2.0.2 [skip ci] Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Co-authored-by: stefa2k <54934211+stefa2k@users.noreply.github.com> commit a297e0e22774dd2f0afe2eb057ccd79176155021 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:44:41 2022 +0200 Trigger build to test artifact upload in github commit 66c78664a7ae219e437a17446a5b5c31579ad056 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:27:16 2022 +0200 Just an electron builder error? commit 6e5f0121bd42cc25d3311b68be13def9af449c95 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:24:53 2022 +0200 Just an electron builder error? commit 95ad36dfb97c1475e60c6a277c70656a1d653701 Author: Michael Ferjancic <michael.ferjancic@gmail.com> Date: Fri May 20 12:08:06 2022 +0200 Trying an automated version bump * FIX: task manager checkStatus func fixed * ADD: static validator key * REFACTOR:language page changed to new version * DELETE: second button * ADD:animated connecting to formSetup Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com>
Since updating from 20.38.2 -> 20.38.4 electron-build has been unable to publish assets to a github release page. Downgrading to 20.38.2 resolves the issue.
It fails on publishing every asset from every os.
Here is an example:
https://travis-ci.org/LN-Zap/zap-desktop/jobs/469993385#L2805
If I delete the existing assets from the draft github release and try again then it works, but only the first time. Every subsequent attempt fails with the same error ^.
Here are some other similar issues where this was reported in the past:
The text was updated successfully, but these errors were encountered: