Nextcloud Client asks for login over and over (windows 10)

Since several months (I think I remember that some new login mechanism was introduced) I have the problem that the nextcloud clients on all machines that use it with my nextcloud keep asking for login credentials regularly after start.
The issue is hard to catch - sometimes it doesn’t bother the users for several weeks, sometimes it’s almost daily that it asks for login.

What could this be?

Nextcloud-Client is installed via chocolatey, Nextcloud is deployed via the official nextcloud docker image (not modified).

Thanks for any help.

Ideally you have app passwords for your desktop client. Check on the security section of the settings-page, what app passwords were generated. You usually see when a login was used for the last time. Next time it asks for a password, create a new password, then enter your normal username and this newly generated app password.

Just had the same case again and tried what you suggest. Unfortunately it just doesn’t work at all with a generated app password.

Here what happens:

Nextcloud client icon is grey in the task bar, no sync running anymore.

I open nextcloud client and choose “login”:

Now this browser window pops up:

Klicking on “Anmelden” leads me to the default login page:

Now when I enter the previously generated app password for my username it tells me that username or password is wrong:
2020-03-19 21_46_40-Nextcloud

Using my default password works. Nextcloud client starts syncing.

For some while. Usually some days or 1-2 weeks later, the same procedure starts with being nextcloud client grey in the task bar.

For me it’s okay as I understand it but the users of my nextcloud installation is mainly my family, not IT skilled :wink: Some of them even never remember their password as I had to create some cryptical for them (otherwise they use things like “password1” :roll_eyes:).

Hey

i have the same issue, didn’t find a solution yet. i have it with a clean vm build ubuntu.

That sounds strange. When you use usual password, it seems to work properly. I have read about such problems on linux. There is one issue in combination with ldap (https://github.com/nextcloud/desktop/issues/1722). Is this just one client or others as well? Do you see if there are still the app passwords in the browser (it shows you when it was used for the last time).

I had an idea today (not confirmed yet).
Maybe it’s related to regular firefox updates? Does the nextcloud client somehow use some component of the system’s default browser?

I have a script running, updating Firefox to the most recent version on every startup of my laptop (via chocolatey). The same script is running on all machines of my nextcloud users (as I am the admin :wink: ).
Looking to that login page it refers to the full user agent string. Maybe this is also used somewhere in the login token or s.th.

I disabled this automatic Firefox update in my script now and will double check the behaviour during a manual Firefox update.

I have similar issues from time to time…
My setup is: three NC instances; all VMs (VMware and QNAP); at least two years each.
All constantly updated. Accessed by browser only - Safari/Edge/Chrome.
Many different computers, Windows and macOS…

I have the suspicion that NC will ask you for a password as many times as the number of open connections your username has.
So, if you logged in from 2 PCs with your credentials and didn’t log off, you’ll need to enter your password 3 times when attempting to connect from a third computer/browser…

Like it is severing the two old connections (in reality it does not).

I think only the first time to create the app password.

Did you check on your setting if the app password for the client still exists and isn’t deleted/lost? Would be great to know if it is a client or server side issue.

I didn’t create the app password. It’s the default password of the given user. But this shouldn’t make a difference in my opinion.

AS I said I disabled Firefox updates but the problem remains so my expectation is probably wrong (as you also suspected). I would also like to know where the problem is sitting.

Looking to the nextcloud logs I see plenty of “Login failed” messages, unfortunately without further explanation what failed. I increased the loglevel now to debug (0), hoping that maybe something helpful may be logged.