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

Client requires authentication at every launch #4281

Closed
mophilly opened this issue Feb 14, 2022 · 60 comments
Closed

Client requires authentication at every launch #4281

mophilly opened this issue Feb 14, 2022 · 60 comments

Comments

@mophilly
Copy link

mophilly commented Feb 14, 2022

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. Open client

Client configuration

Client version: 3.4.2

Operating system: MacOS Monterey (12.2.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

@mophilly mophilly added the bug label Feb 14, 2022
@mophilly mophilly changed the title Client require authentication at every launch Client requires authentication at every launch Feb 14, 2022
@TomBayne
Copy link

Can confirm this issue exists on client version 3.4.2, server version 20.0.9.
Client OS: Arch Linux (arch-5.16.10-zen)
Server OS: DietPi Linux v8.1.2

@github-actions
Copy link

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label Mar 23, 2022
@github-actions
Copy link

github-actions bot commented Apr 6, 2022

This bug report is getting automatically closed due to no answer since the issue has been staled. Thank you!

@github-actions github-actions bot closed this as completed Apr 6, 2022
@mophilly
Copy link
Author

mophilly commented Apr 6, 2022

Why is this closed without comment or resolution? It seems a simple problem that likely requires only a simple correction.

@tflidd tflidd reopened this Apr 10, 2022
@tflidd tflidd removed the stale label Apr 10, 2022
@redhell
Copy link

redhell commented Apr 14, 2022

Really annoying.

At still MacOS 12.3.1 with latest nextcloud server/client

@serjor
Copy link

serjor commented Apr 16, 2022

This is happening to me too

Version 3.4.4, on openSUSE tumbleweed (KDE).

@sandrock
Copy link

Happening with 5.13.19-2-MANJARO.

What is this from the log file?

[ info nextcloud.sync.credentials.keychainchunk /build/nextcloud-client/src/nextcloud-client/src/libsync/creds/keychainchunk.cpp:346 ]: Backend unavailable (yet?) Retrying in a few seconds. "The name org.freedesktop.secrets was not provided by any .service files"

@github-actions
Copy link

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label May 20, 2022
@jahway603
Copy link

I'm experiencing this same issue on the following:

Client version 3.5.1
Two Servers running versions 23.0.4 & 22.2.7

Client OS: Artix Linux (5.17.8-artix1-1)
Server OS: DietPi Linux v8.4.2 (on both servers)

@github-actions github-actions bot removed the stale label May 27, 2022
@Hudratronium
Copy link

Same for me - reauthentification is needed nearly daily.

Client version 3.5.1 / Win 10 Pro
Server version 24.0.1 / Ubuntu 20.0.4 Server

@roosweb
Copy link

roosweb commented Jun 27, 2022

Same here, reauthentification via browser is needed DAILY at Windows 10 laptop with the latest Nextcloud desktop version 3.5.1. So this is not working for us if Nextcloud does not have a solution for this.

Reauthentification is NOT needed at my iMac (macOS 10.15) with Nextcloud 3.5.1.

@Hudratronium
Copy link

It seems this problem / bug still has not that impact - or the bug report ist to old that someone is taking a look into it. some of the older threads i found where trying to workaround with generated application passwords for the clients. Sadly this didn't worked out for me either. Makes it hard to "sell" this solution in a professional environment.

@mophilly
Copy link
Author

mophilly commented Jul 2, 2022

Makes it hard to "sell" this solution in a professional environment.

I agree. My team adopted NextCloud because it was not intrusive for the end user. Now it is intrusive. This inability to logon without human interaction after first authentication causes us unnecessary support requests.

@BrunoBernardino
Copy link

BrunoBernardino commented Jul 5, 2022

This started happening to me with the desktop sync client version 3.5.2 on Linux. I've downgraded to 3.5.1 and the problem went away. Server version is 24.0.1. I've disabled the automatic update check on the client for now.

@alexpdp7
Copy link

alexpdp7 commented Jul 9, 2022

Can confirm that downgrading to 3.5.1 does fix the issue. I'm on CentOS Stream 9.

@Hudratronium
Copy link

Sadly i can't confirm this on my windows clients. Came from 3.5.1 but nothing changed. So this seems to be a bogus one...

@tflidd
Copy link
Contributor

tflidd commented Jul 10, 2022

This started happening to me with the desktop sync client version 3.5.2 on Linux. I've downgraded to 3.5.1 and the problem went away. Server version is 24.0.1. I've disabled the automatic update check on the client for now.

This is a regression bug. This report here is for an older version. I would consider this to be a different bug from this one here, where this problem consist through many versions. And it seems to be on Linux platforms only. I'd consider opening a separate report for this (if there isn't one already).

@roosweb
Copy link

roosweb commented Jul 13, 2022

Still the same problem with Nextcloud desktop version 3.5.1 + 3.5.2 at WINDOWS 10 laptop : requires authentication at every (daily) launch !

@p0kR
Copy link

p0kR commented Jul 15, 2022

same on linux using AppImage with version 3.5.2

@letsfindaway
Copy link

letsfindaway commented Jul 16, 2022

Hi,

Happening with 5.13.19-2-MANJARO.

and also for me on openSUSE Leap 15.4 even with version 3.3.6. So I think it is not specific to a version.

What is this from the log file?

[ info nextcloud.sync.credentials.keychainchunk /build/nextcloud-client/src/nextcloud-client/src/libsync/creds/keychainchunk.cpp:346 ]: Backend unavailable (yet?) Retrying in a few seconds. "The name org.freedesktop.secrets was not provided by any .service files"

Have the same messages. It seems that the org.freedesktop.secrets service is not running at the time nextcloud client is started. It seems to be a race condition between this service and nextcloud. My solution is to delay the autostart of nextcloud by 10 seconds. Seems to work. I changed the desktop entry (mainly the Exec line) in ~/.config/autostart/Nextcloud.desktop to

