"Remember me" checkbox missing

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, 18.0.2): 19.0.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.41
PHP version (eg, 7.1): 7.4.3
FYI, I installed Nextcloud using the VM script.

The issue you are facing: The “Remember me” checkbox in the login screen is missing. As a result, I have to enter my credentials and 2FA code every time I log into the web interface.

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

Steps to replicate it:

  1. Log into web interface
  2. Close browser
  3. Log in again

I have External Storage, LDAP user and group backend, and Default encryption module disabled.

The output of your Nextcloud log in Admin > Logging:

(the file is really really long (2.8MB), lmk if I should include it)

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

<?php
$CONFIG = array (
  'passwordsalt' => '---',
  'secret' => '---',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '---',
    2 => '---',
    3 => '---',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '19.0.1.1',
  'overwrite.cli.url' => '---',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '---',
  'dbpassword' => '---',
  'installed' => true,
  'instanceid' => '---',
  'upgrade.disable-web' => 'true',
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => '2',
  'log.condition' => 
  array (
    'apps' => 
    array (
      0 => 'admin_audit',
    ),
  ),
  'mail_smtpmode' => 'smtp',
  'remember_login_cookie_lifetime' => 60*60*24*15,
  'session_lifetime' => 60*60*24,
  'session_keepalive' => true,
  'log_rotate_size' => '10485760',
  'trashbin_retention_obligation' => 'auto, 180',
  'versions_retention_obligation' => 'auto, 365',
  'simpleSignUpLink.shown' => 'false',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 0,
    'password' => '---',
  ),
  'logtimezone' => 'Etc/UTC',
  'htaccess.RewriteBase' => '/',
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\MarkDown',
    5 => 'OC\\Preview\\MP3',
    6 => 'OC\\Preview\\TXT',
    7 => 'OC\\Preview\\Movie',
    8 => 'OC\\Preview\\Photoshop',
    9 => 'OC\\Preview\\SVG',
    10 => 'OC\\Preview\\TIFF',
  ),
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'maintenance' => false,
  'app_install_overwrite' => 
  array (
    0 => 'checksum',
    1 => 'files_markdown',
  ),
  'mail_from_address' => '---',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '---',
  'mail_smtphost' => '---',
  'mail_smtpauth' => ---,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpport' => '---',
  'mail_smtpsecure' => '---',
  'mail_smtpname' => '---',
  'mail_smtppassword' => '---',
);

The output of your Apache/nginx/system log in /var/log/apache2/error.log:

[Fri Jul 31 00:00:02.140377 2020] [mpm_event:notice] [pid 1056:tid 139775310232640] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Fri Jul 31 00:00:02.140400 2020] [core:notice] [pid 1056:tid 139775310232640] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jul 31 04:53:57.383721 2020] [core:error] [pid 10287:tid 139774966724352] [client 193.174.89.19:44460] AH00126: Invalid URI in request GET stager64 HTTP/1.1
[Fri Jul 31 04:53:57.586954 2020] [core:error] [pid 10213:tid 139774975125248] [client 193.174.89.19:44524] AH00126: Invalid URI in request GET stager HTTP/1.1
[Fri Jul 31 10:10:24.563857 2020] [access_compat:error] [pid 10287:tid 139774576801536] [client 192.168.1.1:41992] AH01797: client denied by server configuration: /var/www/nextcloud/config
[Fri Jul 31 10:15:52.560979 2020] [access_compat:error] [pid 10287:tid 139773939283712] [client 192.168.1.1:38602] AH01797: client denied by server configuration: /var/www/nextcloud/config
[Fri Jul 31 12:38:17.008054 2020] [mpm_event:notice] [pid 1056:tid 139775310232640] AH00491: caught SIGTERM, shutting down
[Fri Jul 31 12:38:17.055930 2020] [mpm_event:notice] [pid 17958:tid 140445690063936] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Fri Jul 31 12:38:17.056004 2020] [core:notice] [pid 17958:tid 140445690063936] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jul 31 12:38:30.600183 2020] [mpm_event:notice] [pid 17958:tid 140445690063936] AH00491: caught SIGTERM, shutting down
[Fri Jul 31 12:40:29.784146 2020] [mpm_event:notice] [pid 1072:tid 140137584954432] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Fri Jul 31 12:40:29.785705 2020] [core:notice] [pid 1072:tid 140137584954432] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jul 31 12:40:56.460434 2020] [access_compat:error] [pid 1073:tid 140136729802496] [client 37.120.138.180:22478] AH01797: client denied by server configuration: /var/www/nextcloud/config
[Fri Jul 31 12:41:23.021143 2020] [proxy_fcgi:error] [pid 1073:tid 140136713017088] [client 127.0.0.1:56594] AH01071: Got error 'PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253PHP message: PHP Warning:  fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 253'

Any solution to this? After some update I am facing this issue as well but I have no idea how to try and fix it. The cookies are being set correctly but the session does not persist.

Hi @qwazix

“Remember me” ist the default behavior since this checkbox OP mentioned was removed. Maybe too obvious of a question: but are you sure you haven’t accidentally checked the “Delete cookies and site data when the browser is closed” checkbox or similar in the settings of your browser?

Also check your config.php, if there are any parameters like ‘auo_logout’, ‘session_keepalive’ and ‘session_lifetime’. Remove them or set them to appropriate values.

https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html#user-experience

Hope that helps…

1 Like

Yes, I’m not deleting cookies. All other sites (including this one, and my work nextcloud installation, which I also manage) remain logged in.

I did not edit config.php and the only relevant value in there is

'remember_login_cookie_lifetime' => 100000000,

which I guess is correct. I can also see the firefox sessions in the security settings page of nextcloud but I still need to log in each time.

The number should actually be high enough. However, values in the documentation are entered as 60*60*24*15. No idea if it should work with absolute values.

Apart from that, have you ever tried to delete all relevant entries? The defaults should normaly be high enough. For me it works without any of these configuration parameters in the config.php.

1 Like

yep, I tried deleting everything, it still logs me out :confused:

The only thing I can think about is that I have a hacked version of the old gallery app installed (because the new photos is crashing my apache) but I have it this way long before the remember me glitch appeared.