Empty Answer from updates.nextcloud.com


My Nextcloud System stopped to update, please help me.

https://scan.nextcloud.com/ says “ NOT on latest patch level”

So I would like to update. :slight_smile:

I’m using Debian 11 (includes php 7.4), Apache2, mysql and the system is behind an apache proxy. The System was stable for 5 years.

The last change on the system was the Update (via occ) from version to version

“occ update:check” replies “Everything up to date”
“occ upgrade” replies “Nextcloud is already latest version”
“occ maintenance:repair” replies no problems.
“curl https://updates.nextcloud.com/updater_server/” can be reached from the server.
“updater.phar” replies “No update available.”

updater.log says

[info] updater cli is executed
[info] currentStep()
[info] current version: 25.0.13 build time: 2023-10-26T17:51:43+00:00 30fb8a53b04c623db368d29a83e8e1153a2d6b07
[info] getUpdateServerResponse()
[info] updaterServer: https://updates.nextcloud.com/updater_server/
[info] releaseChannel: stable
[info] internal version:
[info] updateURL: https://updates.nextcloud.com/updater_server/?version=25x0x13x2xxxstablexx2023-10-26T17%3A51%3A43%2B00%3A00+30fb8a53b04c623db368d29a83e8e1153a2d6b07x7x4x33
[info] checkForUpdate() Array
[info] end of checkForUpdate() No update available.

I’m surprised that checkForUpdate() Array is empty, because in previous updates it contained necessary information. :face_with_raised_eyebrow:

Do you have any hints?
Thank you very much for your support. :grinning:

Hey, this is your hint :wink: Nextcloud 25 is the last version that supports 7.4, so no update is offered, because it is incompatible. There are quite a few threads about this here you can check out

Hi SysKeeper,

Does PHP version supress the next update? :dotted_line_face:

Thank you for your hint. The Update to Debian 12 includes php 8.2.3. This version is too high for Nextcloud version (>=8.2) :crazy_face:
And https://computingforgeeks.com/how-to-install-php-on-debian-linux-2/?utm_content=cmp-true Update to 8.1 has apcu version 8.3 :crazy_face:

Yes, because otherwise you’ll end up in a non-functional system. But I agree, the feedback in this regard could be a bit better.

For me PHP 8.2 worked for me for Nextcloud 25 updater.

This helper script is designed to install php for Nextcloud in different versions without much hassle:
Php-updater - a script to upgrade php in a safe way

Much and good luck,

The problem is solved.

I did the following steps to upgrade to PHP8.1 on Debian 11 Bullseye:

apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2
echo “deb Index of /php/ $(lsb_release -sc) main” | sudo tee /etc/apt/sources.list.d/sury-php.list
curl -fsSL https://packages.sury.org/php/apt.gpg| sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/sury-keyring.gpg
sudo apt update
apt list --upgradable
apt-get upgrade -y
apt-get remove php-common php7.4 php7.4-apcu php7.4-apcu-bc php7.4-bcmath php7.4-cgi php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-gmp php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-zip
apt-get remove php8.3-apcu php8.3-cli php8.3-common php8.3-igbinary php8.3-imagick php8.3-opcache php8.3-phpdbg php8.3-readline php8.3-redis
sudo apt install php8.1 php8.1-apcu php8.1-bcmath php8.1-curl php8.1-gd php8.1-gmp php8.1-igbinary php8.1-imagick php8.1-intl php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-phpdbg php8.1-xml php8.1-zip
apt-get reinstall libapache2-mod-php8.1
systemctl restart apache2

I checked the system with:

php -v
sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/occ status

Then I could upgrade Nextcloud with the commands:

sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/updater/updater.phar
sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/occ upgrade
sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/occ maintenance:mode --off
sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/occ db:add-missing-indices

HTH others

Thank you for your support!

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