Nextcloud login works from one Android phone, fails from another when using Firefox

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 27.0.1
Operating system and version (eg, Ubuntu 20.04): Linux bullraspi 6.1.21-v8+
Apache or nginx version (eg, Apache 2.4.25): 2.4.56
PHP version (eg, 7.4): 8.1.21

The issue you are facing:
Firefox browser version 116.0 used to login from two different Android phones - works fine on one phone but the other phone returns to login page without logging in.

Is this the first time you’ve seen this error? (Y):

Steps to replicate it:

  1. Launch Firefox on Android phon
  2. Enter Nextcloud URL
  3. Enter login information

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

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

$CONFIG = array (
  'instanceid' => 'ocf7jxn61vvj',
  'passwordsalt' => 'PFdneMiqBV3NM/V+ZczRWgvFAE8R8Z',
  'secret' => '/2z40Fs7PuPC2p1t3m9wsoUddWtU0MsKIooTlKBNna44b/WX',
  'trusted_domains' =>
  array (
    0 => '??????????????',
  ),
  'datadirectory' => '/mnt/external/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '27.0.1.2',
  'overwrite.cli.url' => '?????????',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => '???????',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'preview_max_x' => 512,
  'preview_max_y' => 512,
  'jpeg_quality' => 60,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'app_install_overwrite' =>
  array (
    0 => 'duplicatefinder',
  ),
  'updater.release.channel' => 'stable',
  'memories.exiftool' => '/var/www/nextcloud/apps/memories/exiftool-bin/exiftool
-aarch64-glibc',
  'memories.vod.path' => '/var/www/nextcloud/apps/memories/exiftool-bin/go-vod-a
arch64',
  'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
  'memories.vod.ffprobe' => '/usr/bin/ffprobe',
  'memories.gis_type' => 1,
);

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

PASTE HERE

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

Browser add-ons perhaps?
What happens if you try it from a private tab?

Private tab worked - thanks for the suggestion. Can you explain why I needed to do that on one phone but not the other? There are no browser add-ons in either one.

Also, I would like to save a shortcut on the phone’s home page to jump directly to my Nextcloud site, but I cannot figure out how to do that from within a Firefox private tab. Any ideas?

Thanks again for pointing me in the right direction!

Not sure. Best guess is the problematic phone has some session data (stored in cookies) that is creating problems with the login authentication. In theory that’s the main difference with a private tab (it won’t have that session data). Fortunately that’s easy enough to test, by clearing your cookies associated with your Nextcloud URL on that phone.

I could not get it to work with Firefox on the one phone even with jtr’s help.

Ended up going through the Samsung Internet app which allowed the login and creation of a home page shortcut.