snap login prompts for password but login fails

Bug #1587181 reported by Herb McNew
12
This bug affects 2 people
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
ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
NonfreeKernelModules: wl
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)

Revision history for this message
Herb McNew (herb) wrote :
Revision history for this message
Matias Bordese (matiasb) wrote :

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).

Revision history for this message
Herb McNew (herb) wrote :

Using email address worked fine. Should we close this bug or retarget it to fix the error message?

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1587181] Re: snap login prompts for password but login fails

Retarget, thanks!

Mark

Revision history for this message
Herb McNew (herb) wrote :

This seems to have been fixed in snapd 2.0.5. I just checked the help text and it makes reference to login.u.c and that an email address is the required argument.

Revision history for this message
Paweł Stołowski (stolowski) wrote :

Verified with snapd 2.13, the error (as well as snap login --help) are clear about needing an email. Closing as fixed.

Changed in snapd (Ubuntu):
status: New → Fix Released
Revision history for this message
Said Bakr (said-fox) wrote :

I have issue like this:
Ububtu 16.04
Snap 2.29.3

Symptoms: My Ubuntu One email is dotted email like: <email address hidden>. It works fine on Ubuntu One website. However, sudo snap login <email address hidden> failed to login.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.