Client requires authentication at every launch

Expected behaviour

After authenticating once with the browser based scheme it should remember the credentials and use that when starting the client the next time.

Actual behaviour

It always asks for credentials at every launch of the OS.

Steps to reproduce

  1. Start nextcloud client first time
  2. Browser opens that requests login
  3. Authenticate
  4. Close client
  5. Reboot OS and start at step 1.

Client configuration

Client version: 3.4.4 (macOS)
osx-21.4.0

Operating system: MacOS Monterey (12.3.1)

OS language: English

Server configuration

Nextcloud version: 20.0.9
OS: Linux 2.6.32

Related Issues

Client always asks for authentication #1716
nextcloud/server#17165
nextcloud/desktop#4281

I reopened the bug. I don’t know enough details to give you more hints. I think there could be something different because if it were the case for all mac users, there would be much more reports. Perhaps try with a different server, if that happens there as well, so you can link it to the client only or if the server is possibly involved as well.

Question is as well, do you use two-factor-authentication. After a login, there should be an app password, does this app password still exist (security settings on your personal settings page)?

I am now using client 3.6.2 (osx-21.6.0), our install of nextcloud is Nextcloud Hub 3 (25.0.1).

Still getting the web page brought up to log onto nc and authenticate client whenever I launch the computer.

I feel I have missed some instruction or config tip.

It’s strange there are a few people complaining. In the bug report it was originally a client version 3.4.x on MacOS Monterey (12.2.1). But the problem appears on different platforms (Linux and Windows). Some clients since then seem to have solved the issue for some but not all. Also to consider is that there are probably a lot of users that don’t have this problem.

Unfortunately there are no instructions how to dig deeper. In case you have two very similar systems where one has the problem and one hasn’t, that could be interesting.

Since the problem exists on different platforms and was solved for some, you might just share a symptom but not the same problem. If you have more specific errors from the logs where it shows why it can’t authenticate … unfortunately I don’t know the internals for this process to help you out.

Thank you for the thoughtful reply. Sadly, the only symptom is the requirement to authenticate at system launch.

I wonder if there is a setting in the nextcloud.cfg that controls or affects the auth behavior.

This was fixed for me. Then after updating to v 25.0.3 it’s mysteriously come back.
I should note, that the update of Nextcloud server has affected the operation of ALL of the clients that connect to it.

This includes a Monterey desktop client, a Big Sur desktop client, and a windows desktop client.
They all forget the authentication after reboot.

There was a problem with too many authentication tokens for some users:

but the fix was just done for NC26 (https://github.com/nextcloud/server/pull/28311) and is not backported to older versions.
So perhaps, they did some other changes that are not linked to this topic but affect authentications/sessions, if you know the version, I’d go through the changelogs on https://nextcloud.com/changelog/ for NC25.0.3

1 Like

thanks for sharing the info. I hope these changes correct the long standing problem.

I am on the newest versions both client and server. The problem persists and I have to login manually at every launch of my PC.
The behaviour appeared only after I bought a new PC and installed the NC desktop client. On my old PC the login was automatically after each launch of the OS.

Is there any hope to solve this problem?

Hi. IIRC, this was resolved in server release 26 and higher. Because my private server has had many releases installed over the years, I did go into my nextcloud account via the browser and remove some old tokens; see post #7 in this thread. Now my desktop client works as desired.

Hi, I have the exact same problem on
endeavouros (arch) with xfce.

client
Nextcloud Desktop-Client 3.13.0
server
Nextcloud Hub 7 (28.0.6)

Same problem
Ubuntu 22.04.4 LTS
Nextcloud desktop client 3.12.7
Nextcloud Hub 8 (29.0.3)

I daresay: no you haven’t.

Why?

and this is somewhat completely different from MacOS Monterey (as mentioned above)

So please feel free to open a new thread about your problem.

and here as well I daresay: no you haven’t.

why?

which is different from MacOS Monterey.

As well as

which is different from the setting of TS.

Pls feel free to open a new thread (link to this one here) to request some help.