Problem Version advancement

I’m upgrading the version (from 26 to 27), I downloaded the new version, unpacked everything in /var/www/, and copied the /config folder from the old folder, when I go to connect from the browser I get this:

Trying from terminal:

Can you tell me what I should do?

Hi there,

I think the issue is that you downloaded 27.1, which could be an issue coming from 26.

Download version 27.0 and then try an upgrade. If that succeeds, then try going to 27.1

Edit:

Here: Changelog unsupported - Nextcloud (Version 27.0.2)

Via web:

terminal:

What is the exact version of NextCloud you have running right now?

The Version is 27.0.0

Hmm, okay.

I’m no expert, so I’m giving my opinion here.

Try upgrading to version 27.0.2. If that succeeds, then go to version 27.1.0. If that works, then go to 27.1.11

Though, if those don’t work, someone else will need to offer advice. Either that, or you can manually install the update files yourself. Do keep in mind the risks associated with manual installs, like corrupted data.

Either way, I would advise a backup of important data before proceeding.

I did the backup, I went from owncloud to version 25, then 26, now 27… I’ll upgrade up to 30, so from 27 I just need it to work, I have no interest in a particular version or not

I did the backup, I went from owncloud to version 25, then 26, now 27…

You appear to be doing manual updates. I’m not entirely clear why.

Are you certain you’re following entire OC transition process described in the manual?

The manual update only applies to the initial bump to v25. After that you should be using the Updater as described there.

If still stuck, please post your config (via occ config:list system ideally)

the current version: 27.0.2

Your environment is not fully upgraded.

You appear to be overlooking some of the steps in the OC transition docs. Please review the steps and carefully follow them.

Once you’re on v25 you do not do manual updates. Just use the built-in updater.

It appears you did the manual code deployment of v25 and finalized it successfully (by triggering the db migrations afterward via occ upgrade).

But then it looks like perhaps you tried to manually deploy v26 then didn’t finalize it with the db migrations before you then deployed the code for v27. This is why you’re getting the error about upgrading between multiple major versions.

You have thee options:

  • restore from backup and start the OC transition over
  • or manually redeploy the v25.0.13 code then use the built-in updater as from there (which is essentially what would have originally been the approach)
  • or manually redeploy v26 code then trigger db migrations via occ upgrade. After that just use the built-in updater

ok, I restored version 26, checked the data and updated the database and so on. By simply giving the command: sudo -u www-data php updater/updater.phar
I’m progressing through the various versions (I’m currently on 29)
Thanks for the help

2 Likes