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

Account first login endless forward - server error oauthState undefined index #1325

Closed
AlexVienna opened this issue Aug 12, 2017 · 15 comments
Closed
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale.

Comments

@AlexVienna
Copy link

Actual behaviour

when I set up the device and account after entering the login credentials the system hangs saying forwarding ...
On the server an error is logged

Expected behaviour

Login working

Steps to reproduce

  1. Install RC2.0 from play store beta
  2. Enter server,then confirm device and grant access
  3. Enter login the press login button

Environment data

Android version: 7.0

Device model: huawei p9lite

Stock or customized system:stock

Nextcloud app version: Rc2.0.0

Nextcloud server version:12.0.0

Logs

Web server error log

Undefined index: oauthState at /var/www/nextcloud/core/templates/loginflow/authpicker.php#38
Then 2 times
Missing expected parameters in change user hook
Then
Login failed

Nextcloud log (data/nextcloud.log)

No log yet created

@tobiasKaminsky
Copy link
Member

As this is working an many devices/servers, I think this is a problem on your server.
Can you create us an test account on your server and mail the credentials to android at nextcloud dot com and link to this issue?

@tobiasKaminsky tobiasKaminsky added the needs info Waiting for info from user(s). Issues with this label will auto-stale. label Aug 14, 2017
@timmersr
Copy link

timmersr commented Aug 17, 2017

UPDATE (worked once, but problem still there)

I have the same issue and tried the new authentication and also reinstalling the client about 10 times.

It only works on one of my two 12.0.2 Nextcloud servers, and had an endless loop on the other trying to Grand Access. "Redirecting ...", then "No files present", then looped back to the Grand Access screen. Also, using the legacy app token method didn't work either.

This morning I reinstalled 2.0.0RC2 and now I was correctly prompted to allow Nextcloud access rights to my media. But during the day the login loop started again.

I will send you a test account so you can check yourself if the issue still exists.

Hope this helps and thanks for the great work.

Btw: in the Dutch translation there are some typo's and translation todo :
"Gedeel" should be "Gedeeld"
"Proberen om in the loggen" should be "Proberen om in te loggen"
"Preferences for auto uploading" should be "Voorkeurinstellingen voor automatisch uploaden"
"Daily backup of your contacts" should be "Dagelijkse backup van je contacten"
"toegang te verlenen to je ... account" should be "toegang te verlenen tot je ... account"

@AndyScherzinger
Copy link
Member

@timmersr thanks for the update, we are running short on Dutch translator, so if you have some time you can spend on translations, our translations are maintained here: https://www.transifex.com/nextcloud/nextcloud/android/ if you request access to this you can change any of the Dutch string and also add missing ones. :) No pressure though!

@timmersr
Copy link

timmersr commented Aug 17, 2017 via email

@AndyScherzinger
Copy link
Member

Thanks @timmersr - beware that after todays merges there will be some more new/changed Strings to be translated in transifex since we will merge bugfixes and what's new infos.

@AlexVienna
Copy link
Author

Hello Tobias,
sorry for the delay - was travelling ..
I just emailed the test account as requested
best regards
Alexander

@timmersr
Copy link

timmersr commented Aug 21, 2017

I can confirm that I have sabre/dav related issues on one of my servers. I'll make a backup, note all my settings and try to create a fresh Ubuntu/Nextcloud install while still keeping all my data. So for now, this topic no longer applies to me.

@Slevin7
Copy link

Slevin7 commented Aug 25, 2017

Is there any progress?
I get the same error as OP

@tobiasKaminsky
Copy link
Member

@AlexVienna I tested it with the emailed credentials and it is working for me.
Please try it with upcoming RC6 (tomorrow or monday)

@timmersr
Copy link

timmersr commented Sep 5, 2017

I'm unaware of what caused it, but it is solved now. As the new test-account had no issues at all, this was account-related. Something I could not influence,

So I created another user, rsync-ed all my files to the new account, reindexed my files, tried the 'account first login' and on success removed the old account.

@Heidistein
Copy link

Could you dive into what solver your issue? I am facing the same troubles...
Will look into Dutch translations when time permits. :)

@timmersr
Copy link

timmersr commented Sep 6, 2017

You can try my work-around to solve it.
If you execute it twice, you may even return to the current account name.

@Heidistein
Copy link

That is not really an option. First, it is an ldap user, so removing it mean lots of logins must change.
And migrating contacts and calendars (also using shares) is a pita too. Passman is doable.

@timmersr
Copy link

timmersr commented Sep 6, 2017

I just feel lucky that everything seems to work without having to reinstall and 'All checks passed' shows when I log on. Sorry that I can't help you; Nextcloud and Linux experience both do no run very deep with me.

@AlexVienna
Copy link
Author

Just could check with 2.0.0RC6 and working on 2 devices now without change on the server -- seems to be fixed at least for me - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale.
Projects
None yet
Development

No branches or pull requests

6 participants