No login form after upgrade from 23

Nextcloud version (eg, 20.0.5): 24.0.3
Operating system and version (eg, Ubuntu 20.04): ArchLinux 5.18.15
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.54
PHP version (eg, 7.4): 7.4.30

The issue you are facing:

After upgrading from 23 to 24.0.3 the login page does not show the login form anymore. Active sessions still work.
Tested on Windows with Firefox, Chrome and Edge, on Linux on Firefox and Chrome and on Android with Firefox and Chrome.
Any browser plugins disabled.

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

Steps to replicate it:

  1. upgrade from 23 to 24.0.3

The output of your Nextcloud log in Admin > Logging:

$ occ log:watch
  Debug    rainloop           /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:54+00:00

  Debug    keeweb             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:54+00:00

  Debug    gallery            /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:54+00:00

  Debug    carnet             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:54+00:00

  Debug    rainloop           /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:54+00:00

  Debug    keeweb             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:54+00:00

  Debug    gallery            /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:54+00:00

  Debug    carnet             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:54+00:00

  Debug    rainloop           /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    keeweb             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    gallery            /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    carnet             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    rainloop           /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    keeweb             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    gallery            /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    carnet             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:54+00:00

  Debug    rainloop           /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    keeweb             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    gallery            /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    carnet             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    carnet             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    gallery            /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

  Debug    carnet             /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                                                                                                          2022-07-31T08:27:55+00:00

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

<?php
$CONFIG = array (
  'instanceid' => 'REMOVED',
  'passwordsalt' => 'REMOVED',
  'secret' => 'REMOVED',
  'trusted_domains' =>
  array (
    0 => 'REMOVED',
    1 => 'REMOVED',
    2 => 'REMOVED',
  ),
  'datadirectory' => '/usr/share/webapps/nextcloud/data',
  'overwrite.cli.url' => 'https://REMOVED',
  'dbtype' => 'mysql',
  'version' => '24.0.3.2',
  'dbname' => 'REMOVED',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'REMOVED',
  'dbpassword' => 'REMOVED',
  'logtimezone' => 'UTC',
  'installed' => true,
  'mysql.utf8mb4' => true,
  'updater.release.channel' => 'stable',
  'theme' => '',
  'loglevel' => 0,
  'mail_smtpmode' => 'smtp',
  'mail_from_address' => 'REMOVED',
  'mail_domain' => 'REMOVED',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'localhost',
  'mail_smtpport' => '25',
  'mail_smtpname' => 'REMOVED',
  'mail_smtppassword' => 'REMOVED',
  'default_phone_region' => 'DE',
  'app.mail.imap.timeout' => 20,
  'app.mail.smtp.timeout' => 2,
  'appstoreenabled' => true,
  'defaultapp' => 'files',
  'default_language' => 'de',
  'default_locale' => 'de_DE',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '127.0.0.1',
    'port' => 6379,
  ),
  'has_rebuilt_cache' => true,
  'encryption.legacy_format_support' => false,
  'maintenance' => false,
);

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

"GET /index.php/login HTTP/2.0" 200 7565
"GET /index.php/apps/theming/styles?v=14 HTTP/2.0" 304 -
"GET /index.php/apps/accessibility/css/user-a82fd95db10ff25dfad39f07372ebe37 HTTP/2.0" 200 30570
"GET /index.php/js/core/merged-template-prepend.js?v=44abdcc9-14 HTTP/2.0" 200 3086
"GET /index.php/apps/ojsxc/js/config HTTP/2.0" 200 211
"GET /index.php/svg/core/logo/logo?color=ffffff&v=1 HTTP/2.0" 200 818
"GET /dist/core-common.js?v=44abdcc9-14 HTTP/2.0" 200 9077846

I have the same problem.
logins are not working from Webbrowser any more.

I can use Android app, i can mount my account with gnome online-accounts, can up and download files via this two ways, but login via webbrowser is not possible.

I tried it with local user and ldap-user, i deactivated the ldap-plugin, i tried it with hardware-token (nitrokey), but i always be redirected to the login-page.

nextcloud.log says only “User not authenticated” - in debug-mode.

when i try webauthn and click on login, i get in nginx
" http fastcgi header: "Status: 412 Precondition failed""

I tried Firefox, Firefox on android, firefox klar, chromium on linux, mull on android.

Something seems broken in the Webfrontend

# sudo -u www-data php occ status
  - installed: true
  - version: 24.0.3.2
  - versionstring: 24.0.3
  - edition: 
  - maintenance: false
  - needsDbUpgrade: false
  - productname: Nextcloud
  - extendedSupport: false

The installation gets more and more useless as browser sessions run out…starting to not being viable to run anymore.
24.0.4RC1 does not fix it.

I deleted everything except data/ and config/ .
Then I reinstalled the archive and all apps.

In case I have to do it again, here is a bash script.

#!/bin/bash
ncpath=/usr/share/webapps/nextcloud
ncusr=http
ncver=24.0.4

cd "$ncpath" || (echo "path not found" >&2 ; exit 1)
[ $? -ne 0 ] && exit 1
[ -f "${ncpath}/../nextcloud-${ncver}.tar.bz2" ] || (echo "nextcloud-${ncver}.tar.bz2 not found" >&2 ; exit 1)
[ $? -ne 0 ] && exit 2
id $ncusr >/dev/null || exit 3

function occ() {
  cd "$ncpath"
  sudo -u ${ncusr} ${ncpath}/occ $*
}

cd ..
rsync -avz --exclude data/ "${ncpath}" "${ncpath%/}.bak$(date +'%Y%m%d%H%M%S')"

cd "$ncpath"
occ app:list --shipped=false | \
  awk '1;/Disabled:/{exit}' | \
  sed -e '/abled:$/ d' -e 's/^[ ]*- \([a-zA-Z_]*\):.*$/\1/' > ../old.applist

for x in $(ls | grep -v '^(data|config)$')
do
  rm -r "$x"
done

cd ..
tar xvf nextcloud-${ncver}.tar.bz2

cd nextcloud
chmod 755 occ
chown ${ncusr}:${ncusr} -R .
for app in $(cat ../old.applist)
do
  occ app:install $app
done