Skip to content
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

Build Failed: Exported credentials are no longer valid for the Snap Store #333

Closed
jimafisk opened this issue Aug 6, 2024 · 2 comments
Closed

Comments

@jimafisk
Copy link
Member

jimafisk commented Aug 6, 2024

https://github.com/plentico/plenti/actions/runs/10272585303/job/28425111725

⨯ release failed after 1m39s               error=1 error occurred:
	* snapcraft packages: failed to push dist/plenti_0.6.52_linux_amd64.snap package: exit status 1: Exported credentials are no longer valid for the Snap Store.

Error: The process '/opt/hostedtoolcache/goreleaser-action/2.1.0/x64/goreleaser' failed with exit code 1

There's also a warning early on:

Warning: Unexpected input(s) 'key', valid inputs are ['distribution', 'version', 'args', 'workdir', 'install-only']
@jimafisk
Copy link
Member Author

jimafisk commented Aug 6, 2024

Updated per instructions here: #284 (comment)

  • sudo snap install snapcraft --classic
  • snapcraft export-login --snaps plenti -
  • Then in settings > security > secrets and variables > actions > repository secrets I updated SNAPCRAFT_TOKEN
  • Reran the previously failed job

@jimafisk
Copy link
Member Author

jimafisk commented Aug 6, 2024

Now it's throwing Code:already_exists errors:

 upload failed                                request-id=4009:A59A5:1CEB453:2089371:66B27DB0 error=POST https://uploads.github.com/repos/plentico/plenti/releases/168972988/assets?name=plenti_0.6.52_mac_64-bit.tar.gz: 422 Validation Failed [{Resource:ReleaseAsset Field:name Code:already_exists Message:}] name=plenti_0.6.52_mac_64-bit.tar.gz release-id=168972988
      • failed to upload artifact, will retry        try=1 artifact=plenti_0.6.52_mac_64-bit.tar.gz error=POST https://uploads.github.com/repos/plentico/plenti/releases/168972988/assets?name=plenti_0.6.52_mac_64-bit.tar.gz: 422 Validation Failed [{Resource:ReleaseAsset Field:name Code:already_exists Message:}]
      • upload failed                                request-id=4009:A59A5:1CEB453:2089370:66B27DB0 error=POST https://uploads.github.com/repos/plentico/plenti/releases/168972988/assets?name=checksums.txt: 422 Validation Failed [{Resource:ReleaseAsset Field:name Code:already_exists Message:}] name=checksums.txt release-id=168972988
      • failed to upload artifact, will retry        try=1 artifact=checksums.txt error=POST https://uploads.github.com/repos/plentico/plenti/releases/168972988/assets?name=checksums.txt: 422 Validation Failed [{Resource:ReleaseAsset Field:name Code:already_exists Message:}]
      • upload failed                                request-id=4009:A59A5:1CEB453:208936F:66B27DB0 error=POST https://uploads.github.com/repos/plentico/plenti/releases/168972988/assets?name=plenti_0.6.52_linux_64-bit.tar.gz: 422 Validation Failed [{Resource:ReleaseAsset Field:name Code:already_exists Message:}] name=plenti_0.6.52_linux_64-bit.tar.gz release-id=168972988
      • failed to upload artifact, will retry        try=1 artifact=plenti_0.6.52_linux_64-bit.tar.gz error=POST https://uploads.github.com/repos/plentico/plenti/releases/168972988/assets?name=plenti_0.6.52_linux_64-bit.tar.gz: 422 Validation Failed [{Resource:ReleaseAsset Field:name Code:already_exists Message:}]
  • took: 37s
  ⨯ release failed after 2m9s                error=scm releases: failed to publish artifacts: failed to upload plenti_0.6.52_mac_64-bit.tar.gz after 1 tries: POST https://uploads.github.com/repos/plentico/plenti/releases/168972988/assets?name=plenti_0.6.52_mac_64-bit.tar.gz: 422 Validation Failed [{Resource:ReleaseAsset Field:name Code:already_exists Message:}]
Error: The process '/opt/hostedtoolcache/goreleaser-action/2.1.0/x64/goreleaser' failed with exit code 1

This is probably because it looks like the v0.6.52 release exists even though all the builds to create it have failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant