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 always asks for authentication #1716

Closed
epsilontheta opened this issue Jan 11, 2020 · 41 comments
Closed

Client always asks for authentication #1716

epsilontheta opened this issue Jan 11, 2020 · 41 comments
Labels

Comments

@epsilontheta
Copy link

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 start.

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: 2.6.2

Operating system: Fedora 31

OS language: English

Qt version used by client package (Linux only, see also Settings dialog): Qt 5.13.2

Client package (From Nextcloud or distro) (Linux only): nextcloud-client-2.6.2-1.fc31.src.rpm

Installation path of client: /usr/bin/nextcloud

Server configuration

Nextcloud version: 17.0.2.1

Storage backend (external storage):

Logs

  1. Client logfile: https://gist.github.com/epsilontheta/6ddfd7b1057e19562a57e061a7f4abb6

  2. Web server error log:

  3. Server logfile: nextcloud log (data/nextcloud.log):

@veddox
Copy link
Contributor

veddox commented Jan 15, 2020

This has been troubling me too for the past two weeks or so, although sometimes it does work.

Server version: 15.0.13
Client version: 2.6.2
Distro: elementary OS
Sanitised client log: https://gist.github.com/veddox/9e294ef45b61cf9510b8e53b247eab0b

Both log files contain the error Unable to read "user_clientCaCertificatePEM0:https://cloud.example.com/:0" chunk "0"

In my case, the app segfaults immediately after login.

@Croydon
Copy link

Croydon commented Jan 16, 2020

I have similar behaviour on Windows 10 with Client 2.6.2

I don't need to login after every single client restart, but every 1-2 day or so

This didn't happen with older Nextcloud client versions

@toxpal
Copy link

toxpal commented Jan 18, 2020

This issue is known for long time and devs claimed it was fixed in 2.6.2 (so they closed these issues), but problem was never fixed:

#1292
#1655

Hopefully it will be fixed...

@fab4x
Copy link

fab4x commented Jan 27, 2020

I'm having the same issue on Linux Mint 19.3 (Xfce if that matters in any case) which is based on Ubuntu 18.04.1. After every reboot Nextcloud is asking for authentication. libgnome-keyring0(was a dependency so it came preinstalled) and libgnome-keyring-common won't fix it. Didn't try the AppImage yet but that's not really an alternative for me. If you need any further details (logfiles e.g.) let me know.

@Zulan
Copy link

Zulan commented Jan 27, 2020

Can confirm with
Version 2.6.2git. For more information please click here.
This release was supplied by Nextcloud GmbH
Built from Git revision 1d7455 on Dec 24 2019, 12:35:56 using Qt 5.14.0, OpenSSL 1.1.1d 10 Sep 2019
on
Archlinux / Xfce

@clawoflight
Copy link

I have the same problem.

@epsilontheta
Copy link
Author

Does not happen on my other machine (Arch) also running 2.6.2git but with the difference that I set it up using an older client and server version.

@eitherway
Copy link

Same issue here on macOS.
Client version: 2.6.2
Server version: 18.0.0.10

@mhbates
Copy link

mhbates commented Feb 19, 2020

Same issue, Windows 10. Happens every 1-2 days. Started once server was updated from 16 to 17, although it could still be tied to client version.

Client version: 2.6.3
Server version: 17.0.3

@toxpal
Copy link

toxpal commented Feb 28, 2020

Also upgraded from 2.6.2 to 2.6.3, problem still exists.

@rochelmeyer
Copy link

Same here with KDE neon 5.18.2, clients 2.6.3 and 2.6.4. I have 5 accounts at the moment and need to re-authorize those at each and every boot - can we upvote this as "Most Annoying Bug"?

@jartigag
Copy link

jartigag commented Mar 9, 2020

It was debugged some time ago #1292 (comment), but it seemed to be fixed only in Fedora.

It certainly is a very annoying bug, pretty extended.. It may be worthwhile investing a little more time on it :)

@toxpal
Copy link

toxpal commented Mar 9, 2020

Honestly, I already lost hope on this... :)

@rochelmeyer
Copy link

In the meantime i was able to mitigate this problem by installing gnome-keyring - anyway, not certain which side effects this might have.

@MadFatVlad
Copy link

I am having this problem on Arch Linux machine, while everything is ok on 2 Win10 machines.
Client version 2.6.3

@claell
Copy link

claell commented Apr 4, 2020

@epsilontheta and the others, can you confirm that this is a duplicate of #1292?

@mhbates
Copy link

mhbates commented Apr 4, 2020

I'm no longer getting this issue, most likely since update 17.0.4.

@claell
Copy link

claell commented Apr 4, 2020

How about the others? Most seemed to be using Linux setups.

@toxpal
Copy link

toxpal commented Apr 5, 2020

Still have the same problem on all (3) KDE machines.

@eitherway
Copy link

I don't know actually.
The behaviour of my application seems a little bit different. My app shows simply "signed out from mydomain.tld as user" after few days of use (no restart of computer).
I cannot reproduce this issue currently.

OS: macOS
Client Version: 2.6.4 (updated from 2.6.2)
Server Version: 18.0.0.10

@rochelmeyer
Copy link

KDE key storage seems to differ frome GNOME. Might be Nextcloud only handles the GNOME way correctly. This would explain why installing GNOME packages seems to solve the problem. Correct me, if I'm wrong.

@epsilontheta
Copy link
Author

epsilontheta commented Apr 5, 2020

@claell yes that is the same bug except that I did not have this delay where it shows "no connection". After installing libgnome-keyring the problem seems to be gone for my setup.

@toxpal
Copy link

toxpal commented Apr 5, 2020

The same here (gnome-keyring "fixes" the problem) - #1292 (comment) - but I really don't want to install this stuff on my KDE system just for NC to work.

@claell
Copy link

claell commented Apr 5, 2020

Hm, I am not sure how to track this, as it might have a different cause than #1292. Currently it seems unclear, whether #1292 was actually fixed but there are issues with other environments (then it might be closed and the issue on other environments can be tracked here) or whether #1292 was not fixed properly (then this would be a duplicate and all should be tracked in #1292). I will leave both issues open for now.

@marvinjuette
Copy link

Can confirm the problem for both of my systems.
One is a Arch Linux setup using the newest sync-client.
The other one is a Windows10 Computer also using the newest version of the client.

@void-m4110c
Copy link

Same issue with Gentoo Linux and i3 WindowManager. Extremely annoying.

@maehne
Copy link

maehne commented Apr 23, 2020

I observe this issue with the latest version of the Nextcloud client on Windows 10, Debian Buster with KDE Plasma, and macOS 10.13. It is a very annoying behaviour. I never experienced this behaviour with the OwnCloud client, where I could explicitly specify the app-specific credentials in the client.

@void-m4110c
Copy link

Please, give us an option to store credentials encrypted inside the application.

@veddox
Copy link
Contributor

veddox commented May 2, 2020

KDE key storage seems to differ frome GNOME. Might be Nextcloud only handles the GNOME way correctly. This would explain why installing GNOME packages seems to solve the problem. Correct me, if I'm wrong.

Confirm this. I've just switched from elementary OS (with the Pantheon desktop) to Ubuntu 20.04 (with GNOME), and the issue is gone.

@Okanda
Copy link

Okanda commented May 20, 2020

Same issue on Manjaro Stable (Fluxbox Desktop).
Installing gnome-keyring solved the problem. . . but this is not a suitable fix for me.
Tried with kwallet-manager but didn't work.

@BMTTeam
Copy link

BMTTeam commented Jun 8, 2020

Win10 with desktop client v2.6.4stable-Win64 (build 20200303); NC v18.0.4 and the problem persist

@rubyco-me
Copy link

Same issue with version 3.1.1. Running arch with swaywm. Installed libgnome-keyring after reading up on the issue tracker. It didn't help. Got libsecret and qtkeychain installed. Really annoying issue, as this really defeats the whole point of the desktop client.

@wasv
Copy link

wasv commented Jan 6, 2021

I was actually debugging a separate issue, and managed to fix this (at least in my case, there seems to be many different causes).

I was running my server behind an nginx ingress in Kubernetes and kept getting errors about an insecure redirect from https to http when authorizing new apps. I fixed that by adding

  'overwriteprotocol' => 'https',

to my config.php, and after adding that, my clients were able to consistently sync again. No keychain or libsecret changes.

EDIT: To clarify what I was experiencing, this issue was occurring on Windows and Linux, which was what led me to believe the issue was server side. There may still be unrelated issues on certain Linux distros that are causing the same symptoms. I was also getting 401 errors during the oauth login process, whenever a client tried to authenticate.

@MeisterLLD
Copy link

I'm still having this issue with Arch Linux. Even with gnome-kering and libgnome-keyring.

@FlexW
Copy link

FlexW commented Mar 27, 2021

@MeisterLLD are you sure your keyring is configured correctly and gets unlocked properly? libgnome-keyring is deprecated you should use libsecret instead. I use ArchLinux with gnome-keyring too and don't have this problem.

I will close this issue for now as I think that everything works as expected. Everyone who has issues with that (especially people that use custom ArchLinux setups;)) are encouraged to check if the really configured their keychain correct so that it gets unlocked properly when they login. Please feel free to reopen or create a new issue if new problems occur.

@FlexW FlexW closed this as completed Mar 27, 2021
@MeisterLLD
Copy link

You are right, my bad, after another verification I found out that my keyring was not properly configured.

@mrschaal
Copy link

Still experiencing this issue on Windows 10 and Windows 11 machines with the latest client version

@mophilly
Copy link

This is happening with client 3.4.2 (macos) on MacOS Monterey (12.2.1).

@heschy2
Copy link

heschy2 commented Sep 20, 2023

I just experienced the same issue on Arch Linux, although, a reboot solved it (for now, but I hope it won't come back).
However, I am new to Arch Linux and a lot things don't work properly yet, but I thought it might be helpfull to just mention that I am experiencing it too.

nextcloud -v gave this:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Nextcloud version 3.10.0git
Git revision ad2cf1b
Using Qt 5.15.10, built against Qt 5.15.10
Using Qt platform plugin 'xcb'
Using 'OpenSSL 3.1.2 1 Aug 2023'
Running on Arch Linux, x86_64

@B1nus
Copy link

B1nus commented Aug 3, 2024

I solved this issue on arch linux with kde plasma. For me it was as simple as configuring kwallet. But I know others aren't so lucky.

@robertogerola
Copy link

I solved this too on Tuxedo OS with KDE. KDE Wallet subsytem was not enabled. After I have enabled it, everything worked correctly.

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

No branches or pull requests