-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Stuck in login loop #3623
Comments
This comment was marked as outdated.
This comment was marked as outdated.
I've got the same problem. The app was fine before the update (4 hours ago), just a few minutes ago I saw the play store notification that it had updated it and tried it again. My Nextcloud server is up to date with the latest stable release and I can login on the web and from the desktop client (on Linux) just fine. The Android app just looks me back to the login — after what appears to be a successful login. The user/password phase seems to work, it then prompts to grant access to the app, only then does it jump back to asking for a login. @nextcloud-android-bot None of those issues seem to be related, they are all old 2018 login related things and this appears to be a new regression in the latest release. |
Is this also happening with a new account? |
just tested it with a new account, still happens. |
Same problem here. New account doesn't work either. Everything was fine before the app update. DavDroid / DavX5 still works. |
Can you create us a test account, test if the problem occurs also there and if so send the credentials to tobias at nextcloud dot com with a reference to this issue? |
@tobiasKaminsky: I've sent you an Mail with a complete fresh account, please let me know if I can do anything else. |
I have the same issue with the app version 3.5.0 and Nextcloud 15.0.4 it all started to act up after the update if the android app |
I just had a look at the Apache log files for my Nextcloud instance and don't see anything particularly useful, but maybe it will mean something to a developer. I've redacted specific values using First, these lines showed up when I first opened the app and was show a login screen:
After entering my credentials and hitting login, these lines showed up:
Here I was show the "grant" button, after which these showed up (while the app looked like it was loading a file manager for about 20 seconds, then it dumped be back at the login screen.
|
I have same issue . I have updated today the app , and no longer working. After login I am redirected to login again. The server is on a VPS locally |
I went to the Android account settings on my phone (LinageOS) and deleted the Nextcloud account (despite of the warning that all the messages, contacts and other data will be lost). After deleting the account I went back to nextcloud app and created a new account. It works for me, and as far as I can tell I did not loose any files on the phone or on the server. |
I have same issue, stuck in login auth loop. |
Me to. Removing the account and recreating the account takes care of it (thx @ trawn-sh). Though I hope a new client can be released that automagicaly fixes the issue. I have several low-IT-capable users who can't do the account-trick themselves.... |
This comment has been minimized.
This comment has been minimized.
I can login on the web but app is not working. If I remove the user it will remove all my files? Anyway to avoid loss of user files? |
@shani149, remove and recreate the account on the smartphone/tablet, not on the server... |
@RDominique that worked, thanks for explaining. |
Worked for me also, many thanks Don't forget to re-enable any auto uploads, these were wiped for me after clearing the account |
Hello |
You have to manually copy anything missed from auto upload, only works on new files from when you reset the rules unfortunately |
Indeed unfortunately . This will be a nice feature to have I think . Also this will be nice for first install of apps to upload existing files on phone. |
I am also affected by this issue. I have tried to remove application tokens, but this hasn't helped. Any solution other than removing an account (which requires setting up auto uploads again, and I have lots of them)? |
Hey guys this is a serious problem — there are a lot of people affected and we're dead in the water. There are quite a few people that have made it to the issue tracker here, but also comments in the Play Store reviews section are starting to proliferate mentioning this issue. One common theme (but not, apparently, exclusive) is that many of them are using ActiveDirectry for their authentication backend. In my case I'm using LDAP, and a few people seem to have this issue on internally authenticated users. Is there anything we can do to expedite finding and fixing this? I believe this is the kind of bug that warrants and urgent hotfix point-release. I'm trying not to be too alarmist here, but even just considering my own troubles –as a long time user and advocate who has turned many people on to Nextcloud and hosts it for several teams– I am having to transfer files through other channels and am wondering about alternative platforms. |
Is there anything that we can do to help find a solution? It still bugs lots of users. |
I have the same problem and I have a lot of "low-IT-capable users", too, which encouter this problem. |
shouldn't this be labeled as "high"? |
I have this problem too. I tried reinstalling the app before coming to this thread and now I can't remove my Nextcloud account from "Accounts" because it isn't there... but I still can't login to my account. A new account works just fine. Does anyone know where any remaining data might be on my phone that I can delete manually? |
But have you modified docker-copose.yml ? Because there you are pointing to port 80 and not 443. |
What I quoted above are my modifications to the docker-compose.yml file, yes. The rules
tell traefik to accept HTTPS traffik on nextcloud.example.org from the Internet (line 3), and send it via HTTP to port 80 (line 2) on the docker container Yes, of course traeffik communicates via HTTP and not HTTPS with NextCloud over the virtual docker network on the local host, because traefik is the HTTPS terminator and traefik has the SSL certificate. NextCloud doesn't have the SSL certificate (!). That's the whole purpose of traefik: To take care of HTTPS, acquire all the necessary certificates from Let's Encrypt and refresh them routinely, and accept the traffic from the Internet, and forward the traffic internally as HTTP - the classic role of a HTTPS terminator. That's a completely standard configuration, nothing special here. |
@benbucksch okay, I see. But my guess is that it is the root of the problem. Like the app talks to traefik or HAproxy (in my case) or any other reverse proxy, gets SSL certificate, follows to the actual nextcloud server and it somehow signals, that it doesn't use SSL in fact. |
Well, okay, you can't do this, because included nginx apparently does not have any SSL certificate, nor is it set to listen on port 443. |
Yes, I think so as well. (That said, if even the creators of the standard docker image made this mistake, who should be the experts, then I'd argue that the configuration of NextCloud is the trip-wire here and NextCloud should detect this situation automatically, given the severity of the effects.) |
Its work well for me. docker-composeServices: TOMLdebug = false logLevel = "ERROR" [entryPoints] [docker] [acme] |
I recently set up NextCloud with Docker over the holidays and ran into this problem as well when I downloaded the Android app. I'm using the 2.x version of traefik so my setup is a little different but the same in principle (traefik with lets encrypt proxying my nextcloud instance with redirects for https). Setting up SSL redirects for the middleware in Traefik 2.x fixed the problem for me however and I was able to log in just fine without resorting to scanning a QR code. Here's the relevant section from my docker-compose file:
Not listed are the ENV variables I've set for TRUSTEDPROXIES, OVERWRITEHOST, and OVERWRITEPROTOCAL. I'm not sure this is ultimate solution but it does make sense based on Traefik being the http terminator. In my logs I can now see a clean 200 response for "GET /index.php/csrftoken HTTP/1.1" |
FWIW, not sure whether that matters, but I entered the |
This still seems to be an issue occasionally. Sometimes it'll say it can't connect repeatedly for no apparent reason. Other times it'll just throw you in a loop for a couple of rounds. It's kinda annoying. Sometimes I also get logged out. NextCloud Server: 20.0.7 running behind Nginx(all configured according to the docs) with php-fpm on Arch Linux. |
I fixed it!In my case I use nextcloud:apache reverse proxy nginx on vps and opened port e.g. 7443 I created ssl certificate like in this tutorial
And after that I logged in by login/pass successfullyIn the tutorial author used separate Dockerfile, but I don't need it at the moment. When I made like in this tutorial, I had permission denied to my database image, because I've created my users in DB and I didn't want to clean all the data and re-create it again. I'll make some script, that will run automatically after container creates P. S. Sorry for my broken English :) |
Hi all, Yestarday I got this anoying issue with my Nextcloud Android Client (version 3.18.0 RC1). Ultil yesterday,everything was fine. I can't find anything suspicios in log neither. My server is running SSL. There is a way to fix this issue? |
Hi @EasyNetDev! |
Hi @fanishe, Thanks for your sugestion. I'm in a death end. |
@EasyNetDev what is your configuration? What is your url? |
Hi @fanishe , My config.php looks like this:
csrf.optout I added this morning after I read other similar issues. And the apache config for nextcloud looks like this: /etc/apache2/sites-enabled/nextcloud:SSL.conf :
And the apache logs for access are this:
|
@EasyNetDev
|
@fanishe, Here is the output:
The certificates are good. On web I can login without issues.
|
@EasyNetDev try to change certificate's ownership from root:root to www-data:www-data. It should work |
Hi @fanishe, I'm 100% sure is not this. Nextcloud is not reading the certificate. Apache2 is the one which is reading the certificate. Anyway I tried your suggestion to change the owner and group to www-data:www-data and still is not working. Apache should complain about permissions for the certificates, not Nextcloud. Nextcloud is running under Apache2 -> PHP. Kind regards, |
This comment was marked as off-topic.
This comment was marked as off-topic.
same here, nextcloud client (android) and 401 auth. |
This comment has been minimized.
This comment has been minimized.
I have the same issue, I have followed the Traefik config provided in many different places (including the one provided earlier by @RMcNeely, thanks you!) I can login from Web, and From the Windows client, but the Android client seems broken and unable to login. I have done all the usual things, OVERWRITEHOST and PROTOCOLS are set, I have the TRUSTED PROXY set too, certificate valid, my config.php reflect those too, and I have no warnings in the overview It also eventually crashes: |
I occured the same issue and solved by adding a statement in config.php.
The reason why I think of this method is because I find when I download shared file, the link is start with 'http' instead 'https' used to. So I guess the new release has some issue in identifying a ssl connection which is a mandate for mobile app login. |
Closing this as it's quite old, hasn't seen new traffic >1 year, has multiple root causes mingled, was addressed, and too many things have changed. If you experience anything resembling this issue please open a dedicated issue with info on your environment/situation so it can be triaged appropriately. Thanks! |
After the latest update of yesterday, I can no longer login. The app keeps redirecting me to authorize my account.
The text was updated successfully, but these errors were encountered: