Nextcloud version 26.0.2
Operating system and version: my own packages on slackware
Apache or nginx version 2.4.57
PHP version: 8.2.7
I’m working on upgrading nextcloud to 26.0.2 and php from 8.0.19 to 8.2.7. The nextcloud upgrade went without issue, but when using php 8.2.7 I can no longer login.
I’m using php-fpm and have a server for both 8.0.19 and 8.2.7 so I can switch back and forth by simply changing the socket in .htaccess:
SetHandler “proxy:unix:/var/run/php8.0.sock|fcgi://localhost timeout=600”
or
SetHandler “proxy:unix:/var/run/php8.2.sock|fcgi://localhost timeout=600”
When running on php8.2 logins fail. I don’t see any errors in the php logs or in the nextcloud logs. I simply get the failed login log:
{“reqId”:“OfDqSV7z7OC6RtZgOkEl”,“level”:2,“time”:“2023-06-10T15:21:50+00:00”,“remoteAddr”:“x.x.x.x”,“user”:“–”,“app”:“no app in context”,“method”:“POST”,“url”:“/index.php/login”,“message”:“Login failed: admin (Remote IP: x.x.x.x)”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36”,“version”:“26.0.2.1”,“data”:}
I can confirm that there aren’t any missing modules in 8.2.7 and comparing the php.ini files between the versions they have the same settings, only the comments are different.
If I login on 8.0.19 then pivot to 8.2.7 everything is fine as my browser sends a session cookie that proves I’ve been authenticated.
I appreciate the helpful reply. I did as you suggested and am recording all errors to a file, however the only errors I show are deprecation errors:
[10-Jun-2023 20:06:35 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/htdocs/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 4653
[10-Jun-2023 20:06:35 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/htdocs/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 4664
[10-Jun-2023 20:06:35 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/htdocs/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 5731
[10-Jun-2023 20:06:35 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/htdocs/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 5742
[10-Jun-2023 20:06:35 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/htdocs/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13398
[10-Jun-2023 20:06:35 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/htdocs/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13398
[10-Jun-2023 20:06:35 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/htdocs/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13409
[10-Jun-2023 20:06:35 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/htdocs/nextcloud/apps/mail/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13409
I’m not thinking this is related… but… it could be a character encoding issue.
I used the occ console to turn the netcloud logging to debug and still don’t see anything related.