Access Forbidden State token Missing iOS app

This is happening to me on Android 14.

Edit: Not sure what exactly solved this, but I added OVERWRITEPROTOCOL: https to my docker-compose.yaml and changed the URL from using http to https at Administration settings > Nextcloud Office. Then, it worked.

I confirm that jphanfire’s suggestion of adding " ā€˜overwriteprotocol’ => ā€˜https’, " in the config file worked for me.

this worked for me too, thank you :slight_smile:

Already setup to redirect https. What is odd is I also have an iphone and it works perfectly fine. The wife’s phone was a new phone she got. She is on iOS 18.3.2 I am in the same iOS. How do I add the logfile?

$CONFIG = array (
  'datadirectory' => '/data',
  'instanceid' => 'blah',
  'passwordsalt' => 'blah blah',
  'secret' => 'blah',
  'trusted_domains' =>
  array (
    0 => '192.168.1.1:123',
    1 => 'nextcloud.mydomain.com',
  ),
  'trusted_proxies' =>
  array (
    0 => '172.18.0.4',
  ),
  'default_phone_region' => 'US',
  'dbtype' => 'mysql',
  'version' => '31.0.4.1',
  'overwrite.cli.url' => 'https://nextcloud.mydomain.com',
  'overwritehost' => 'nextcloud.mydomain.com',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => '192.168.1.1',
  'dbport' => '3306',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'yak',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\APCu',
  'upgrade.disable-web' => false,
  'mail_from_address' => 'joe',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'yahoo.com',
  'mail_smtphost' => 'smtp.mail.yahoo.com',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'joe',
  'mail_smtppassword' => 'yak',
  'maintenance' => false,
  'tempdirectory' => '/nextcloud_tmp',
  'theme' => '',
  'loglevel' => 2,
  'log_type' => 'file',
  'logfile' => '/nextcloud_tmp/nextcloud.log',
  'log_rotate_size' => '104857600',
  'maintenance_window_start' => 1,
  'files.chunked_upload.max_size' => 0,
);

I couldnt figure out how to add the logfile. Since logfiles do not look like they are supported for upload

I tested the 6.6.0 and 6.6.1 versions of the app on the simulator in ios18.4 and it worked very well.
Even without any overwrite set, it still works fine.
However, using ios18.2’s iPad and 18.5rc’s iPhone, there will still be a problem of token missing.
Very frustrating

Hey, to be sure, the same server and the same account works on simulator 18.4, but fails on real devices?

Yes, in the end I had to use the QR code to log in on the real device.

Thank you! This worked for me as will. I saved the QR code as a screenshot and it worked on my other iDevices.

Yes worked well

QR code also worked for the wife.

Just for the record: The ā€œstate token missingā€ problem is still under investigation internally. While app passwords and QR codes pose a viable workaround, we are still pursuing the actual solution to this problem due to the increasing number of reports.

3 Likes

Good to hear hope you folks get it sorted.

1 Like

Thank you, I am also experiencing this problem.

I have installed two instances, one for work, one for family.

NC family has the state token missing, NC work runs without problems

  1. How do the instances differ in their setup and configuration? What kind of deployment are your Nextclouds? In example: Our all-in-one.
  2. Can you please describe precisely how your login process looks like? I assume you use standard internal Nextcloud users. Do you have two-factor authentication enabled? When do you observe the error message?
1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.