Error logging in snapd: (most recent call last): (snapd-error-quark, 10) when trying to log in from settings

Bug #1889067 reported by Viator
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Triaged
Low
Unassigned

Bug Description

viator@viator-acronis-laptop:/etc/apt/sources.list.d$ gnome-control-center -v
14:23:51.0206 GLib: DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
14:23:51.0219 diagnostics-cc-panel: DEBUG: ABRT vanished
14:24:08.0178 GLib: DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
14:24:08.0236 GoaBackend: WARNING: Error logging in snapd: (most recent call last): (snapd-error-quark, 10)

I created a question on askubuntu.com before, but nobody was able to answer to me: https://askubuntu.com/questions/1259280/cant-login-to-ubuntu-one-from-gnome-control-center-20-04

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnome-control-center 1:3.36.4-0ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-41.45-generic 5.4.44
Uname: Linux 5.4.0-41-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.4
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Mon Jul 27 14:03:45 2020
ExecutablePath: /usr/bin/gnome-control-center
InstallationDate: Installed on 2019-03-19 (496 days ago)
InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
ProcEnviron:
 PATH=(custom, user)
 XDG_RUNTIME_DIR=<set>
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-control-center
UpgradeStatus: Upgraded to focal on 2020-07-07 (19 days ago)

Revision history for this message
Viator (viator) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you start

$ journalctl -f

try adding the account and share what was printed on the log?

Changed in gnome-control-center (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Viator (viator) wrote :

Sebastien, there is the log entries from journalctl -f

июл 27 15:25:03 viator-acronis-laptop polkitd(authority=local)[2382]: Operator of unix-session:24 successfully authenticated as unix-user:viator to gain TEMPORARY authorization for action io.snapcraft.snapd.login for unix-process:2876233:103354060 [gnome-control-center] (owned by unix-user:viator)
июл 27 15:25:05 viator-acronis-laptop gnome-control-c[2876233]: Error logging in snapd: (most recent call last): (snapd-error-quark, 10)
июл 27 15:25:11 viator-acronis-laptop systemd[5417]: gnome-launched-gnome-control-center.desktop-2876233.scope: Succeeded.

Revision history for this message
Viator (viator) wrote :

And it isn't a password/login fails, because when the password is wrong I can see another message:

15:38:25 viator-acronis-laptop gnome-control-c[2880853]: Error logging in snapd: invalid credentials (snapd-error-quark, 5)

But we can see with right password:

Error logging in snapd: (most recent call last): (snapd-error-quark, 10)

Revision history for this message
Sebastien Bacher (seb128) wrote :

what happen if you do

$ snap login ?

sounds similar to https://forum.snapcraft.io/t/download-snap-core-invalid-credentials/15253/19 and could be a snapd issue

Revision history for this message
Viator (viator) wrote :

Oh, I can add a little new information, which can help to find a cause. Before upgrading to 20.04 it was working correct, I was able to login from control-center without any problems, but after upgrading to 20.04 from 19.10 it has broken.

Revision history for this message
Viator (viator) wrote :

Sebastien, I tried do snap login:

LANG=en snap login
Personal information is handled as per our privacy notice at
https://www.ubuntu.com/legal/dataprivacy/snap-store

Email address: <email address hidden>
Password of "<email address hidden>":
Login successful

There are no any problems.

Revision history for this message
Sebastien Bacher (seb128) wrote :

is using snapd from the command line working to install snaps for example?

reassigning to snapd in any case because it sounds like the auth issue is due to the service

affects: gnome-control-center (Ubuntu) → snapd (Ubuntu)
Changed in snapd (Ubuntu):
status: Incomplete → New
summary: - Can't login to Ubuntu One from gnome-control-center (20.04)
+ Error logging in snapd: (most recent call last): (snapd-error-quark, 10)
+ when trying to log in from settings
Revision history for this message
Viator (viator) wrote :

Sebastian, yes I can install anything what I want. For example I installed notepadqq today.

I installed it again without problems:
snap install notepadqq
notepadqq 1.4.8 from Daniele Di Sarli (danieleds) installed

Revision history for this message
Viator (viator) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Sorry but I was mostly approaching the issue from a triager perspective, I'm unsure how to get a proper debug log from the snapd authentification so I will let someone from the snap team pick that one up

Revision history for this message
Viator (viator) wrote :

Sebastien, thank you for your help. I hope that my problem will solved, I want to use ubuntu livepatch-update and other services. I hope that snapd team will be able to find workaround.

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Viator, would you know how to rebuild a package with a patch for testing?

Robert made a change that should help providing a better error message
https://github.com/snapcore/snapd-glib/pull/86

If you don't know how to build it we could probably set up a testing ppa for you

Revision history for this message
Viator (viator) wrote :

I am sorry, I don't know how to build snapd. But if you will get me some instructions I would try to build it. But it would be better to have a ppa for installing the patch

Changed in snapd (Ubuntu):
status: New → Triaged
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.