Can't login after migration

Nextcloud version (eg, 12.0.2): 17.0.1.1
Operating system and version (eg, Ubuntu 17.04): Debian
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1): 7.3.11

The issue you are facing:

When I try to log in, the logging in animation plays and then I will be redirected to the login page, without logging in.
Also the logs are totally empty, but work eg. when using occ (which also works). I disabled all apps, wich didn’t fix the issue either.

The output of your Nextcloud log in Admin > Logging:


The output of your config.php file in /path/to/nextcloud

$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'example.org',
    1 => 'example.com',
  ),
  'onlyoffice' => 
  array (
    'verify_peer_off' => true,
  ),
  'datadirectory' => '/path/data',
  'dbtype' => 'mysql',
  'version' => '17.0.0.9',
  'dbname' => 'dbname',
  'dbhost' => '1.2.3.4',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'dbuser',
  'dbpassword' => '***',
  'installed' => true,
  'lost_password_link' => 'example2.com',
  'skeletondirectory' => '',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => 'cloud',
  'mail_domain' => 'example.com',
  'mail_smtphost' => 'smtp.sendgrid.net',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'user',
  'mail_smtppassword' => '123',
  'app_install_overwrite' => 
  array (
    0 => 'files_clipboard',
    1 => 'apporder',
    2 => 'forms',
    3 => 'occweb',
  ),
);

I solved it myself, there was an issue with the PHP Session Path. I don’t know any more details as this instance is run on shared hosting and my hosting provider did the fix; bit I recon it was this one: https://www.ryadel.com/en/nextcloud-13-login-page-redirect-loop-how-to-fix-it/

1 Like

Hi @puffin:

Can you post/write here how do you resolve it?
The ryadel website is down.

Thanks by advance!