**Below is a reply sent by email - it had an attachment which is maybe why it did not post to the thread **
bb77,
With your help and other posts I was able to upgrade from v25.0.9 to 26.0.4. Here’s the story …
server 1: debian bullseye, php7.4
server 2: debian bookworm, php8.2-fpm
1st attempt:
Using the sury repo I updated server 1 to php8.1. However nextcloud threw an internal server error and I couldn’t find much in the apache logs to figure out how to fix it.
2nd attempt:
I tried to do a version upgrade of server 1 to bookworm using this thread: HowTo: Upgrade to Nextcloud 26 on Debian Bullseye
The server upgrade failed at a number of points so I gave up on that idea.
3rd attempt:
After reading a bunch of posts with different ideas/options I copied the nextcloud files from server 1 to server 2. Then I pointed server 2 to a copy of the server 1 db and a copy of the server 1 data store so it could run without interfering with the live server 1 instance.
Using this post: Upgrade to Debian 12 Bookworm - #6 by bb77
I ran ‘sudo -u www-data php nextcloud/updater/updater.phar’
I got this error: This version of Nextcloud is not compatible with PHP>=8.2. You are currently running 8.2.7. It was solved by running
'sudo sed -i ‘s/>= 80200/>= 80300/’ nextcloud/lib/versioncheck.php
from this post: Update to php8.2 - #2 by flow-axel
Next up was this error (it may have been the first error - can’t remember): An unhandled exception has been thrown: OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
Turns out I was missing php8.2-apcu and had to enable it in /etc/php/8.2/cli/php.ini using this post: Don't allow executing cli if cache backend is unavailable by st3iny · Pull Request #25770 · nextcloud/server · GitHub
As mentioned earlier I use proxmox vms so I was able to run a clean copy of server 2 each time I fixed an issue.
After the issues were fixed, ‘sudo -u www-data php nextcloud/updater/updater.phar’ ran the upgrade successfully - it is now v26.0.4 with the option to upgrade to 27.0.1.
Many thanks for the help with this effort. Now I’ll plan out migrating the live environment to a clean copy of server 2.
Jim.