Unable to log in to the admin area with correct username/password

Nextcloud version (eg, 20.0.5): 18.0.3
Operating system and version (eg, Ubuntu 20.04): I don't know, I rent a shared server for web hosting
Apache or nginx version (eg, Apache 2.4.25): 2.4
PHP version (eg, 7.4): 7.2

The issue you are facing:
I can’t log in to the administration area with the correct username and password. I don’t get any error message, the login wheel keeps spinning. The last time I tried (more or less 12 months ago), I had no problems.
Note that I can log in to the user areas without any problems.
I confess that I’m totally lost with this issue, I really don’t know where to investigate. Any help would be welcome.

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

Steps to replicate it:

  1. go the login page
  2. try to connect with your admin username/passsword
  3. wait, wait and wait until you are sure that nothing happens

The output of your Nextcloud log in Admin > Logging:

I cannot access to the admin area

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

<?php
$CONFIG = array (
  'instanceid' => 'XXX',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' => 
  array (
    0 => 'XXX',
  ),
  'datadirectory' => '/srv/data/web/vhosts/XXX',
  'dbtype' => 'mysql',
  'version' => '18.0.3.0',
  'overwrite.cli.url' => 'XXX',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'XXX',
  'dbpassword' => 'XXX',
  'installed' => true,
  'mail_from_address' => 'admin',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'XXX',
  'mail_smtphost' => 'mail.gandi.net',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'XXX',
  'mail_smtppassword' => 'XXX',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => false,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' => 
  array (
    0 => 'occweb',
    1 => 'ojsxc',
  ),
  'has_rebuilt_cache' => true,
);

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

[Mon Sep 27 07:26:31.778223 2021] [access_compat:error] [pid 18795:tid 139844470503168] [client 176.157.123.14:65316] AH01797: client denied by server configuration: /srv/data/web/vhosts/XXX/htdocs/config
[Mon Sep 27 07:59:13.710140 2021] [mpm_event:notice] [pid 134:tid 139845111453248] AH00493: SIGUSR1 received.  Doing graceful restart
[Mon Sep 27 07:59:13.723112 2021] [mpm_event:notice] [pid 134:tid 139845111453248] AH00489: Apache/2.4.43 (Unix) configured -- resuming normal operations
[Mon Sep 27 07:59:13.723132 2021] [core:notice] [pid 134:tid 139845111453248] AH00094: Command line: '/opt/apache2-2.4/usr/sbin/apache2 -d /srv/data/.config/apache -f apache2.conf'
[Mon Sep 27 07:59:14.231925 2021] [mpm_event:notice] [pid 134:tid 139845111453248] AH00493: SIGUSR1 received.  Doing graceful restart
[Mon Sep 27 07:59:14.250557 2021] [mpm_event:notice] [pid 134:tid 139845111453248] AH00489: Apache/2.4.43 (Unix) configured -- resuming normal operations
[Mon Sep 27 07:59:14.250578 2021] [core:notice] [pid 134:tid 139845111453248] AH00094: Command line: '/opt/apache2-2.4/usr/sbin/apache2 -d /srv/data/.config/apache -f apache2.conf'

Please post your fully url and a few screenshots. You can modify the urls like this:
https://cloud.server.tld/
Username: admin

What is this for a url?
Or what is this for a directory?
https://server.tld/config
That makes no sense.

Thank you for having a look on my issue.
The URL is of my NC instance is: https://cumulus.laspic.eu/index.php/login
Here is a link for a screenshot, but there is nothing to see on it : the login wheel just keep spinning and spinning…

I’m sorry, I don’t understand what makes no sense and what you are asking.
I have just copy-pasted the logs and blackened with XXX the name of the folder which contained the domain name in the path (which was exactly, if you need to know : cumulus.laspic.eu)

I think the log file does not really belong to your problem.

Back to your problem.

Is there an admin-user? Perhaps you can reset the password on login screen (forget password option).
Also perhaps your second user is in the admin group and can use administration (apps, users, configuration, …)

Also you can set the password in terminal with occ. But i i think you have no access.
Read this but it think it does not help you.

I tried to reset the password as you suggested:

  • entering a wrong password to get the password reset link ;
  • choosing a new password : successful :white_check_mark:
  • trying to open the admin area with the new password : unsuccessful :x:

The problem remains the same: the loading wheel never stops to spin, and no page loads (and no error message is displayed).

Do you have JavaScript XMPP Chat - Apps - App Store - Nextcloud installed on your Nextcloud? If yes, disable it via OCC command and try again…

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#apps-commands

1 Like

Wonderful! Problem solved! I would never have thought of a plugin issue.
A million of thanks. :ok_hand:

1 Like