Cannot add my Google account

I get the following error when I try to add my Google account:

There was an error while trying to process the request: Access grant not present.

This is Fedora 38 and KDE Plasma. I have two other identical computers that work fine, so I’m guessing this is a new bug.

Are there any known fixes?

Could you please let me know where you are adding your Google account?

System Settings → Online Accounts → Google

Okay. Are you managing to login to Google through a popup window, or does the window never appear?

It is a small pop up window that gets stuck after I enter my email, it doesn’t reach the password input. When I close out the window then the error message appears.

I tried changing my default browser from firefox to chrome, and then I tried using X11 because it always seems to be wayland breaking the most random things, but I still can’t login. I also saw someone with the same issue a couple years ago saying they needed to install seahorse, but that didn’t help either.

Guess there is always insync :person_shrugging:

I also can’t login to OpenDesktop from the Online Accounts menu, nothing happens at all with that one.

I’m experiencing the same issue on Kinoite:

Steps to reproduce

  1. kcmshell5 kcm_kaccounts
  2. Click “Add New Account…”
  3. Click “Google”
  4. Fill in username and click “Next”

Results

Login window shows the progress indicator at the top, but does not proceed.

Expected behavior

Login window should proceed to the password entry page.

Logs

Shell:

[brian@reventlov ~]$ kcmshell5 kcm_kaccounts
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/templates/OverlaySheet.qml:603:17: QML ColumnLayout: Binding loop detected for property "height"
Error:
	 "Access grant not present"

Journal (user):

8月 19 17:31:09 reventlov signon-ui[24304]: QIODevice::read (QFile, "/home/brian/.cache/signon-ui/cookies/16.jar"): device not open
8月 19 17:31:10 reventlov signon-ui[24304]: browser-request.cpp 738 initializeField Couldn't find element: "input[name=Email]"
8月 19 17:31:10 reventlov signon-ui[24304]: browser-request.cpp 738 initializeField Couldn't find element: "input[name=Passwd]"
8月 19 17:31:10 reventlov signon-ui[24304]: browser-request.cpp 738 initializeField Couldn't find element: "input[name=Email]"
8月 19 17:31:10 reventlov signon-ui[24304]: browser-request.cpp 738 initializeField Couldn't find element: "input[name=Passwd]"
8月 19 17:31:41 reventlov signond[24299]: QObject::disconnect: Unexpected nullptr parameter

I do not believe I have made any relevant changes from the base system, but just in case:

[brian@reventlov ~]$ rpm-ostree status
State: idle
Deployments:
● fedora:fedora/38/x86_64/kinoite
                  Version: 38.20230819.0 (2023-08-19T00:48:05Z)
               BaseCommit: 1f9f2054955602a11847cdfb74089bcdbf99b3642409d54e9779e830042846ee
             GPGSignature: Valid signature by 6A51BBABBA3D5467B6171221809A8D7CEB10B464
          LayeredPackages: alacritty intel-media-driver intel-opencl libva-intel-driver nebula
            LocalPackages: rpmfusion-free-release-38-1.noarch rpmfusion-nonfree-release-38-1.noarch

Hi All

I have the exact the issue with my fedora37

thanks for your feedback

Same here, not Fedora but Ubuntu 23.04 (I’m Fedora user but they force me to use it in my company :person_shrugging:) using KDE with Plasma 5.

Mine is the exact same error as @brianclemens described. Same logs.

So I guess it’s related to KDE and not the distro itself.

Looks like this is an issue with the older signon-ui / signond packages in Fedora, most likely the former though the latter is also behind.

Fedora bugzilla: 2230099 – Please upgrade to signon-ui 0.17
KDE bugzilla: 420280 – Can't add Google account: authentication process gets stuck

Hi there!
Just wanna say that I am facing same problem here, but using Kubuntu 23.10.
I never use google account but when I do that, I am stuck!
I get a recollection that when using VoidLinux with KDE Plasma, I was in need to compiled the signond from sources. Than accounts works again!

Found an easy solution! Just add this copr repo:

sudo dnf copr enable hazel-bunny/ports
sudo dnf update

to install the latest version of signon-ui/signond and it should fix the issue.

Same problem here.
Fedora 39

If the solution in this post does not fix your problem (and since you are on F39 instead of F38) please open your own thread with details about what is happening and what you have tried. Your issue seems different than the OP had.

I am closing this thread since it already had a solution several months ago.