[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
** Changed in: snapd Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
The snapd side change got merged. ** Changed in: snapd Status: New => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
** Changed in: gnome-software (Ubuntu) Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
** Changed in: gnome-software (Ubuntu) Assignee: Robert Ancell (robert-ancell) => James Henstridge (jamesh) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
Snapd side changes: https://github.com/snapcore/snapd/pull/4061 It looks like snapd-glib might need a change too, since it looks like this will still be mapped to SNAPD_ERROR_FAILED in parse_result() (I think falling back to treating 401 as SNAPD_AUTH_DATA_REQUIRED will do). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
** Tags added: snap ** Tags removed: snap ** Tags added: gs-snap ** Tags removed: gs-snap ** Tags added: gnome-software-snap -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
Yep. There is code to prevent refreshing the macaroon if the user has changed their password since it was created: http://bazaar.launchpad.net/~canonical-isd-hackers/canonical-identity- provider/trunk/view/head:/src/identityprovider/auth.py#L661 This should help in reproducing the bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
** Also affects: snapd Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
Discussion started here: https://forum.snapcraft.io/t/handling-invalid-credentials/2526 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
So further investigation, the "cannot authenticate to snap store: " part of the error is only added by snapd for an unexpected error: https://github.com/snapcore/snapd/blob/master/store/auth.go#L190-L204 I believe this is being called via the refreshDischarges() method, intended to keep the store macaroon up to date. This is called by any snapd API that talks to the store, so it isn't surprising we'd hit it during gnome-software start up. I wonder if changing your Ubuntu One password would be enough for the store to refuse to refresh the macaroon? So it looks like the fix probably requires the following: 1. snapd to handle the INVALID_CREDENTIALS response from the store and produce an error response that snapd-glib can distinguish. 2. snapd-glib to handle this error case and map it to one of its error codes (either a new one, or fold it into invalid-auth-data?) 3. if snapd-glib produces a new error code, for gnome-software's snap plugin to map this to an appropriate error code. The end result should be for gnome-software to call the /v2/login end point again, probably passing its existing macaroon so it updates the existing snapd user rather than creating another (i.e. what would happen to paid snaps for a discarded snapd user ID when it comes time to refresh?). I'll follow up with the snappy team to verify that this is the way forward. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
Robert, could you have a look? ** Changed in: gnome-software (Ubuntu) Assignee: (unassigned) => Robert Ancell (robert-ancell) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
The "Provided email/password is not correct." part of the error message appears to be coming through straight from the store. This most likely means you logged in to gnome-software using Ubuntu One credentials at some point in the past, and the credentials snapd has stored are no longer valid. It might be possible to reproduce this by logging in in gnome-software (currently possible by cancelling the polkit dialog), stopping snapd, editing /var/lib/snapd/state.json to tamper with the store-macaroon value and starting snapd again. I'll need to verify if this happens. The "Sorry, something went wrong" comes from gnome-software itself, and indicates that the error could not be classified as one of the GS_PLUGIN_ERROR_* error codes. The code in gnome-software's snap plugin specifically checks for various authentication related error conditions (SNAPD_ERROR_AUTH_DATA_REQUIRED and SNAPD_ERROR_AUTH_DATA_REQUIRED in particular), but that clearly isn't being hit. So I think there are two possibilities here: 1. libsnapd-glib isn't returning the correct error type for this case 2. snapd isn't providing enough info to libsnapd-glib to decode the error -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1724316] Re: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix
Thank you for your bug report. I've the same issue on my artful and I'm unsure there is any graphical UI to re-enter credential at the moment? ** Changed in: gnome-software (Ubuntu) Importance: Undecided => High ** Changed in: gnome-software (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1724316 Title: "Sorry, something went wrong cannot authenticate to snap store ..." without any way to fix To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1724316/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs