-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[Nextcloud 15] Nextcloud clients cannot log in after upgrading from 15.0.0 to 15.0.2 #13591
Comments
Windows 2.5.1 clients appear to be also affected. |
confirmed - also having the same issue with windows client. as far as i remember there is already an issue somewhere mentioning this, but didnt have the time to look it up... |
@phish108 what is the username? I may bet my liver it has a whitespace in it 🤔 |
@phish108 so I've probably lost a liver, the only one I had 🤣 well, still the nc-client has to connect to the nc-server first. and if it fails its authentication at the nc-server, how will it be possible to authenticate on ldap then? can you please double-check if the actual username (not displayname) has no whitespaces? |
|
@danielkesselberg Thank you for the pointer. After fixing the database, the issue remains, only the errors disappear. @victorbw The client connects to the server. The user authenticates successfully with LDAP. The issue is at the step of granting access to the client after login. I doubt that this is related to LDAP. |
so do I - most probably its on the side of ncs authentication procedure back to the client, but I'm pretty much unsure who's the one to blame. maybe this should be copied to https://github.com/nextcloud/desktop? |
@victorbw I don't think that it is a client or desktop related issue for 2 reasons:
The mobile clients are slightly more informative and indicate a missing or broken API on the server (Access Forbidden, Invalid Request). I have not tested 15.0.1 |
new errors appear
|
I digged further and found nothing in the logs. The access tokens are created correctly. However it seems that the redirect URL points to the wrong location or passes the wrong data or passes it in a way that the clients cannot pick up. The only related change that makes sense to me appears in |
very likely unrelated, however in case it isnt or just to raise awareness, v15.0.02 also breaks the user_saml plugin nextcloud/user_saml#296 |
Can somebody provide me with test credentials to a system this happens. I tried it on 4 instances I have access to and all the clients work properly. |
PN! **edit: just saw that github has removed private messaging for a while ... 👎 |
never said it was ldap-related ;) |
TL;DR: try adding this to your config.php:
|
@KBlixt Thank you very much. This solves the issue. However, the documentation was unclear to me, so I missed that point. Maybe also, because it worked with the initial version. I suggest to make it clearer that these settings are non-optional in reverse proxy (and maybe FPM) settings. A bulleted list just like its presented in https://github.com/nextcloud/server/blob/master/config/config.sample.php#L456-L463, instead of a big chunk of text. @rullzer - thank you again for your support earlier. I will revoke the credentials again. |
Confirmed clients to fail:
Official Desktop Client:
Mobile Clients
Unaffected
Steps to reproduce
only on mobile clients
11. return to old method
12. enter credentials
13. return to landing screen for new accounts.
Web Login works as usual.
Expected behaviour
Client authenticates and synchronizes the user data
Actual behaviour
User is stuck on the client's authentication screen.
Server configuration
Operating system:
alpine linux (official docker container 15-fpm-alpine)
Web server:
NGINX
Database:
MariaDB
PHP version:
7.2.14
Nextcloud version: (see Nextcloud admin page)
15.0.2
Updated from an older Nextcloud/ownCloud or fresh install:
15.0.0 and fresh install
Where did you install Nextcloud from:
docker hub
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
No (local)
Are you using encryption: yes/no
No (apart from HTTPS)
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
NC Client 2.5.1 (Mozilla/5.0 (Macintosh) mirall/2.5.1final (build 20181204) (Nextcloud)
Operating system:
Mac OS 10.14.2
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
The nextcloud log keeps returning these blocks from the nextcloud client.
Browser log
Browser log
Under settings/logging I see this line repeating over and over.
The text was updated successfully, but these errors were encountered: