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

You are required to login before continuing #25

Open
RobbieTheWagner opened this issue Jan 26, 2021 · 6 comments
Open

You are required to login before continuing #25

RobbieTheWagner opened this issue Jan 26, 2021 · 6 comments

Comments

@RobbieTheWagner
Copy link

I'm seeing an error that I need to log in. This just started happening today.

Run sudo snapcraft upload --release=stable electron-app/out/make/*.snap
  sudo snapcraft upload --release=stable electron-app/out/make/*.snap
  shell: /usr/bin/bash -e {0}
Preparing to upload 'swach-0.6.3.snap'.
After uploading, the resulting snap revision will be released to 'stable' when it passes the Snap Store review.
Install the review-tools from the Snap Store for enhanced checks before uploading this snap.
You are required to login before continuing.
Enter your Ubuntu One e-mail address and password.
If you do not have an Ubuntu One account, you can create one at https://snapcraft.io/account
Authentication error: Failed to get unbound discharge: Invalid request data
Error: Process completed with exit code 2.
@casperdcl
Copy link
Collaborator

Probably expired snap token (they only last for a year before they need to be regenerated)...

@RobbieTheWagner
Copy link
Author

@casperdcl I do not think that is it. Logging in works fine:

Logging in to Snapcraft…

Login successful. You now have these capabilities:

snaps:       ['swach']
channels:    No restriction
permissions: ['package_access', 'package_manage', 'package_push', 'package_register', 'package_release', 'package_update']
expires:     2021-05-18T00:58:48.817994

However, when I run sudo snapcraft upload --release=stable electron-app/out/make/*.snap it says I need to login.

@Saviq
Copy link
Contributor

Saviq commented Jan 27, 2021

@rwwagner90 could this have been a temporary issue? I just saw a snap publish just fine:

https://github.com/canonical/multipass/pull/1928/checks?check_run_id=1775817487

@RobbieTheWagner
Copy link
Author

@Saviq no, something changed and it always says I need to log in now, despite this action saying I am logged in.

@Saviq
Copy link
Contributor

Saviq commented Jan 27, 2021

@Saviq no, something changed and it always says I need to log in now, despite this action saying I am logged in.

Do you still have access to the snap?

Can you use that same account to upload outside of GitHub? And did you try new credentials?

@RobbieTheWagner
Copy link
Author

@Saviq yes, I tried updating credentials and all that. I did just move the action to a different spot and remove sudo and it seems to be publishing. Perhaps snap changed the publish behavior to not work with sudo?

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

3 participants