There is a problem with Nextcloud, not possible to update/upgrade/reinstall

IF your Nethserver is updated to 7.9.2009 again only if your system is on version 7.9.2009,

you may try to install the nethserver nexcloud package that still requires nextcloud 20.0.x:

yum install http://packages.nethserver.org/nethserver/7.9.2009/updates/aarch64/Packages/nethserver-nextcloud-1.16.7-1.ns7.noarch.rpm

1 Like

Of course, there is a NS 7.9.2009 but the problem will be here when 7.10.XXXX will be here.

Please read details: I have a fresh NS 7.7, there are updates, I do it: no problem
After there is a forced message to upgrade to NS 7.8: no problem
After it is a NS 7.8, impossible to do software updates, there is a forced message to upgrade to NS 7.9: it is the first problem.
I think that all NS builds, before an OS upgrade, a script must to launch upgrade of Nextcloud one by one, it will be better to all and will solve this Nextcloud problem.

Note:

7.9.2009: 1.15.x -> 1.16.x -> 1.17.x
http://packages.nethserver.org/nethserver/7.9.2009/updates/aarch64/Packages/
[   ] nethserver-nextcloud-1.15.0-1.ns7.noarch.rpm 2020-11-18 07:36 107M
[   ] nethserver-nextcloud-1.16.0-1.ns7.noarch.rpm 2020-11-30 16:54 107M
[   ] nethserver-nextcloud-1.16.1-1.ns7.noarch.rpm 2020-12-17 11:04 107M
[   ] nethserver-nextcloud-1.16.2-1.ns7.noarch.rpm 2021-01-05 16:30 107M
[   ] nethserver-nextcloud-1.16.3-1.ns7.noarch.rpm 2021-01-20 11:18 95M
[   ] nethserver-nextcloud-1.16.4-1.ns7.noarch.rpm 2021-01-29 13:52 95M
[   ] nethserver-nextcloud-1.16.5-1.ns7.noarch.rpm 2021-02-08 14:36 95M
[   ] nethserver-nextcloud-1.16.6-1.ns7.noarch.rpm 2021-03-11 07:52 94M
[   ] nethserver-nextcloud-1.16.7-1.ns7.noarch.rpm 2021-04-16 08:51 108M
[   ] nethserver-nextcloud-1.17.0-1.ns7.noarch.rpm 2021-06-21 06:58 114M
[   ] nethserver-nextcloud-1.17.1-1.ns7.noarch.rpm 2021-07-06 09:10 114M


7.8.2003: 1.10.x -> 1.11.x -> 1.12.x -> 1.13.x -> 1.14.x
http://packages.nethserver.org/nethserver/7.8.2003/updates/aarch64/Packages/
[   ] nethserver-nextcloud-1.10.1-1.ns7.noarch.rpm 2020-05-07 10:11 76M
[   ] nethserver-nextcloud-1.11.0-1.ns7.noarch.rpm 2020-06-08 09:03 80M
[   ] nethserver-nextcloud-1.12.0-1.ns7.noarch.rpm 2020-06-15 14:29 80M
[   ] nethserver-nextcloud-1.12.1-1.ns7.noarch.rpm 2020-07-02 08:38 80M
[   ] nethserver-nextcloud-1.12.2-1.ns7.noarch.rpm 2020-07-09 15:32 80M
[   ] nethserver-nextcloud-1.12.3-1.ns7.noarch.rpm 2020-07-20 13:00 81M
[   ] nethserver-nextcloud-1.12.4-1.ns7.noarch.rpm 2020-08-11 14:52 81M
[   ] nethserver-nextcloud-1.13.0-1.ns7.noarch.rpm 2020-09-03 08:40 89M
[   ] nethserver-nextcloud-1.14.0-1.ns7.noarch.rpm 2020-09-14 12:37 89M
[   ] nethserver-nextcloud-1.14.1-1.ns7.noarch.rpm 2020-10-16 13:47 89M
[   ] nethserver-nextcloud-1.14.2-1.ns7.noarch.rpm 2020-11-03 16:17 89M


7.7 : 16.x -> 17.x -> 18.x
http://packages.nethserver.org/nethserver/7.7.1908/updates/aarch64/Packages/
[   ] nethserver-nextcloud-1.7.1-1.ns7.noarch.rpm 2019-10-09 12:52 74K
[   ] nethserver-nextcloud-1.8.0-1.ns7.noarch.rpm 2019-12-02 08:29 74K
[   ] nethserver-nextcloud-1.8.1-1.ns7.noarch.rpm 2019-12-09 08:12 75K
[   ] nethserver-nextcloud-1.8.2-1.ns7.noarch.rpm 2019-12-19 15:03 75K
[   ] nethserver-nextcloud-1.8.3-1.ns7.noarch.rpm 2020-01-15 08:04 75K
[   ] nethserver-nextcloud-1.8.4-1.ns7.noarch.rpm 2020-01-16 09:29 75K
[   ] nethserver-nextcloud-1.8.5-1.ns7.noarch.rpm 2020-01-27 13:59 75K
[   ] nethserver-nextcloud-1.9.0-1.ns7.noarch.rpm 2020-02-26 09:40 75M
[   ] nethserver-nextcloud-1.9.1-1.ns7.noarch.rpm 2020-03-25 13:32 76M
[   ] nethserver-nextcloud-1.9.2-1.ns7.noarch.rpm 2020-03-26 17:22 76M
[   ] nextcloud-16.0.5-1.ns7.noarch.rpm 2019-10-09 12:49 55M
[   ] nextcloud-17.0.1-1.el7.noarch.rpm 2019-12-02 08:26 59M
[   ] nextcloud-17.0.2-1.el7.noarch.rpm 2020-01-15 08:03 60M
[   ] nextcloud-18.0.0-1.el7.noarch.rpm 2020-01-27 13:57 75M


7.6.1810: 15.x -> 16.x
http://packages.nethserver.org/nethserver/7.6.1810/updates/aarch64/Packages/
[   ] nethserver-nextcloud-1.4.0-1.ns7.noarch.rpm 2018-12-20 08:39 28K
[   ] nethserver-nextcloud-1.4.1-1.ns7.noarch.rpm 2019-01-17 15:19 28K
[   ] nethserver-nextcloud-1.4.2-1.ns7.noarch.rpm 2019-02-12 13:30 28K
[   ] nethserver-nextcloud-1.4.3-1.ns7.noarch.rpm 2019-03-07 14:54 28K
[   ] nethserver-nextcloud-1.4.4-1.ns7.noarch.rpm 2019-04-29 14:26 28K
[   ] nethserver-nextcloud-1.5.0-1.ns7.noarch.rpm 2019-05-08 15:27 29K
[   ] nethserver-nextcloud-1.5.1-1.ns7.noarch.rpm 2019-05-24 08:50 29K
[   ] nethserver-nextcloud-1.5.2-1.ns7.noarch.rpm 2019-07-09 15:11 55K
[   ] nethserver-nextcloud-1.6.0-1.ns7.noarch.rpm 2019-07-17 15:00 73K
[   ] nethserver-nextcloud-1.6.1-1.ns7.noarch.rpm 2019-08-05 08:20 73K
[   ] nethserver-nextcloud-1.6.2-1.ns7.noarch.rpm 2019-09-03 09:44 74K
[   ] nextcloud-15.0.0-1.el7.noarch.rpm 2018-12-20 08:38 33M
[   ] nextcloud-15.0.2-1.el7.noarch.rpm 2019-01-17 15:17 33M
[   ] nextcloud-15.0.4-1.el7.noarch.rpm 2019-02-12 13:27 43M
[   ] nextcloud-15.0.5-1.el7.noarch.rpm 2019-03-07 14:51 51M
[   ] nextcloud-15.0.7-1.el7.noarch.rpm 2019-04-29 14:21 51M
[   ] nextcloud-16.0.0-1.el7.noarch.rpm 2019-05-08 15:25 55M
[   ] nextcloud-16.0.1-1.el7.noarch.rpm 2019-05-24 08:47 94M
[   ] nextcloud-16.0.2-1.el7.noarch.rpm 2019-07-09 15:05 55M
[   ] nextcloud-16.0.3-1.ns7.noarch.rpm 2019-08-05 08:18 55M
[   ] nextcloud-16.0.4-1.el7.noarch.rpm 2019-09-03 09:41 55M


