desktop
desktop copied to clipboard
[Bug]: Desktop client will not stay logged in after system reboot
⚠️ Before submitting, please verify the following: ⚠️
- [X] This is a bug, not a question or a configuration issue.
- [X] This issue is not already reported on Github (I've searched it).
- [X] Nextcloud Server and Desktop Client are up to date. See Server Maintenance and Release Schedule and Desktop Releases for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct
Bug description
Desktop client will not stay logged in after system reboot
Steps to reproduce
- Start system & login to Linux desktop.
- Immediately get prompted that "You have been logged out of your account ACCOUNTNAME at https://SERVERNAME. Please login again."
- Enter login and password in the popped out web browser.
- Click on "Grant Access", which then connects the Nextcloud Desktop Client to the Nextcloud Server.
- Shut down system.
- Upon starting the system again, I have to start all over again at Step 1 above.
Expected behavior
After logging into the Nextcloud Server using the Nextcloud Desktop Client, it should save that information and not ask to do this every time the system is rebooted.
Which files are affected by this bug
ALL
Operating system
Linux
Which version of the operating system you are running.
EndeavourOS
Package
Distro package manager
Nextcloud Server version
25.0.8
Nextcloud Desktop Client version
3.9.0
Is this bug present after an update or on a fresh install?
Fresh desktop client install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
- [ ] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Nextcloud Server logs
This is not happening on my other desktop running Arch where I have been using this same application for years now.
Additional info
This same reported issue has also been happening on an Artix Linux install.
Same here on MacOS 12.6.7
Same here. fresh installed endevour os gnome.
When i launched nextcloud for thr first time.i get the message that it failed to import legacy configs. Well there shouldnt be any configs yet since its a frrsh install.
After this it logs out again.
I have the same issue on Windows 11. It's not just a system reboot, just closing and opening the app causes it to get logged out.
Looking through the logs I can see this line, which seems telling:
2023-07-31 14:38:28:883 [ warning nextcloud.sync.credentials.keychainchunk C:\Users\sysadmin\AppData\Local\Temp\2\windows-16700\client-building\desktop\src\libsync\creds\keychainchunk.cpp:360 ]: Unable to read "Nextcloud_proxy-password" chunk "0" "Password entry not found"
Any Nextcloud developers have any idea of any workarounds for this issue or how we can all provide more information to you to help resolve this?
same problem here
for everyone who is still facing the problem. just install the gnome keyring and you good
Just started happening to me, too, once I upgraded to Ubuntu 23.10. Client was totally working just before, and continues to work on Ubuntu 23.04 and 22.04. I already have gnome-keyring installed to no avail. Using the snap package nextcloud-desktop-client version 3.10.1.
EDIT: Uninstalling the snap version (3.10.1) and installing the apt version (3.9.0-1) seems to fix the issue for me.
This has been an issue for me for at least a couple of years:
- Ubuntu 22.04
- apt package
- Nextcloud Desktop 3.5.4 (Ubuntu)
Re: @mur1chan's comment:
for everyone who is still facing the problem. just install the gnome keyring and you good
Gnome keyring makes this problem worse, because it overlays its own unhelpful behaviour overtop of the original problem (details hidden, as most of that problem is Gnome's, not Nextcloud's).
The basic problem that the desktop app can't maintain a login while the web and phone apps maintain logins for weeks or months is real and ongoing though.
With Gnome keyring installed, as far as I can tell this is what happens...
- Nextcloud saves a token or something in the "Default" keyring with no user interaction, even if you've never used Keyring before,
- on subsequent logins, Gnome's Keyring app login dialog appears before any app can be launched, but if you've never used the keyring before, there's no way to know the password (it isn't the login/sudo password),
- if you re-authenticate with Nextcloud without using Gnome Keyring, Keyring will still prompt you another couple of times.
The solution there is to delete the default keyring, create a new one with a known password, and use it in future (but note that Gnome Keyring's login dialogue blocks access to any other app while it's active and launches before anything else can be accessed, so you need to know the password or have it available via password manager on a phone or other device).
I upgraded / reinstalled from Ubuntu 20.04 (Gnome) to Ubuntu 22.04 with KDE (Tuxedo OS version) and now i am facing also with the problem that i have to login after each reboot.
After reading on similar issue threads, I stumbled upon installing libgnome-keyring, but now I get the keyring dialog triggered twice every time I log in to my desktop, even though I checked the option to automatically unlock the keyring on login