Server error after update and php version

Dear all, sorry for disturbing you.

I’m facing a strange issue and i don’t really know how to fix.

I have a hestia server on ubuntu 20.04 and it is running since several years without any issue.

Today I updated the system as usual and now my nextcloud instance isn’t working with “Internal Server Error” message and also the webmail has the same issue

On the nextcloud logs I see:
[proxy_fcgi:error] [pid 269502:tid 269532] [client X.X.12.143:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught OCP\\HintException: [0]: Memcache OC\\Memcache\\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n thrown in /home/galaduser/web/office.galad.it/public_html/lib/private/Memcache/Factory.php on line 75'

I followed some info found here and on the web and I am unable to install different version of php:

/v-add-web-php 8.3
Installing PHP-8.3, please wait… /
ERROR: Installation failed, please run the following command manually for debugging:
apt-get install php8.3-common php8.3-mbstring php8.3-bcmath php8.3-cli php8.3-curl
php8.3-fpm php8.3-gd php8.3-intl php8.3-mysql
php8.3-soap php8.3-xml php8.3-zip php8.3-bz2
php8.3-pspell php8.3-imagick php8.3-imap php8.3-ldap php8.3-apcu
cp: cannot create regular file ‘/etc/php/8.3/fpm/pool.d/’: No such file or directory
sed: can’t read /etc/php/8.3/fpm/pool.d/dummy.conf: No such file or directory
cp: cannot create regular file ‘/etc/php/8.3/fpm/’: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php-fpm.conf: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/cli/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory

sudo apt-get install php8.3-common php8.3-mbstring php8.3-bcmath php8.3-cli php8.3-curl php8.3-fpm php8.3-gd php8.3-intl php8.3-mysql php8.3-soap php8.3-xml php8.3-zip php8.3-bz2 php8.3-pspell php8.3-imagick php8.3-imap php8.3-ldap php8.3-apcu
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package php8.3-common
E: Couldn’t find any package by glob ‘php8.3-common’
E: Couldn’t find any package by regex ‘php8.3-common’
E: Unable to locate package php8.3-mbstring
E: Couldn’t find any package by glob ‘php8.3-mbstring’
E: Couldn’t find any package by regex ‘php8.3-mbstring’
E: Unable to locate package php8.3-bcmath
E: Couldn’t find any package by glob ‘php8.3-bcmath’
E: Couldn’t find any package by regex ‘php8.3-bcmath’
E: Unable to locate package php8.3-cli
E: Couldn’t find any package by glob ‘php8.3-cli’
E: Couldn’t find any package by regex ‘php8.3-cli’
E: Unable to locate package php8.3-curl
E: Couldn’t find any package by glob ‘php8.3-curl’
E: Couldn’t find any package by regex ‘php8.3-curl’
E: Unable to locate package php8.3-fpm
E: Couldn’t find any package by glob ‘php8.3-fpm’
E: Couldn’t find any package by regex ‘php8.3-fpm’
E: Unable to locate package php8.3-gd
E: Couldn’t find any package by glob ‘php8.3-gd’
E: Couldn’t find any package by regex ‘php8.3-gd’
E: Unable to locate package php8.3-intl
E: Couldn’t find any package by glob ‘php8.3-intl’
E: Couldn’t find any package by regex ‘php8.3-intl’
E: Unable to locate package php8.3-mysql
E: Couldn’t find any package by glob ‘php8.3-mysql’
E: Couldn’t find any package by regex ‘php8.3-mysql’
E: Unable to locate package php8.3-soap
E: Couldn’t find any package by glob ‘php8.3-soap’
E: Couldn’t find any package by regex ‘php8.3-soap’
E: Unable to locate package php8.3-xml
E: Couldn’t find any package by glob ‘php8.3-xml’
E: Couldn’t find any package by regex ‘php8.3-xml’
E: Unable to locate package php8.3-zip
E: Couldn’t find any package by glob ‘php8.3-zip’
E: Couldn’t find any package by regex ‘php8.3-zip’
E: Unable to locate package php8.3-bz2
E: Couldn’t find any package by glob ‘php8.3-bz2’
E: Couldn’t find any package by regex ‘php8.3-bz2’
E: Unable to locate package php8.3-pspell
E: Couldn’t find any package by glob ‘php8.3-pspell’
E: Couldn’t find any package by regex ‘php8.3-pspell’
E: Unable to locate package php8.3-imagick
E: Couldn’t find any package by glob ‘php8.3-imagick’
E: Couldn’t find any package by regex ‘php8.3-imagick’
E: Unable to locate package php8.3-imap
E: Couldn’t find any package by glob ‘php8.3-imap’
E: Couldn’t find any package by regex ‘php8.3-imap’
E: Unable to locate package php8.3-ldap
E: Couldn’t find any package by glob ‘php8.3-ldap’
E: Couldn’t find any package by regex ‘php8.3-ldap’
E: Unable to locate package php8.3-apcu
E: Couldn’t find any package by glob ‘php8.3-apcu’
E: Couldn’t find any package by regex ‘php8.3-apcu’

the same for php 8.4

I am really lost can you help me?

php --version
PHP 8.2.27 (cli) (built: Dec 24 2024 06:28:30) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.27, Copyright (c) Zend Technologies
with Zend OPcache v8.2.27, Copyright (c), by Zend Technologies

Have you upgraded your OS? Looks like the sury repo in /etc/apt/sources.list.d/ is disabled. Check that all your repositories related to hestia are enabled, also consider to upgrade to 22.04 or 24.04: Operating system upgrades | Hestia Control Panel

And beside that, I think you got already a clear error message which leads to for example: Memcache \\OC\\Memcache\\Redis not available for local cache - #3 by sandeep519 - ℹ️ Support - Nextcloud community

1 Like

Thanks for reply.

I didn’t upgraded the OS and if I switch back to an old version of php the sites works.

With PHP 8.1 everything works, from 8.2 and on doesn’t work.

Is ther a way to fix the php versions?

php-redis is latest version

php-redis is already the newest version (6.1.0-2+ubuntu20.04.1+deb.sury.org+1).

I have the following repo

image

Just reminded myself that sury dropped support for 20.04. So the only way is to upgrade your os to 22.04 at least.

2 Likes

Thank you. after update to 22.04 it seems to work

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.