Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync requests to re-login every 2 minutes. #92972

Closed
sarahkittyy opened this issue Mar 18, 2020 · 7 comments
Closed

Sync requests to re-login every 2 minutes. #92972

sarahkittyy opened this issue Mar 18, 2020 · 7 comments
Assignees
Labels
authentication Authentication issues bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@sarahkittyy
Copy link

  • VSCode Version:
1.44.0-insider
708b019bb4e20f07cf89df9f1d943af3d38d7a70
x64
  • OS Version: Linux sarahkitty 5.5.8-arch1-1 #1 SMP PREEMPT Fri, 06 Mar 2020 00:57:33 +0000 x86_64 GNU/Linux

Steps to Reproduce:

  1. See notification, "Sign in to sync"
  2. Sign in up to the page where it says, "You are all set"
  3. The notification goes away.
  4. Wait <3 minutes
  5. Notification is back, asking to sign in

Does this issue occur when all extensions are disabled?: Yes

@RMacfarlane
Copy link
Contributor

@sarahkittyy Can you open the output panel and choose "Account" from the dropdown, and copy-paste the output from there?

@RMacfarlane RMacfarlane added authentication Authentication issues bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster labels Mar 19, 2020
@sarahkittyy
Copy link
Author

sarahkittyy commented Mar 20, 2020

@RMacfarlane

[Info  - 00:34:59.807] Logging in...
[Info  - 00:35:03.603] Exchanging login code for token
[Info  - 00:35:03.991] Exchanging login code for token success
[Info  - 00:35:03.993] Login successful
[Info  - 00:35:04.2] Token available from cache, expires in 3598990 milliseconds
[Error  - 00:35:04.44] Setting token failed: Error: No such interface “org.freedesktop.Secret.Collection” on object at path /org/freedesktop/secrets/collection/login
[Info  - 00:35:23.610] Logging out of all sessions

@RMacfarlane
Copy link
Contributor

Thanks! Writing the token to the keychain is failing, so it seems like there's an issue with the way gnome-keyring is configured on your system. I'd like to pop up a notification in this case pointing to documentation on how to fix this. Can you see if adding .local/share/keyrings/ to your home directory fixes this, or deleting .local/share/keyrings/default if you have such a directory?

@RMacfarlane RMacfarlane removed the info-needed Issue requires more information from poster label Mar 20, 2020
@RMacfarlane RMacfarlane added this to the March 2020 milestone Mar 20, 2020
@sarahkittyy
Copy link
Author

sarahkittyy commented Mar 20, 2020

@RMacfarlane ~/.local/share/keyrings/ exists, but is empty

Edit: cd ~/.local/share && ls -l | grep keyrings
drwx------ 2 sarahkitty sarahkitty 4096 Jul 22 2019 keyrings

@sarahkittyy
Copy link
Author

I fixed it! Steps I took:

  1. In ~/.xinitrc:
# not sure if this is necessary
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK 

source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
  1. Install and run seahorse
  2. File => New Keyring => Name it "login"

After that it works perfectly :)

@roblourens roblourens added the verified Verification succeeded label Apr 3, 2020
@autoferrit
Copy link

This doesn't seem to work if you are using KDE. The error I get is

Writing login information to the keychain failed with error 'The name org.freedesktop.secrets was not provided by any .service files'.

I found a solution which can be seen here under the "solution" header:
https://rtfm.co.ua/en/linux-the-nextcloud-client-qtkeychain-and-the-the-name-org-freedesktop-secrets-was-not-provided-by-any-service-files-error/

As a summary, the solution (I am on arch) was to do install gnome keyring and qtkeychain

$ yay -S qtkeychain gnome-keyring

Verify it is present with

$ ls -l /usr/share/dbus-1/services/ | grep secret
-rw-r--r-- 1 root root 122 Oct 29 11:38 org.freedesktop.secrets.service

$ cat /usr/share/dbus-1/services/org.freedesktop.secrets.service
[D-BUS Service]
Name=org.freedesktop.secrets
Exec=/usr/bin/gnome-keyring-daemon --start --foreground --components=secrets

At this point I was able to log in. When I did, I did get a prompt that an application was trying to save something to a keyring and prompted for a password for a new default keyring. Once I did that everything seems to have worked fine.

@mort3za
Copy link

mort3za commented May 8, 2020

In kubuntu 20, installing gnome-keyring was enough for me.

sudo apt install gnome-keyring

@github-actions github-actions bot locked and limited conversation to collaborators May 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
authentication Authentication issues bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants