Nextcloud version (eg, 20.0.5): 27.1.3
Operating system and version (eg, Ubuntu 20.04): Debian 12.4
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.57-2
PHP version (eg, 7.4): 8.2
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): N
Steps to replicate it:
- enjoy a working Nextcloud 27.1.3 installation
- upgrade to Nextcloud 27.1.5
- try to access login page
The output of your Nextcloud log in Admin > Logging:
nothing here
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'xxxxx',
'passwordsalt' => 'xxxxx',
'secret' => 'xxxxx',
'trusted_domains' =>
array (
0 => 'nextcloud.mydomain.tld',
1 => 'reverse_proxy_ip_address (10.0.0.100)',
2 => 'rp.mydomain.tld',
),
'trusted_proxies' =>
array (
0 => 'nextcloud.mydomain.tld',
1 => 'reverse_proxy_ip_address (10.0.0.100)',
2 => 'rp.mydomain.tld',
),
'forwarded_for_headers' => 'HTTP_X_FORWARDED_FOR',
'datadirectory' => '/data/nextcloud',
'dbtype' => 'mysql',
'version' => '27.1.3.2',
'overwrite.cli.url' => 'https://nextcloud.mydomain.tld',
'overwriteprotocol' => 'https',
'overwritehost' => 'nextcloud.mydomain.tld',
'overwritecondaddr' => '^10\\.0\\.0\\.100$',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'xxxxx',
'dbpassword' => 'xxxxx',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'apc.enable_cli' => 1,
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'mydomain.tld',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'xxxxx',
'mail_smtpport' => 'xxxxx',
'mail_smtpname' => 'xxxxx',
'mail_smtppassword' => 'xxxxx',
'default_phone_region' => 'FR',
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'mail_from_address' => 'xxxxx',
'mail_smtpsecure' => 'xxxxx',
);
The output of your Apache/nginx/system log in /var/log/____
:
(nginx reverse proxy access log:)
[27/Dec/2023:18:00:50 +0100] "GET /index.php/login HTTP/1.1" 500 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0"
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
no errors showing
PHP modules on nextcloud host:
[PHP Modules]
apcu
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
random
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Nginx reverse proxy host config:
server {
listen xxxxx:80;
server_name nextcloud.mydomain.tld;
return 301 https://$host$request_uri;
}
server {
listen xxxxx:443 ssl;
server_name nextcloud.mydomain.tld;
access_log /var/log/nginx/nextcloud.access.log;
error_log /var/log/nginx/nextcloud.error.log;
add_header Strict-Transport-Security "max-age=15552000";
ssl_certificate /etc/letsencrypt/live/blablabla/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/blablabla/privkey.pem;
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 1.1.1.1 valid=300s;
resolver_timeout 5s;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}
location /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}
location /{
proxy_pass http://10.0.0.201;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
rewrite /nextcloud/(.*) /$1 break;
client_max_body_size 10G;
}
}
Apache host config:
<VirtualHost *:80>
Alias /nextcloud "/var/www/nextcloud/"
DocumentRoot /var/www/nextcloud/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<FilesMatch "\.php$">
SetHandler "proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost/"
</FilesMatch>
<Directory /var/www/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
Header set Referrer-Policy "no-referrer-when-downgrade"
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
</VirtualHost>
Hello !
I have ben trying to upgrade nextcloud to 27.1.5, with the web based wizzard and / or the occ upgrade
command.
Nextcloud is served by apache2 webserver (on LXC container) behind a nginx reverse proxy (separate VM) which handles SSL termination, at https://nextcloud.mydomain.tld
Upgrade works fine with either method, but after upgrade, I can no longer access the login form, only a blank page is displayed at https://nextcloud.mydomain.tld/index.php/login, and the webserver shows a 500 error.
Client synchronization still works fine, and if I try to access a non-existant page inside the nextcloud installation (i.e. https://nextcloud.mydomain.tld/randomstring), I get the expected output (Nextcloud 404 error page). Also, if the user authentication is cached in the browser, everything works fine, the only failure seems to be with index.php/login
As I can not allow for an extended downtime, I restored the backup, and so lost trace of log files from nextcloud 27.1.5, but I can reproduce if needed. I checked the nextcloud log (with debug level), disabled as many apps as possible, and also tried to manually upgrade to 28.0.1.
Nextcloud has first been installed few years ago, and all the upgrades went smoothly from Nextcloud 22 to 27.1.3.
Any pointers or advices would be appreciated, thanks !