Infinite Login Loop after server migration

Nextcloud version (eg, 20.0.5): 22.2.0.2
Operating system and version (eg, Ubuntu 20.04): Debian 10
Apache or nginx version (eg, Apache 2.4.25): 2.4.51-1
PHP version (eg, 7.4): 7.4

The issue you are facing:

I had a fatal Hardware fail and therefore needed to migrate my nextcloud install to a new server.
I’ve backed up and restored my nextcloud instance as described in the Admin manual.

Everything wen’t well. I thought it would be a good thing to change my webserver from nginx to apache2, so I just installed and configured apache2 as described in the docs.
The instance was in maintenance mode the whole time and was reachable with the known “nextcloud is in maintenance mode” site.
Therefore I thought everything was fine and I was done migrating, disabled maintenance mode just to find out, that I can’t reach the site anymore without maintenance mode.

It just keeps reloading the /login page forever.
I’ve searched the nextcloud.log, which gave me nothing but a few level 0 debug warnings about a deprecated app.
Apache2 access and error logs also don’t show anything that could be related to the issue.
Are there PHP logs that could help me with this error?

The output of your Nextcloud log in Admin > Logging:

can't reach the site, but this is the latest nextcloud log:

{"reqId":"A5qZBhXNFeqBcnImLCGI","level":1,"time":"2021-11-13T12:30:29+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Unable to generate a URL for the named route \"phonetrack.page.index\" as such route does not exist.","userAgent":"Mozilla/5.0>
{"reqId":"A5qZBhXNFeqBcnImLCGI","level":1,"time":"2021-11-13T12:30:29+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent":"Mozilla/>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"ocs.files.DirectEditing.info\" as such route does not exist.","userAg>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"cloud_federation_api.RequestHandler.addShare\" as such route does not>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"ocs.password_policy.API.generate\" as such route does not exist.","us>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.","us>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"activity.Activities.showList\" as such route does not exist.","userAg>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"calendar.view.index\" as such route does not exist.","userAgent":"Moz>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"contacts.page.index\" as such route does not exist.","userAgent":"Moz>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"dashboard.dashboard.index\" as such route does not exist.","userAgent>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"files.view.index\" as such route does not exist.","userAgent":"Mozill>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"mail.page.index\" as such route does not exist.","userAgent":"Mozilla>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"photos.page.index\" as such route does not exist.","userAgent":"Mozil>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"phonetrack.page.index\" as such route does not exist.","userAgent":"M>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHT>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::variablesChanged storedVariables: \"722ba7bd37f876cdc41b24fdee25f571\" currentInjectedVariables: \"$theming-ca>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::resetCache","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chro>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:02+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::resetCache Lock acquired","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, li>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:03+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::resetCache css cache cleared!","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTM>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:03+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::resetCache Locking removed","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, >
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:03+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::process Lock acquired for /core/css/server.scss","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleW>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:03+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:03+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:03+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:03+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","userAgent">
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:10+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::cache /core/css/server.scss compiled and successfully cached","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:10+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::process Lock removed for /core/css/server.scss","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWe>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:10+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHT>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:10+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::isCached dd9a-49ff-css-variables.css isCachedCache is expired or unset","userAgent":"Mozilla/5.0 (Windows NT 1>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:10+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::isCached NotFoundException /appdata_ocvqbxiipzsq/css/core/dd9a-49ff-css-variables.css","userAgent":"Mozilla/5.>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:10+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::process Lock acquired for /core/css/css-variables.scss","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64)>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:13+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::cache /core/css/css-variables.scss compiled and successfully cached","userAgent":"Mozilla/5.0 (Windows NT 10.0>
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":0,"time":"2021-11-13T12:33:13+00:00","remoteAddr":"myWANip","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/csrftoken","message":"SCSSCacher::process Lock removed for /core/css/css-variables.scss","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) >
{"reqId":"NvOZCDTg2aFN9wqrUA9P","level":1,"time":"2021-11-13T12:33:13+00:00","remoteAddr":"myWANip","user":"--","app":"no app in context","method":"GET","url":"/index.php/csrftoken","message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does

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

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => xx
  'secret' => 'xx
  'trusted_domains' =>
  array (
    0 => 'mydomain',
  ),
  'logfile' => '/var/www/xxx/data/nextcloud.log',
  'loglevel' => '0',
  'datadirectory' => '/mnt/xxx-data',
  'dbtype' => 'mysql',
  'version' => '22.2.0.2',
  'overwrite.cli.url' => 'mydomain',
  'htaccess.RewriteBase' => '/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '3306',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'cloud',
  'dbpassword' => '',
  'installed' => true,
  'mail_from_address' => 'x',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'x',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'x',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'x',
  'mail_smtppassword' => 'x',
  'mail_smtpsecure' => 'tls',
  'default_phone_region' => 'DE',
  'filesystem_check_changes' => 1,
  'maintenance' => true,
  'simpleSignUpLink.shown' => false,
  'theme' => '',
);

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


192.168.0.136 - - [13/Nov/2021:10:58:28 +0100] "\x16\x03\x01\x02" 400 493 "-" "-"
192.168.0.136 - - [13/Nov/2021:10:58:30 +0100] "GET / HTTP/1.1" 200 3380 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 OPR/80.0.4170.63"
192.168.0.136 - - [13/Nov/2021:10:58:30 +0100] "GET /icons/openlogo-75.png HTTP/1.1" 200 6040 "http://192.168.0.201/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 OPR/80.0.4170.63"
192.168.0.136 - - [13/Nov/2021:10:58:30 +0100] "GET /favicon.ico HTTP/1.1" 404 491 "http://192.168.0.201/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 OPR/80.0.4170.63"
192.168.0.136 - - [13/Nov/2021:10:59:22 +0100] "-" 408 0 "-" "-"
192.168.0.136 - - [13/Nov/2021:12:08:30 +0100] "GET / HTTP/1.1" 200 3380 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 OPR/80.0.4170.63"
192.168.0.136 - - [13/Nov/2021:12:09:22 +0100] "-" 408 0 "-" "-"
192.168.0.136 - - [13/Nov/2021:13:09:38 +0100] "GET / HTTP/1.1" 200 3380 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 OPR/80.0.4170.63"
192.168.0.136 - - [13/Nov/2021:13:09:39 +0100] "GET /icons/openlogo-75.png HTTP/1.1" 200 6040 "http://192.168.0.201/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 OPR/80.0.4170.63"
192.168.0.136 - - [13/Nov/2021:13:11:06 +0100] "GET / HTTP/1.1" 200 3380 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 OPR/80.0.4170.63"
xx - - [13/Nov/2021:13:13:18 +0100] "HEAD /robots.txt HTTP/1.0" 404 159 "-" "-"
xx - - [13/Nov/2021:13:17:02 +0100] "GET / HTTP/1.1" 200 10956 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
::1 - - [13/Nov/2021:13:21:08 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.51 (Debian) OpenSSL/1.1.1k (internal dummy connection)"
::1 - - [13/Nov/2021:13:21:09 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.51 (Debian) OpenSSL/1.1.1k (internal dummy connection)"
::1 - - [13/Nov/2021:13:23:33 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.51 (Debian) OpenSSL/1.1.1k (internal dummy connection)"
::1 - - [13/Nov/2021:13:23:34 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.51 (Debian) OpenSSL/1.1.1k (internal dummy connection)"
::1 - - [13/Nov/2021:13:23:36 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.51 (Debian) OpenSSL/1.1.1k (internal dummy connection)"
::1 - - [13/Nov/2021:13:30:29 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.51 (Debian) OpenSSL/1.1.1k (internal dummy connection)"
::1 - - [13/Nov/2021:13:30:35 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.51 (Debian) OpenSSL/1.1.1k (internal dummy connection)"
::1 - - [13/Nov/2021:13:30:36 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.51 (Debian) OpenSSL/1.1.1k (internal dummy connection)"


[Sat Nov 13 12:21:04.665470 2021] [mpm_prefork:notice] [pid 25951] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Nov 13 12:21:20.525943 2021] [mpm_prefork:notice] [pid 670] AH00163: Apache/2.4.51 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sat Nov 13 12:21:20.527924 2021] [core:notice] [pid 670] AH00094: Command line: '/usr/sbin/apache2'

[Sat Nov 13 13:03:57.403278 2021] [mpm_prefork:notice] [pid 670] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Nov 13 13:03:57.665110 2021] [mpm_prefork:notice] [pid 1546] AH00163: Apache/2.4.51 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sat Nov 13 13:03:57.665192 2021] [core:notice] [pid 1546] AH00094: Command line: '/usr/sbin/apache2'
[Sat Nov 13 13:10:59.766309 2021] [mpm_prefork:notice] [pid 1546] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Nov 13 13:10:59.991863 2021] [mpm_prefork:notice] [pid 1833] AH00163: Apache/2.4.51 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sat Nov 13 13:10:59.991961 2021] [core:notice] [pid 1833] AH00094: Command line: '/usr/sbin/apache2'


Thanks for your help!

Could someone please help? I am open to try everything necessary to get it work again.

I just tried installing a completely new nextcloud instance using the same environment and same config.php (except for the custom values). This one works flawlessly. It has to do something with the old, backed up instance.