7.5.1804: 13.x -> 14.x
http://packages.nethserver.org/nethserver/7.5.1804/updates/x86_64/Packages/
[   ] nethserver-nextcloud-1.2.2-1.ns7.noarch.rpm 2018-06-14 08:47 27K
[   ] nethserver-nextcloud-1.2.3-1.ns7.noarch.rpm 2018-08-01 14:20 27K
[   ] nethserver-nextcloud-1.2.4-1.ns7.noarch.rpm 2018-09-06 08:37 27K
[   ] nethserver-nextcloud-1.2.5-1.ns7.noarch.rpm 2018-09-25 12:11 27K
[   ] nethserver-nextcloud-1.2.6-1.ns7.noarch.rpm 2018-09-26 17:15 27K
[   ] nethserver-nextcloud-1.2.7-1.ns7.noarch.rpm 2018-10-17 12:33 27K
[   ] nextcloud-13.0.4-1.ns7.noarch.rpm 2018-06-14 08:45 41M
[   ] nextcloud-13.0.5-1.el7.noarch.rpm 2018-08-01 14:17 40M
[   ] nextcloud-13.0.6-1.el7.noarch.rpm 2018-09-06 08:36 40M
[   ] nextcloud-14.0.0-1.el7.noarch.rpm 2018-09-25 12:07 45M
[   ] nextcloud-14.0.1-1.el7.noarch.rpm 2018-09-26 17:13 45M
[   ] nextcloud-14.0.3-1.el7.noarch.rpm 2018-10-17 12:30 45M


7.4.1708: 12.x -> 13.x
http://packages.nethserver.org/nethserver/7.4.1708/updates/x86_64/Packages/
[   ] nethserver-nextcloud-1.1.9-1.ns7.noarch.rpm 2017-12-19 17:29 24K
[   ] nethserver-nextcloud-1.1.10-1.ns7.noarch.rpm 2018-01-23 10:10 24K
[   ] nethserver-nextcloud-1.1.11-1.ns7.noarch.rpm 2018-01-30 13:04 24K
[   ] nethserver-nextcloud-1.2.0-1.ns7.noarch.rpm 2018-03-20 11:18 26K
[   ] nethserver-nextcloud-1.2.1-1.ns7.noarch.rpm 2018-05-08 13:24 26K
[   ] nextcloud-12.0.4-1.el7.noarch.rpm 2017-12-19 17:26 40M
[   ] nextcloud-12.0.4-2.el7.noarch.rpm 2018-01-23 10:04 40M
[   ] nextcloud-12.0.5-1.ns7.noarch.rpm 2018-01-30 13:00 40M
[   ] nextcloud-13.0.1-1.el7.noarch.rpm 2018-03-20 11:09 40M
[   ] nextcloud-13.0.2-1.el7.noarch.rpm 2018-05-08 13:22 41M


7.3.1611: 11.x -> 12.x
http://packages.nethserver.org/nethserver/7.3.1611/updates/x86_64/Packages/
[   ] nethserver-nextcloud-1.1.0-1.ns7.noarch.rpm 2017-04-07 07:48 23K
[   ] nethserver-nextcloud-1.1.1-1.ns7.noarch.rpm 2017-04-24 07:16 23K
[   ] nethserver-nextcloud-1.1.2-1.ns7.noarch.rpm 2017-05-10 10:08 23K
[   ] nethserver-nextcloud-1.1.3-1.ns7.noarch.rpm 2017-05-22 12:11 23K
[   ] nethserver-nextcloud-1.1.4-1.ns7.noarch.rpm 2017-05-31 08:03 23K
[   ] nethserver-nextcloud-1.1.5-1.ns7.noarch.rpm 2017-07-12 12:25 24K
[   ] nethserver-nextcloud-1.1.6-1.ns7.noarch.rpm 2017-07-24 09:31 24K
[   ] nethserver-nextcloud-1.1.7-1.ns7.noarch.rpm 2017-08-30 10:20 24K
[   ] nextcloud-11.0.2-1.4.ns7.noarch.rpm 2017-04-08 13:47 35M
[   ] nextcloud-11.0.3-2.ns7.noarch.rpm 2017-05-22 12:11 37M
[   ] nextcloud-12.0.0-1.ns7.noarch.rpm 2017-05-31 08:01 38M
[   ] nextcloud-12.0.2-2.el7.noarch.rpm 2017-08-30 10:20 39M


7.2.1511:
http://packages.nethserver.org/nethserver/7.2.1511/updates/x86_64/Packages/ 
[   ] nethserver-nextcloud-1.0.3-1.ns7.noarch.rpm 2016-11-14 11:10 21K

Only if you don’t update regularly. Just update or enable automatic updates to get rid of the Nextcloud issue and maybe other ones in future.

@Neustradamus

Hi

