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: Snapcraft Login #192

Closed
jimafisk opened this issue Jun 1, 2022 · 3 comments
Closed

Build failed: Snapcraft Login #192

jimafisk opened this issue Jun 1, 2022 · 3 comments

Comments

@jimafisk
Copy link
Member

jimafisk commented Jun 1, 2022

Failed build: https://github.com/plentico/plenti/runs/6680922857?check_suite_focus=true

Error:

Error fetching account information from store: The request is missing an Authorization header field containing a valid macaroon
Error: Process completed with exit code 2.
@jimafisk
Copy link
Member Author

jimafisk commented Jun 1, 2022

Seems like the token expired. I created a new one via my terminal:

snapcraft export-login --snaps plenti --channels edge -

Then on GitHub, went to: settings > security > secrets > actions > repository secrets and "updated" SNAPCRAFT_TOKEN

@jimafisk jimafisk closed this as completed Jun 1, 2022
@jimafisk
Copy link
Member Author

jimafisk commented Jun 1, 2022

Now the "Run Goreleaser" step fails with errors:

release failed after 133.30s error=snapcraft packages: failed to publish artifacts: failed to push
- macaroon-permission-required: Permission "channel" is required as a macaroon caveat.
Error: The process '/opt/hostedtoolcache/goreleaser-action/1.9.2/x64/goreleaser' failed with exit code 1

Broken build: https://github.com/plentico/plenti/runs/6681271405?check_suite_focus=true

@jimafisk jimafisk reopened this Jun 1, 2022
@jimafisk
Copy link
Member Author

jimafisk commented Jun 1, 2022

Omitted the specific "channels" info above and exported login the way I had done previously:

snapcraft export-login --snaps plenti -

And refreshed SNAPCRAFT_TOKEN again. That got the build to pass: https://github.com/plentico/plenti/runs/6681380494?check_suite_focus=true

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