Android app redirects to Dashboard after login without adding the account

Nextcloud version: 23.0.4
Operating system and version: Manjaro Linux for the server, Android 10 on the client
Apache or nginx version: Apache 2.4.53 on the internal server, proxied via nginx 1.20.2
PHP version: 8.0.14

Steps to replicate it:

  1. Uninstalled and reinstalled the existing Android app
  2. Log into Nextcloud (tried both with standard credentials and SAML SSO)

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'debug' => true,
  'instanceid' => '******',
  'passwordsalt' => '******',
  'secret' => '*******',
  'trusted_domains' => array (
      # ...
  ),
  'trusted_proxies' => array (
    1 => 'ip of my nginx proxy',
  ),
  'datadirectory' => '/data/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '23.0.4.1',
  'overwrite.cli.url' => 'http://local-address/nextcloud',
  'overwritehost' => 'cloud.fabiomanganiello.com',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => '********',
  'installed' => true,
  'app_install_overwrite' => array (
    0 => 'files_external_dropbox',
    1 => 'files_external_gdrive',
  ),
  'maintenance' => false,
  'allow_local_remote_servers' => true,
  'mail_from_address' => 'noreply',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'mail domain',
  'mail_smtphost' => 'mail host',
  'mail_smtpauth' => 1,
  'mail_smtpport' => 'smtp port',
  'mail_smtpname' => 'mail name',
  'mail_smtppassword' => '*******',
  'theme' => '',
  'loglevel' => 0,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 1.5,
  ),
  'has_rebuilt_cache' => true,
  'app.mail.verify-tls-peer' => false,
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpstreamoptions' => array (
    'ssl' =>
    array (
      'allow_self_signed' => true,
      'verify_peer' => false,
      'verify_peer_name' => false,
    ),
  ),
  'enable_previews' => true,
  'enabledPreviewProviders' => array (
    0 => 'OC\\Preview\\Movie',
    1 => 'OC\\Preview\\PNG',
    2 => 'OC\\Preview\\JPEG',
    3 => 'OC\\Preview\\GIF',
    4 => 'OC\\Preview\\BMP',
    5 => 'OC\\Preview\\XBitmap',
    6 => 'OC\\Preview\\MP3',
    7 => 'OC\\Preview\\MP4',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
    10 => 'OC\\Preview\\PDF',
  ),
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'default_phone_region' => 'nl',
);

The output of your Apache/nginx/system log in /var/log/____:

No relevant errors (login is successful)

Description

After logging in to my server through the Android app, I simply get redirected to the NC dashboard.

No NC account is added on my device, the usual app files view isn’t there, and when I restart the app I just get prompted with the login screen again.

Edit

Not sure if it’s relevant, but since I last logged in on this device I have added support for both 2FA and SAML SSO to my account. Could it be related?

2 Likes

we experience the same issue…

Do you see any errors in the nextcloud.log?

The file is inside your datadirectory. From your config.php:

'datadirectory' => '/data/nextcloud/data',

Thus, the log file should be located here:

/data/nextcloud/data/nextcloud.log

I dont have any errors in my logs

Does the problem exist only with the Android app or also with the iOS app or the desktop client?

In our case, it only occurs on android and ios app. Desktop app is working as expected.

Any update on this topic? Error still occurs…