Update-Problem with Ubuntu 24.04.1 LTS

Hello,

after updating my system to Ubuntu 24.04.1 LTS i get several updates e.g. php8.3.

Now my nextcloud will not start in the browser i see the messages:

Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

In the cli i see:

>sudo -u www-data php occ
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\Memcached not available for distributed cache (Is the matching PHP module installed and enabled?)

In the file data/nextcloud.log is the last line before the update.
In the file apapche error.log i see this info:

>sudo tail -f /var/log/apache2/error.log
[ssl:info] [pid xxxx] [client xxxxxxxxxx:55946] AH01964: Connection to child 4 established (server cloud.webspace.com:443)

So i think this is a because of the php8.3 update. Then i setup in

/etc/php/8.3/mods-available/apcu.ini
apc.enable_cli=1
extension=apcu.so

But it wont work. Why?
What changed in the way to 8.3?
Why the module is not working?

Regards Chris

Description: Ubuntu 24.04.1 LTS
PHP 8.3.6 (cli) (built: Sep 30 2024 15:17:17) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies

According to the error message you posted, it’s not complaining about APCu, but Memcached, so apt install php8.3-memcached will probably do the trick…

If not, please post your config.php and the output of php -m

1 Like

Hello,

yes it works!
But after some time up i got server error 503.
Then i do

 sudo service php8.3-fpm restart

And the server is available for some minutes the i got the 503 message again.

In the error.log i found:

[proxy_fcgi:error] [pid 1449] [client xxxx:xx] AH01067: Failed to read FastCGI header
[proxy_fcgi:error] [pid 1449] (104)Connection reset by peer: [client xxxx:xxx] AH01075: Error dispatching request to :

and

[proxy:error] [pid 1359] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.3-fpm.sock (*:80) failed
[proxy_fcgi:error] [pid 1359] [client xxxx:xx] AH01079: failed to make connection to backend: httpd-UDS

Is there a php module missing?

>php -m
[PHP Modules]
apcu
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
imagick
intl
json
ldap
libsmbclient
libxml
mbstring
mcrypt
memcached
msgpack
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
random
readline
redis
Reflection
session
shmop
SimpleXML
smbclient
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Regards Chris

My first thought, since you’re using php-fpm, is to check the php-fpm log.

You need to find the log file.

Based on the info you posted, the fpm config file is likely located at /etc/php/8.3/fpm/php.ini.

Look for the value of error_log.

Hello,

in /var/log/php8.3-fpm.log i found this message:

WARNING: [pool www] server reached pm.max_children setting (5), consider raising it

What size is usefull and where do i set the size?
What depends on this size?

Regards Chris

You could use the PHP-FPM Process Calculator linked in the documentation to find sensible values for your system.

/etc/php/8.3/fpm/pool.d/www.conf