Nextcloud upgrading fails from 24.0.1.1 to 27.0.2.1 ~> How do i upgrade the versions in between?

JoHapp

Dabbler
Joined
Jul 29, 2021
Messages
44
Yesterday I updated the Nextcloud App and TrueNas Scale. I began with Nextcloud (now 27.0.2_1.6.45) and I remember that all was flagged as working. Over the night the Scale update took place (I believe Angelfish to Bluefin, now on 22.12.3.3)

The Nextcloud App is now hanging in deployment 1/2.

The logs reads:
023-09-05 07:48:23.238000+00:00Initializing nextcloud 27.0.2.1 ...
2023-09-05 07:48:23.238044+00:00Can't start Nextcloud because upgrading from 24.0.1.1 to 27.0.2.1 is not supported.
2023-09-05 07:48:23.238050+00:00It is only possible to upgrade one major version at a time. For example, if you want to upgrade from version 14 to 16, you will have to upgrade from version 14 to 15, then from 15 to 16.

How do I perform to update along the versions in between? It looks as I should upgrade first to version 23.0.1.1 and along. I didn't saw any option to do so on the app menu.

Thanks,
Jonathan
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
It appears to me that the problem reported is 100% related to Nextcloud version (and 0% related to TrueNAS version).

I don't see how it can be the case given what you stated:
I began with Nextcloud (now 27.0.2_1.6.45)
As Nextcloud appears to be telling you that your database is currently 24.0.1.1, hence requiring the intermediate version updates to the database in order to get to 27.x

I would say that at this point, you're outside the supported matrix and won't have a straight forward path to resolution.

What you'll probably have to do is take one of 2 possible routes:

1. Abandon your nextcloud database and start fresh.

2. Attach (with what I'm sure will be a lot of difficulty and messing around) the database you have to a manually launched instance of Nextcloud (you could do that via the Launch Docker Image button) at each of the needed versions to get you to current, then re-launch the original app, which would then be fine.

I don't envy you that predicament. Good luck.
 

JoHapp

Dabbler
Joined
Jul 29, 2021
Messages
44
Thanks. I believe i will create a complete new nextcloud install in that case.

As that error seams to be resulted by the Truenas App installer / updater, i think somehow there should be a method implemented to update only by one version at time. I will fill in that request.
 
Top