User is already logged in

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 18.0.3 :
Operating system and version Univention :
Apache or nginx version Apache 2.4.29 :
PHP version 7.2.24 :

The issue you are facing: User is already logged in error

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

Steps to replicate it:

  1. Log in with any browser
  2. close browser
  3. next login shows 'User is already logged in.
  4. user has to erase cookies in browser to get login screen again.

The output of your Nextcloud log in Admin > Logging:

Error	no app in context	OCA\Talk\Exceptions\RoomNotFoundException: 	
2020-04-07T11:20:00-0500
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "photos.page.index" as such route does not exist.	
2020-04-07T10:59:00-0500
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.	
2020-04-07T10:59:00-0500
Error	index	OC\ServerNotAvailableException: Lost connection to LDAP server.	
2020-04-07T10:58:59-0500
Error	PHP	ldap_start_tls(): Unable to start TLS: Can't contact LDAP server at /var/www/html/apps/user_ldap/lib/LDAP.php#310	
2020-04-07T10:58:59-0500
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "photos.page.index" as such route does not exist.	
2020-04-07T10:43:37-0500
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.	
2020-04-07T10:43:37-0500
Error	index	OC\ServerNotAvailableException: Lost connection to LDAP server.	
2020-04-07T10:43:37-0500
Error	PHP	ldap_start_tls(): Unable to start TLS: Can't contact LDAP server at /var/www/html/apps/user_ldap/lib/LDAP.php#310	
2020-04-07T10:43:37-0500
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "photos.page.index" as such route does not exist.	
2020-04-07T10:43:31-0500
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.	
2020-04-07T10:43:31-0500
Error	index	OC\ServerNotAvailableException: Lost connection to LDAP server.	
2020-04-07T10:43:31-0500
Error	PHP	ldap_start_tls(): Unable to start TLS: Can't contact LDAP server at /var/www/html/apps/user_ldap/lib/LDAP.php#310	
2020-04-07T10:43:31-0500
Error	PHP	Error: Call to undefined method OC\ServerNotAvailableException::getResult() at /var/www/html/ocs/v1.php#71	
2020-04-07T10:42:08-0500
Error	PHP	ldap_start_tls(): Unable to start TLS: Can't contact LDAP server at /var/www/html/apps/user_ldap/lib/LDAP.php#310	
2020-04-07T10:42:08-0500
Error	PHP	Error: Call to undefined method OC\ServerNotAvailableException::getResult() at /var/www/html/ocs/v1.php#71	
2020-04-07T10:12:42-0500
Error	PHP	ldap_start_tls(): Unable to start TLS: Can't contact LDAP server at /var/www/html/apps/user_ldap/lib/LDAP.php#310

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

<?php
$CONFIG = array (
  'passwordsalt' => 'xx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'app1.erlphase.com',
    1 => '192.168.100.22',
    2 => 'nextcloud.erlphase.com',
  ),
  'datadirectory' => '/var/lib/univention-appcenter/apps/nextcloud/data/nextcloud-data',
  'dbtype' => 'pgsql',
  'version' => '18.0.3.0',
  'overwrite.cli.url' => 'https://app1.erlphase.com/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => '172.17.42.1:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxx',
  'installed' => true,
  'instanceid' => 'oc8dmek5ah6x',
  'updatechecker' => false,
  'upgrade.disable-web' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'overwriteprotocol' => 'https',
  'overwritewbroot' => '/nextcloud',
  'htaccess.RewriteBase' => '/nextcloud',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'trusted_proxies' => 
  array (
    0 => '172.17.42.1',
  ),
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'noreply',
  'mail_domain' => 'xxx',
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => '25',
);

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

PASTE HERE