snap login prompts for password but login fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I tried to install a snap package today and the login process failed. See below:
$ snap login herb
Password:
error: cannot get discharge macaroon from store: Invalid request data
I tried my local machine password and my Ubuntu SSO password. Is this because I have 2FA enabled for my Ubuntu SSO account?
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: snapd 2.0.3
ProcVersionSign
Uname: Linux 4.4.0-22-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Mon May 30 17:09:52 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-09-29 (244 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150928)
SourcePackage: snapd
UpgradeStatus: Upgraded to xenial on 2016-02-27 (93 days ago)
snap login expects an email as argument (not a username). So the output you get is the response from SSO complaining you didn't provide a valid email address. We need to improve that error message.
If you try:
$ snap login your_sso@email
it should work (and request your 2FA if you have it enabled).