[Desktop Entry]
Name=Nextcloud delayed
GenericName=File Synchronizer
Exec=/usr/bin/bash -c "sleep 10;/usr/bin/nextcloud"
Terminal=false
Icon=nextcloud
Categories=Network
Type=Application
StartupNotify=false
X-GNOME-Autostart-enabled=true

Since then all boots (well, not so many since I changed that, so still to be confirmed) go without any problem.

@jokay
Copy link

jokay commented Jul 29, 2022

Can confirm this problem for Linux AppImage version 3.5.3 (using an app token).

@mkofahl
Copy link

mkofahl commented Jul 31, 2022

Also for Linux AppImage version 3.5.3 on Xubuntu 20 using a tls client certifificate.

[ warning nextcloud.sync.credentials.keychainchunk /home/user/src/libsync/creds/keychainchunk.cpp:360 ]: Unable to read "***_clientCertificatePEM:https://***/:0" chunk "0" "Unknown error"

@Hudratronium
Copy link

Interesting - another "Issue" with kind of the same effects we are faceing here...

#4796

@Hudratronium
Copy link

new stable release 3.6 -- Still the same problem...

@jokay
Copy link

jokay commented Sep 9, 2022

imho, this bug seems reliable / stable enough to be considered as feature now 😉

@rekuenkdr
Copy link

I can confirm that Nextcloud-3.6.0-x86_64.AppImage fixes the issue, or at least for me.
Using latest Nextcloud 24.0.5 and Ubuntu 20.04.

@p0kR
Copy link

p0kR commented Sep 10, 2022

Same for me, fixed in Nextcloud-3.6.0-x86_64.AppImage on PopOS 22.04

@BrunoBernardino
Copy link

I can confirm 3.6.0 also fixed it for me, on a Ubuntu 20.04 variant (Zorin). Server Nextcloud version is 24.0.3. Thanks!

@hramberger
Copy link

Version 3.6.0 works perfectly fine again on Ubuntu 20.04 for me. It even picked up the the login from the previous working appimage (Nextcloud-3.5.1-x86_64.AppImage). Thanks for the fix!

@Hudratronium
Copy link

So it seems for at least Ubuntu / Linux clients to be solved.

Sadly nothing new for me, running the windows client 3.6 + NC24.0.5

Every new reconnect to an actual network, i 'll have to reauthenticate / App - Password not working even as the "login" page says successfull, but the app fails to authenticate....

@zwa-vault
Copy link

Same here, I need to authenticate Windows client 3.6.0 each time I start the client.

@tgressly
Copy link

Same here, macOS client needs authentication at each launch of the client 3.6.0

@mophilly
Copy link
Author

Not yet working for me. I have to authenticate on every launch.
MacOS 12.6, NextCloud client 3.6.0 (osx-21.6.0), NextCloud server 24.0.5 running on Koozali SME (CentOS 7)

@githubtefo
Copy link

In my case I have it stops synchronizing every time I reconnect and I have to reopen the client, very annoying.
Also stable 3.6.0 on Ubutu 22.04 with NextcloudPi as server.

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label Nov 3, 2022
@github-actions
Copy link

This bug report is getting automatically closed due to no answer since the issue has been staled. Thank you!

@RealSerga
Copy link

I have the same problem with appimage version 3.6.4
KDE neon 5.26
KDE 5.26.5
Linux 5.15

@Hudratronium
Copy link

@RealSerga
Hopeless... this one here is closed. should be time to file a new bug report

@Hudratronium
Copy link

For those who care - new issue open:
#5457

@serge-vk
Copy link

This was not an issue for me running the AppImage on Ubuntu 24.04 until the last update to 3.14 a few days ago. Now, I have this horrible problem, too. Moreover, after running for a while, NextCloud app freezes and then crashes if I try opening settings or the main dialogue.

@phi0042
Copy link

phi0042 commented Sep 27, 2024

This was not an issue for me running the AppImage on Ubuntu 24.04 until the last update to 3.14 a few days ago. Now, I have this horrible problem, too. Moreover, after running for a while, NextCloud app freezes and then crashes if I try opening settings or the main dialogue.

I have the same annoying problem with the AppImage on Ubuntu 24.04 with the last update to 3.14 a few days ago. Before updating a software, the developers could test it ! There is not even any way to downgrade to the previous version.

@phi0042
Copy link

phi0042 commented Sep 27, 2024

I suggest to use the snap file provided with the Ubuntu software library which contains the version 3.13.4 which does not have the bug.

@phi0042
Copy link

phi0042 commented Sep 29, 2024

And the new today's version 3.14.1 does not fix the bug...

@NielBuys
Copy link

NielBuys commented Oct 6, 2024

I downgraded my wifes appimage to 3.11.0 that was on my pc. And the problem stopped.

@rooselle
Copy link

rooselle commented Nov 30, 2024

Same problem on Ubuntu 24 since version 3.14. Just downgraded to 3.13 and it works just fine. You can find the old AppImage here: https://github.com/nextcloud-releases/desktop/releases/tag/v3.13.3 (cc @phi0042)

@EchedelleLR
Copy link

Is this issue still happening?

@rooselle
Copy link

I'm currently on 3.15.0 and it works.

@EchedelleLR
Copy link

I am on 3.15.0, still does not work on Windows.

A reboot = having to relogin.

@NielBuys
Copy link

NielBuys commented Jan 20, 2025

I tested v3.15.3 on my Ubuntu 24.04 and it did not require authentication after reboot. So it looks like its working.

@nilsding
Copy link
Member

@EchedelleLR do you have to re-login only once after setting up a new account and a restart of the client, or does that really happen every time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests