NextCloud Upgrade from v25.0.13 to latest

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 25.0.13
  • Operating system and version (e.g., Ubuntu 24.04):
    • CentOS Linux 7
  • Web server and version (e.g, Apache 2.4.25):
    • Apache httpd 2.4.6
  • PHP version (e.g, 8.3):
    • PHP 7.4.26
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • VM/Bare Metal

Summary of the issue you are facing:

Hello,
I have an old NextCloud server 25.0.13 which I need to update, there’s no further updates available on the Web Administration page.

It is on a CentOS 7 server so I have to update that as well

I read that I can’t directly upgrade it to version 30 It means I can’t skip any version and I have to follow linear update
v25 => v26 => v27 => v28 => v29 = > v30

my plan is to

  • create a new VM

  • restore the database from old one

  • download and extract the nextcloud 26.0.0 then attach the data volume and keep it updating to 26.0.13 via web interface, but here’s I am confused what php version should I install for 26.0.0

  • once it reaches to v26.0.13 then download the v27.0.0 connects the database and data volume then keep updating it to v27.1.13

I am not sure what could be the best approach. can I simply install the next updated version instead of base version first i.e. v26.0.0. Can I use v26.0.13? and then upgrade it with v27.1.13

I am unable to find any clear upgrade path, some use manual update as I mentioned above some uses through web administration

I don’t want to loose data

your response will be highly appreciated,

thank you

hi @cyb3rx welcome to the community :handshake:

maybe migration using intermediate Docker installation would be easier… you don’t need a full-blown installation just the core. the advantage would be - each Docker image ships the right php, Apache and configs… upgrading is pretty simple and you can later migrate to you final destination system running whatever architecture you need. The system doesn’t need to be really performant as long you can afford the downtime…

Docker community image
Docker upgrade procedure
Docker persistent data

if you decide to use docker later here is a more advanced setup:
docker-compose-setup-with-notify-push-2024
Nextcloud docker compose setup with Caddy (2024)

right.

From your 25.0.13 you can directly go to 26.0.13 (always the latest minor version).

You can launch the updater from command line, for the last versions, this worked very reliable for me (in nextcloud folder php updater/updater.phar), it does most things in the background for your but has no runtime limits like the web version and shows errors directly.

PHP 8.1 or 8.2 support all versions from NC 26 to NC 30:

Don’t forget a backup of the database and data before you run any update.

1 Like

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