-
Notifications
You must be signed in to change notification settings - Fork 805
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
Client needs to manually login after every start #2573
Comments
And after startup, when it asks for the login, if you ignore this, quit it then launch the client again, what happens then? Does it ask for the login still? or it authenticate fine? |
It authenticates fine. So this is a race condition, you think? |
Looks very much like it yes. I think nextcloud-desktop somehow starts first, try to poke at kwallet (via qtkeyring), nobody answers so it goes through the login procedure you see. Then kwallet finally starts but somehow it's "too late". I'll have to think at how we address this. |
I think I have a very similar issue. I am not sure if it is different than this one, if so, and someone would like me to open it as a new issue, I will do. I am also using Arch linux: My kwallet is disabled with the following config:
Also KeepassXC is set up to function as a secret storage backend. It is working correctly, as for example IntelliJ products can store and read entries in it, and another applications are working correctly too. First time running the Nextcloud client (and logged in to KeepassXC) I followed the web auth login. So the issue is, that while I don't unlock my keepass store, the Nextcloud clients tries to authenticate through web. Would it be possible somehow, to the Nextcloud client, to detect if the secrets are available through libsecret, or somehow invoke the attached secret storage backend, for unlocking, instead asking for web authentication? Edit: A temporary fix would be to add an option (a config entry in an ini file would do the trick) to disable Web auth, and only try to read the credentials from the libsecret. So if I am away from my computer when it turns on, and go there for example 5 minutes later and open my keystore then, nextcloud could try to read the credentials in 30second interval. Or with some interval, and if it finds it can connect with it. Edit2: I have been thinking more about it. Maybe this workaround could work pretty well. I think there is no way to ask libsecret if it has openeded or not. I need to check it later. I hope I was clear, and if somebody tries to solve this issue, and don't find a better solution would implement this. @er-vin what do you think? Update: I checked the QtKeychain implementation. I think libsecret provides information if it is unlocked or not, but Qtkeychain interface hides this information, so there is no way to check if the used store (for example KWallet or Libsecret is opened). |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Same here for me with client 3.2.1 on windows. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as duplicate.
This comment was marked as duplicate.
@FlexW Is this still planned for 3.3? The tagged release candidate doesn't address many issues in the milestone? Edit: Looks like the release got updated with a bunch of merged PR links, but nothing with this, unfortunately |
This comment was marked as outdated.
This comment was marked as outdated.
No the case for me with Plasma 5.27.4 and Nextcloud 3.8.0, Kubuntu 22.10. |
I had the same problem with a fresh install, Nextcloud Client 3.8.1 on Ubuntu 22.04 (Tuxedo OS 2), KDE Plasma 5.27.4. I did some testing and found 2 possible solutions for me:
|
Same problem for windows client. |
I have been experiencing recent issues with nextcloud not communicating with gnome-keyring-daemon. |
How do you manage Nextcloud password with gnome-keyring-daemon? I've installed, but not being able of using it. |
Nothing special, I think? I start gnome-keyring-daemon with sway and update the dubs environment, but even manually starting it then starting nextcloud it works for me. |
I deleted Nextcloud cache folder and run: |
There needs to be some kind of error message to notify users of a missing wallet on KDE. Might this be some configuration error on Tuxedo's part? I've never run into this issue before on Kubuntu or EndeavourOS with KDE. Maybe those distros ship with a default kdewallet enabled. |
We are also affected by this issue: The problem with gnome-keyring also occurs on Debian 12 bookworm. |
For Gentoo users, ensure to have use-flag
|
I have the same problem on Raspberry PI OS, which is based on Debian 11. None of the solutions here worked. This is with flatpak as I don't see a arm64 appimage. 3.10.0 |
Not a fix but a bandaid: I just added a delay when starting the Nextcloud client systemd service by following https://stackoverflow.com/a/52592734/1013628 |
I have the same problem on my laptop. I use nextcloud client on laptop and desktop. Both have archlinux. Both have qtkeychain-qt5 installed. On my desktop I run lxde, on my laptop xfce as far as I know. I don't know what other differences there are. A difference might be that my laptop normally does not have an internet connection yet on startup, my desktop has. However when I do not auto start, it will still use the browser on my laptop. [edit] Found out why: my desktop had gnome keyring installed, the laptop did not. Installing gnome keyring helped solving the issue. But now I need qtkeyring-qt5 (which installs kwallet) AND gnome keyring, which is quite strange. |
I had the same problem on DietPi (based on Debian) with LXQt and I installed |
This comment was marked as off-topic.
This comment was marked as off-topic.
I had this problem on Fedora Kinoite too, where KWallet, an application I didn't know existed, was apparently turned off by default which caused this behaviour. There really should be a warning dialog instead of having the account authentication getting corrupted on application restart. |
I've only recently had this start happeing to me also. Didn't know about kdewallet. There are no keys in it. |
I have both gnome-keyring-daemon and qtkeychain installed on Fedora 40, but this problem still persists. |
I'm having the same issue in Ubuntu Budgie 24.04.1 LTS using desktop client 3.14.1 When I open the client for the first time to login, an extract of the contents of the log file filtered by "keychain" is as follows :
The last line mentions that it was unable to store the password in the keychain, even though the gnome keychain is installed on my system. |
For folks that just started to experience this recently, it's a regression: #7231 |
I'm experiencing a similar issue on client v 3.14.3 for Windows 10 64bit. Should I make an entirely new issue for that? |
Expected behaviour
Nextcloud desktop keeps logged in after first successful login.
Actual behaviour
Nextcloud desktop keeps asking to log in on every start up.
Steps to reproduce
Client configuration
Client version: 3.0.2 (Arch) (git revision 068ad8)
Operating system: ArchLinux
OS language: German
Qt version used by client package (Linux only, see also Settings dialog): Qt 5.15.1
Client package (From Nextcloud or distro) (Linux only): distro - community/nextcloud-client 3.0.2-1
QtKeychain version: qtkeychain 0.11.1
KWallet version: kwallet 5.75.0
Server configuration
Nextcloud version: nextcloud 20.0.0
More information
I have seen issue #2260 and added information about QtKeychain and KWallet.
I can see that nextcloud-desktop tries to authenticate, but it only starts trying after I unlock my kwallet. Also I see some credentials in my kwallet regarding nextcloud-desktop. So I assume that kwallet is working correctly.
The text was updated successfully, but these errors were encountered: