Nextcloud version 14.0.5 (installed from Snap)
Operating system and version Ubuntu 18.04
Apache or nginx version 2.4.29
PHP version 7.2+60ubunt
The issue you are facing: When setting up the Android app I get:
Access Forbidden
Invalid Request
Is this the first time you’ve seen this error? It’s always happened from the first time I tried to connect the Nextcloud Android app to my server
Steps to replicate it:
- Start Nextcloud app
- Login using username/password
- Provide the TOTP key from Google Authenticator (my Nextcloud has MFA enabled)
- Click ‘Grant Access’
The output of your Nextcloud log in Admin > Logging:
|Error|PHP|include(): Failed opening 'State token does not match' for inclusion (include_path='/snap/nextcloud/10791/htdocs/3rdparty/pear/archive_tar:/snap/nextcloud/10791/htdocs/3rdparty/pear/console_getopt:/snap/nextcloud/10791/htdocs/3rdparty/pear/pear-core-minimal/src:/snap/nextcloud/10791/htdocs/3rdparty/pear/pear_exception:/snap/nextcloud/current/htdocs/apps:/var/snap/nextcloud/current/nextcloud/extra-apps') at /snap/nextcloud/10791/htdocs/lib/private/Template/Base.php#179|2019-01-17T07:44:44+1100|
|---|---|---|---|
|Error|PHP|include(State token does not match): failed to open stream: No such file or directory at /snap/nextcloud/10791/htdocs/lib/private/Template/Base.php#179|2019-01-17T07:44:44+1100|
|Error|PHP|include(): Failed opening 'State token does not match' for inclusion (include_path='/snap/nextcloud/10791/htdocs/3rdparty/pear/archive_tar:/snap/nextcloud/10791/htdocs/3rdparty/pear/console_getopt:/snap/nextcloud/10791/htdocs/3rdparty/pear/pear-core-minimal/src:/snap/nextcloud/10791/htdocs/3rdparty/pear/pear_exception:/snap/nextcloud/current/htdocs/apps:/var/snap/nextcloud/current/nextcloud/extra-apps') at /snap/nextcloud/10791/htdocs/lib/private/Template/Base.php#179|2019-01-17T07:44:44+1100|
|Error|PHP|include(State token does not match): failed to open stream: No such file or directory at /snap/nextcloud/10791/htdocs/lib/private/Template/Base.php#179|2019-01-17T07:44:44+1100|
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'apps_paths' =>
array (
0 =>
array (
'path' => '/snap/nextcloud/current/htdocs/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
'url' => '/extra-apps',
'writable' => true,
),
),
'supportedDatabases' =>
array (
0 => 'mysql',
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/tmp/sockets/redis.sock',
'port' => 0,
),
'passwordsalt' => '1234',
'secret' => '1234',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'cloud.timsstuff.eu',
),
'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
'overwrite.cli.url' => 'http://localhost',
'dbtype' => 'mysql',
'version' => '14.0.5.2',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '1234',
'installed' => true,
'instanceid' => '1234',
'loglevel' => 2,
'maintenance' => false,
);
The output of your Apache/nginx/system log in /var/log/____
:
(nothing from today)