Android: Account first login endless forward - server error oauthState undefined index

Created on 12 Aug 2017  路  15Comments  路  Source: nextcloud/android

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

bug needs infdiscussion

Most helpful comment

Hi Andy,

Thanks, I鈥檝e signed up and will do my best.

Best regards,
Rick Timmers

All 15 comments

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?

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"

@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!

Hi Andy,

Thanks, I鈥檝e signed up and will do my best.

Best regards,
Rick Timmers

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.

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

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.

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

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

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.

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

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

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.

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.

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JSoko picture JSoko  路  3Comments

toobie83 picture toobie83  路  3Comments

rainer042 picture rainer042  路  3Comments

eppfel picture eppfel  路  3Comments

Bugsbane picture Bugsbane  路  3Comments