Cannot login in my login screen

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): 23.0.7
Operating system and version (eg, Ubuntu 20.04): 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.52
PHP version (eg, 7.4): 7.4

The issue you are facing:
Cannot login.

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

Steps to replicate it:

  1. Upgrade Nextcloud
  2. Upgrade Ubuntu

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!):

cat config.php 
<?php
$CONFIG = array (
  'instanceid' => '***',
  'passwordsalt' => '***',
  'secret' => '***',
  'trusted_domains' => 
  array (
    0 => '***',
    1 => '***',
    2 => 'localhost',
  ),
  'allow_local_remote_servers' => true,
  'datadirectory' => '/var/www/nextcloud.ese/data',
  'dbtype' => 'mysql',
  'version' => '23.0.7.2',
  'overwrite.cli.url' => '***',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '3306',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud_user',
  'dbpassword' => '***',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'smtp.u-psud.fr',
  'mail_smtpsecure'   => 'tls',
  'mail_smtpdebug' => true,
  'memcache.local' => '\OC\Memcache\APCu',
  'integrity.check.disabled' => false,
  'maintenance' => false,
  'mysql.utf8mb4' => true,
  'trashbin_retention_obligation' => 'auto',
'appcodechecker' => true,
'updatechecker' => true,
'check_data_directory_permissions' => true,
'enable_previews' => true,
  'updater.secret' => '***',
  'simpleSignUpLink.shown' => false,
  'htaccess.IgnoreFrontController' => true,
  'log_type' => 'errorlog',
  'logfile' => '/var/log/nextcloud.log',
  'logfile_audit' => '/var/log/audit.log',
  'loglevel' => 3,
  'htaccess.RewriteBase' => '/',
  'debug' => true,
);

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.

i cannot see any errors nowhere

Hi @eileon, can you describe your issue with screenshot and errors in nextcloud.log. We can’t help you without these informations.

Hi,
i cannot enter when i log in. No message of password incorrect (i have resetted password with occ reset so my password is ok). When i try to reinitialize my pasword i get the message : Impossible to send the reinitialization e-mail.(another problem)

Strangely i cannot go on the login page from the local machine. I can go on it only from elsewhere. (another problem)

No nextcloud.log visible even with ‘log_type’ => ‘file’, in config file

My occ commands works
I can view files from this files server
But i cannot login : i stay on my login page

i saw also
sudo -u www-data php occ integrity:check-core

  • INVALID_HASH:
    • .htaccess:
      • expected: aab002636038627a549cdc33b749fe7ef74fcbb2a52decf1af0b4c90394d869d982dd7a2d3ce72d1d5114b21aa73cb35ddb6c8b54760ca0e7347e7b26760d6ab
      • current: c9f4cc090842606d1d6f8bc8c75ce75b415a686cc0eb31f0006cedf88382dd51d0fa63ac56b0130ed115bef5a9d59a7194879311d9eb46f368be81a6d36a047c
        maybe in relation …

Going further i remenber to have commented out some lines in .htaccess. i went back to old config

And now i can login again !

1 Like