Why bother? Normally, one would do a fresh 7.9 install nowadays, instead of a “fresh” install of 7.7…

Nobody cooks three year old vegetables and think they are “fresh”… :slight_smile:

Some people do it with 20 year old pepsi - freshly opened:

My 2 cents
Andy

It is to test, to show you a problem because there are NS 7.7 current servers in the World…

From the docs:

On community machines without any type of subscription, remember to regularly update the installed software to fix bugs, security issues and receive new features

@Neustradamus

There are still people running MSDos - and not only the latest 6.22…
But it’s not my / our problem.

No, there ARE NS 7.7 servers in the world, but they are NOT current!!!

@Neustradamus, if you would have an real-life problem let say:

" due to circumstances, x y z;
My nethserver installation got stuck at version 7.8.2003 and now i’m trying to get it up to date, however it fails to upgrade nextcloud. "

Good chance one of the (voluntary) community members (like me) will try to “talk” you through the process.

However you never gave me the impression you have a real issue with a nethserver-installation worth trying to salvage.
Actually I have the impression you kind of stumbled over a old VM , which never had a real-usage , which did not run/update for more than 6 months and now it failed to update.

If this is true you are wasting a lot of our time.

Let me rephrase this:

Nethserver 7.9.2009 was released on 1 December 2020, any clues why you system is still 7.8.2003?

2 Likes

Bad sysadmins not maintaining unsupported versions? Their problem, not the project…

3 posts were split to a new topic: Nethserver-nextcloud package version linked to Nextcloud version

Impossible to downgrade:

Log:

[root@server ~]# rpm -qa | grep nextcloud
nethserver-nextcloud-1.17.1-1.ns7.noarch

[root@server ~]# grep "'version'" /usr/share/nextcloud/config/config.php
  'version' => '19.0.3.1',

[root@server ~]# rpm -qa | grep nextcloud
nethserver-nextcloud-1.17.1-1.ns7.noarch

[root@server ~]# yum history packages *nextcloud
Loaded plugins: changelog, fastestmirror, nethserver_events
ID     | Action(s)      | Package
-------------------------------------------------------------------------------
    37 | Updated        | nethserver-nextcloud-1.14.2-1.ns7.noarch           EE
    37 | Update         |                      1.17.1-1.ns7.noarch           EE
    36 | Updated        | nethserver-nextcloud-1.9.2-1.ns7.noarch            EE
    36 | Update         |                      1.14.2-1.ns7.noarch           EE
    32 | Install        | nethserver-nextcloud-1.9.2-1.ns7.noarch            EE
history packages

[root@server ~]# occ --version
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Nextcloud 21.0.3

[root@server ~]# yum downgrade nethserver-nextcloud-1.14.2-1.ns7
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                                                  |  34 kB  00:00:00
 * ce-base: mirror.as29550.net
 * ce-extras: mirror.as29550.net
 * ce-sclo-rh: mirror.as29550.net
 * ce-sclo-sclo: mirror.as29550.net
 * ce-updates: mirror.as29550.net
 * epel: mirrors.ircam.fr
 * nethforge: nethesis-mirror.nokken.co.uk
 * nethserver-base: nethesis-mirror.nokken.co.uk
 * nethserver-updates: nethesis-mirror.nokken.co.uk
 * stephdl: nethesis-mirror.nokken.co.uk
ce-base/7/x86_64/signature                                                                                                                                            |  811 B  00:00:00
ce-base/7/x86_64/signature                                                                                                                                            | 3.6 kB  00:00:00 !!!
ce-extras/7/x86_64/signature                                                                                                                                          |  811 B  00:00:00
ce-extras/7/x86_64/signature                                                                                                                                          | 2.9 kB  00:00:00 !!!
ce-sclo-rh                                                                                                                                                            | 3.0 kB  00:00:00
ce-sclo-sclo                                                                                                                                                          | 3.0 kB  00:00:00
ce-updates/7/x86_64/signature                                                                                                                                         |  811 B  00:00:00
ce-updates/7/x86_64/signature                                                                                                                                         | 2.9 kB  00:00:00 !!!
nethforge/7/x86_64/signature                                                                                                                                          |  836 B  00:00:00
nethforge/7/x86_64/signature                                                                                                                                          | 3.6 kB  00:00:00 !!!
nethserver-base/7/x86_64/signature                                                                                                                                    |  836 B  00:00:00
nethserver-base/7/x86_64/signature                                                                                                                                    | 2.9 kB  00:00:00 !!!
nethserver-updates/7/x86_64/signature                                                                                                                                 |  836 B  00:00:00
nethserver-updates/7/x86_64/signature                                                                                                                                 | 3.6 kB  00:00:00 !!!
stephdl                                                                                                                                                               | 2.9 kB  00:00:00
No package nethserver-nextcloud-1.14.2-1.ns7 available.
Error: Nothing to do
[root@server ~]#
yum downgrade nethserver-nextcloud-1.16.7-1.ns7

unless the database was migrated to rh-mariadb105

1 Like

Thanks!
I think the wiki can be updated.

Remarks and bug at “occ migrations:execute core nextversiongoeshere”

a/

1/

[root@server ~]# grep "'version'" /usr/share/nextcloud/config/config.php
ANSWER
'version' => '19.0.3.1',

MUST TO ADD:

[root@server ~]# occ --version
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Nextcloud 21.0.3

MUST TO ADD:

[root@server ~]# rpm -qa | grep nextcloud
nethserver-nextcloud-1.17.1-1.ns7.noarch

[root@server ~]# yum history packages *nextcloud
ID     | Action(s)      | Package                                              
-------------------------------------------------------------------------------
    23 | Updated        | nethserver-nextcloud-1.1.7-1.ns7.noarch            EE
    23 | Update         |                      1.2.7-1.ns7.noarch            EE
    23 | Updated        | nextcloud-12.0.2-2.el7.noarch                      EE
    23 | Update         |           14.0.3-1.el7.noarch                      EE

-> NOT GOOD, and now there are only “nethserver-nextcloud”

2/

[root@server ~]# yum --showduplicates list *nextcloud

3/

[root@server ~]# yum downgrade nethserver-nextcloud-1.2.4-1.ns7 nextcloud-13.0.6-1.el7

-> NOT GOOD, there are only “nethserver-nextcloud”

4/

[root@server ~]# yum update nethserver-nextcloud nextcloud

-> NOT GOOD, there are only “nethserver-nextcloud”

b/

[root@server ~]# occ migrations:status core
occ migrations:status core
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
    >> App:                                                core
    >> Version Table Name:                                 oc_migrations
    >> Migrations Namespace:                               OC\Core\Migrations
    >> Migrations Directory:                               /usr/share/nextcloud/core/Migrations
    >> Previous Version:                                   18000Date20191204114856
    >> Current Version:                                    19000Date20200211083441
    >> Next Version:                                       20000Date20201109081915
    >> Latest Version:                                     21000Date20210309185127
    >> Executed Migrations:                                25
    >> Executed Unavailable Migrations:                    25
    >> Available Migrations:                               34
    >> New Migrations:                                     34
    >> Pending Migrations:                                 None

[root@server ~]# occ --version
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Nextcloud 21.0.3

[root@server ~]# occ migrations:execute core 19.0.3.1 // OR // occ migrations:execute core 21.0.3
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade

In MigrationService.php line 397:

  Version 19.0.3.1 is unknown. // OR // Version 21.0.3 is unknown. 


migrations:execute <app> <version>
[root@server2 ~]#

Thanks. Sure it can be updated, I know. Some examples are from previous releases as stated in the wiki:

I usually try to keep it updated but I don’t have the time to do the tests at every new release to put up to date real examples, nor predict from which version the user will try to update from (every user could have different command output), so the general guidelines. But you know it is a wiki, right?

3 Likes

Interresting: https://help.nextcloud.com/t/updates-between-multiple-major-versions-are-unsupported/7094/26

From: https://wiki.nethserver.org/doku.php?id=howto:nextcloud#exceptionupdates_between_multiple_major_versions_are_unsupported

All my commands - “b”

All my command - “c”

@mrmarkuz, @giacomo: “c” is better and I think it is possible to add in the code directly!
Users will have no problem.

I proposed it in the past as on option to consider but advising to ask first at the Nextcloud crew as we do not know for sure if there’s any extra step that should be taken into consideration (we have to think there’s some reason why Nextcloud is not doing it directly in case of skipping major releases: could be php/db requirements or anything else).

After a quick look at the source code it seems option c (occ migrations:migrate core) is enough (supposedly does all of option b steps).
Nextcloud is using the command on the updater script but it is not something I’ve tested skipping major releases.

@dnutan: Yes “c” is really good, maybe good to add in NethServer source code?