# Cli occ upgrade: remaining on version 25.0.13. updater.phar

**URL:** <https://help.nextcloud.com/t/cli-occ-upgrade-remaining-on-version-25-0-13-updater-phar/173528>\
**Category:** ℹ️ Support\
**Created:** [November 2, 2023, 10:58pm UTC](https://help.nextcloud.com/t/cli-occ-upgrade-remaining-on-version-25-0-13-updater-phar/173528 "2023-11-02T22:58:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrEcrm](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mrecrm/32/55727_2.png) [@MrEcrm](https://help.nextcloud.com/u/MrEcrm)\
**Post date:** [November 2, 2023, 10:58pm UTC](https://help.nextcloud.com/t/cli-occ-upgrade-remaining-on-version-25-0-13-updater-phar/173528/1 "2023-11-02T22:58:32Z")

</div>

with sudo -u www-data php --define apc.enable\_cli=1 /var/www/nextcloud/updater/updater.phar start updater  
install updates 25.0.13.  
update of code successful

re-run with sudo -u www-data php --define apc.enable\_cli=1 /var/www/nextcloud/updater/updater.phar start updater

"Current version is 25.0.13.

Update to Nextcloud 25.0.13 available. (channel: “stable”)  
Following file will be downloaded automatically: [https://download.nextcloud.com/server/releases/nextcloud-25.0.13.zip](https://download.nextcloud.com/server/releases/nextcloud-25.0.13.zip)"

expected behaviour: next update and not the current update be suggested.

Continue update? [y/N] y  
Should the “occ upgrade” command be executed? [Y/n] y  
This version of Nextcloud is not compatible with PHP\>=8.2.  
You are currently running 8.2.7.  
Keep maintenance mode active? [y/N] n  
This version of Nextcloud is not compatible with PHP\>=8.2.  
You are currently running 8.2.7.  
Maintenance mode is disabled

the problem here is not the php version (that’s another topic … i wonder how such things can even happen …) but that i cannot update the next version. I get the current version suggested

---

<div class="post-metadata">

**Author:** ![MrEcrm](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mrecrm/32/55727_2.png) [@MrEcrm](https://help.nextcloud.com/u/MrEcrm)\
**Post date:** [November 2, 2023, 11:00pm UTC](https://help.nextcloud.com/t/cli-occ-upgrade-remaining-on-version-25-0-13-updater-phar/173528/2 "2023-11-02T23:00:49Z")

</div>

Can i somehow enforce the next file to be taken? (without doing all manually)

---

<div class="post-metadata">

**Author:** ![Martin\_Ho](https://help.nextcloud.com/user_avatar/help.nextcloud.com/martin_ho/32/55191_2.png) [@Martin\_Ho](https://help.nextcloud.com/u/Martin_Ho)\
**Post date:** [November 3, 2023, 2:56pm UTC](https://help.nextcloud.com/t/cli-occ-upgrade-remaining-on-version-25-0-13-updater-phar/173528/3 "2023-11-03T14:56:19Z")

</div>

what happens wenn running sudo -u www-data php /var/www/nextcloud/occ upgrade  
And you could try to run explicitly php8.1 by sudo -u www-data php8.1 /var/www/nextcloud/occ upgrade

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 1:15pm UTC](https://help.nextcloud.com/t/cli-occ-upgrade-remaining-on-version-25-0-13-updater-phar/173528/4 "2024-12-14T13:15:44Z")

</div>


