Failed update due to PHP upgrade
Steps To Reproduce
- Go to '...'Sudo BASH /Var/Scripts/Menu.sh
- Click on '....'Update
An Unhandled exception has been thrown: OCP\HintException: [0]: Memcache OC\Memcache\Redis not available for local cache (Is the matching PHP Module installed and enabled?) Sorry by something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!
Expected Result
Update to run and not crash VM
Actual Result
Failed and website unresponsive
Screenshots, Videos, or Pastebins
Additional Context
No response
Build Version
33.0.2
Environment
By downloading the VM
Environment Details
Ubuntu 22.04 PHP 8.2.3 Hyper-V VM 16Gb Ram 3 * Xenon Silver 4110
This is caused because in the last update PECL modules are replaced with PHP native modules, but these are miss configured and disabled. What I did was reinstall these three modules and enabled them:
apt purge php8.3-smbclient apt purge php8.3-redis apt purge php8.3-igbinary
apt install php8.3-igbinary apt install php8.3-redis apt install php8.3-smbclient
phpenmod -v 8.3 igbinary phpenmod -v 8.3 redis phpenmod -v 8.3 smbclient
service php8.3-fpm restart
Then I ran the update script again and it finished fine
@muchachagrande Unfortunately did that (php8.2 in my case) and exactly the same!
Whats the output of this command:
php -m | grep -E "redis|igbinary|smbclient"
@muchachagrande
So, if you execute nextcloud_occ alone it keeps throwing the memcache exception ?
I'm out of ideas, sorry
No locks on packages that might prevent stuff? Is php -v returning 8.2?
So you don't have two php versions installed?
(8.2 is not default in any of the VM setups. 8.1 or 8.3 is)
/Johan
On 8 May 2026 17:37:46 Daniel350 @.***> wrote:
Daniel350 left a comment (nextcloud/vm#2820) @muchachagrande Response.jpg (view on web)— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.Message ID: @.***>
@muchachagrande No problems thanks for looking
@small1 Yes it has been upgraded some time ago from 8.1 to 8.2 as needed when upgrading nextcloud version. 8.2.30 running.
Does php -m
list Redis and igbinary?
On 8 May 2026 18:01:29 Daniel350 @.***> wrote:
Daniel350 left a comment (nextcloud/vm#2820) @muchachagrande No problems thanks for looking @small1 Yes it has been upgraded some time ago from 8.1 to 8.2 as needed when upgrading nextcloud version. 8.2.30 running. Response.jpg (view on web)— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>
This is caused because in the last update PECL modules are replaced with PHP native modules, but these are miss configured and disabled. What I did was reinstall these three modules and enabled them:
apt purge php8.3-smbclient apt purge php8.3-redis apt purge php8.3-igbinary
apt install php8.3-igbinary apt install php8.3-redis apt install php8.3-smbclient
phpenmod -v 8.3 igbinary phpenmod -v 8.3 redis phpenmod -v 8.3 smbclient
service php8.3-fpm restart
Then I ran the update script again and it finished fine
Thank you very much, in my case that worked!
For further troubleshooting, this was my output before doing what @muchachagrande suggested:
uadmin@nc:~$ ls /run/php/
php-fpm.sock php8.3-fpm.pid php8.3-fpm.sock
uadmin@nc:~$ sudo -u www-data php /var/www/nextcloud/occ status
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)
uadmin@nc:~$ sudo -u www-data php /var/www/nextcloud/occ
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)
uadmin@nc:~$ sudo bash /var/scripts/menu.sh
Running the main menu script...
Checking connection to github.com...
Creating local backup of repository (in case of network issues)...
✓ Local backup ready
The notifications app isn't enabled - unable to send notifications
Fetching latest packages with apt...
[⣾⣽⣻⣾⣽⣻⣾⣽⣻]
Ondrejs PPA is installed. Holding PHP to avoid upgrading to a newer version without migration...
dpkg-query: no packages found matching veracrypt
Enabling maintenance:mode...
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)
dpkg-query: no packages found matching nextcloud-spreed-signaling
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Module mpm_prefork already disabled
Considering conflict mpm_worker for mpm_event:
Considering conflict mpm_prefork for mpm_event:
Module mpm_event already enabled
Restarting Apache2 and PHP-FPM...
Getting current PHP-version...
PHPVER=8.3
Updating Netdata...
Sat May 9 19:15:45 UTC 2026 : INFO: netdata-updater.sh: Checking if a newer version of the updater script is available.
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu jammy InRelease
Hit:4 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:6 https://ppa.launchpadcontent.net/maxmind/ppa/ubuntu jammy InRelease
Hit:7 http://repository.netdata.cloud/repos/stable/ubuntu jammy/ InRelease
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Hit:9 http://repository.netdata.cloud/repos/repoconfig/ubuntu jammy/ InRelease
Reading package lists... Done
Sat May 9 19:15:47 UTC 2026 : INFO: netdata-updater.sh: Checking if native packages are still being published for this platform.
Sat May 9 19:15:47 UTC 2026 : INFO: netdata-updater.sh: Native packages are still being published for this platform.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
netdata-repo is already the newest version (5-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu jammy InRelease
Hit:4 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:6 https://ppa.launchpadcontent.net/maxmind/ppa/ubuntu jammy InRelease
Hit:7 http://repository.netdata.cloud/repos/stable/ubuntu jammy/ InRelease
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Hit:9 http://repository.netdata.cloud/repos/repoconfig/ubuntu jammy/ InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
netdata is already the newest version (2.10.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Checking PHP extensions (migrating from PECL to OS packages if needed)...
Getting current PHP-version...
PHPVER=8.3
dpkg-query: no packages found matching libsmbclient-dev
dpkg-query: no packages found matching php-acpu
Restarting Apache2 and PHP-FPM...
Getting current PHP-version...
PHPVER=8.3
Downloading latest GeoIP database from https://ipinfo.io...
GeoBlock database updated!
dpkg-query: no packages found matching docker-compose
time="2026-05-09T19:15:59Z" level=info msg="Watchtower 1.12.3 using Docker API v1.51"
time="2026-05-09T19:15:59Z" level=info msg="Using no notifications"
time="2026-05-09T19:15:59Z" level=info msg="Running a one time update"
time="2026-05-09T19:15:59Z" level=info msg="Update session completed" failed=0 notify=no scanned=0 updated=0
Imaginary docker image just got updated!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-177-generic
Found initrd image: /boot/initrd.img-5.15.0-177-generic
Found linux image: /boot/vmlinuz-5.15.0-176-generic
Found initrd image: /boot/initrd.img-5.15.0-176-generic
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
Disabling maintenance:mode...
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)
Finding all executable files in /var/www/nextcloud/apps
Trying to automatically update all Nextcloud apps...
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)
The notifications app isn't enabled - unable to send notifications
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)
Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!
sudo -u www-data php /var/www/nextcloud/occ upgrade failed
I had the same problem (Ubuntu 22.04 & PHP 8.2.31 & Nextcloud 32.0.9) which started with the last update via /var/scripts/update.sh.
Causes for the issue:
- Nextcloud tried to use Redis for local memcache but PHPs Redis extension (php-redis) isn't installed or enabled (anymore, in my case after the nextcloud update script).
- The redis package installed from the Ondrej PPA was built against the ondrej-provided igbinary binary ABI/version. The PECL-installed igbinary (and its version/ABI) didn’t satisfy that dependency, producing undefined symbol errors when loading redis.so.
Solution: https://how2itsec.blogspot.com/2026/05/nextcloud-php-redis-error-internal.html
Does php -m
list Redis and igbinary? …
@small1 yes
anyone found solution for this? i have php 8.3.6 so the following https://how2itsec.blogspot.com/2026/05/nextcloud-php-redis-error-internal.html workaround is not working
pecl uninstall redis; pecl uninstall igbinary;apt purge php8.3-redis php8.3-igbinary; apt install php8.3-redis php8.3-igbinary; phpenmod redis; phpenmod igbinary; systemctl restart php8.3-fpm
That should solve it.
small1's commands above worked for a VM with V8.4 of PHP too, just switch out the "3" in the command line to a "4".