Bug 23231 - nextcloud major version update
Summary: nextcloud major version update
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
Whiteboard: MGA6-64-OK MGA6-32-OK
Keywords: advisory, validated_update
Depends on:
Reported: 2018-06-26 08:11 CEST by José Jorge
Modified: 2018-07-16 20:45 CEST (History)
5 users (show)

See Also:
Source RPM: nextcloud
Status comment:


Description José Jorge 2018-06-26 08:11:39 CEST
Nextcloud releases bugfix and security updates every month.

Mageia 6 has upgraded to Nc12 in May, but this version will be EOL in August. So I will push version 13 to updates_testing to ensure a smooth upgrade.

Version 13.0.4 pushed for now. Hopefully no config file changes, so a much easier upgrade than 11->12 one.
Comment 1 José Jorge 2018-06-26 08:18:08 CEST
Suggested advisory :
Nextcloud releases bugfix and security updates every month.
This update also upgrades to version 13 as version 12 is EOL in August 2018.
It brings also Nextcloud Talk, a private videoconference solution with Android and iOS clients.




CC: (none) => lists.jjorge

Comment 2 José Jorge 2018-06-27 11:03:59 CEST
Tested in x86_64 for my own server. All went smoothly simply with a click in the upgrade button in the login page.

Whiteboard: (none) => MGA6-64-OK

Comment 3 Morgan Leijström 2018-06-27 20:17:08 CEST
Hi José
I simply for now say thanks :) and follow this for updating Wiki.
I do not have a NC installation currently to test.

CC: (none) => fri

Comment 4 Morgan Leijström 2018-06-27 20:23:11 CEST
Do you think my notes on optimising is OK?
Comment 5 Dave Hodgins 2018-06-28 21:16:57 CEST
Can you confirm this does not break existing installs? As in installing the
update on a system with the service already running, without any further
changes by the user, will it continue working on a reboot?

CC: (none) => davidwhodgins

Comment 6 Morgan Leijström 2018-06-29 19:11:11 CEST
This is a major version update.

I have stated it before, so I will only repeat it once here: 

If we are going to adhere to the policy that updates shouldn't break existing running services, Nextcloud should *never* be in updates, and especially major version updates may go wrong.

It needs at least a click in the web ui or to use corresponding cli command, and many things can go wrong even if our packaging is perfect, (just check the NC forum) so if the content is important users should always take backups of data and database, and then update NC.

I dont know if but probably it is still the way that after installing the update *any* user can initiate the real upgrade via the web UI, and that is not good if sysadmin was not prepared and have not made backup.  On large data it can also take much time.  Sysadmin must also be prepared to disable, upgrade, enable extensions.

To make it worse: if users are upgrading from Mageia 5, and have updates repos enabled, the major version will skip more than what is supported.

Summary: nextcloud bugfix update => nextcloud major version update

Comment 7 José Jorge 2018-06-30 10:16:27 CEST
(In reply to Morgan Leijström from comment #6)
Your notes on optimising seem good to me, I have applied on my system.
> To make it worse: if users are upgrading from Mageia 5, and have updates
> repos enabled, the major version will skip more than what is supported.

Yes, but we have no choice : providing a web service means security updates, and for sysadmins learning how to use it. Users that only upgrade from MGA5 now are users that don't care about security. They can still downgrade to version 12 to upgrade, as this is upstream choice.

We target both needs:
- use nextcloud without being a sysadmin for small users;
- use our package as real sysadmin and as such, one puts nextcloud in maintenance mode before applying any update; 

Tested in a second system, x86_64.
Comment 8 Dave Hodgins 2018-06-30 22:53:29 CEST
Having nextcloud as a regular update can break existing working installs, which
is not acceptable.

Having nextcloud as a backport can leave users unaware there is an update that
needs to be installed, also, not acceptable. By default all users can install
updates for already installed packages, and those users may not be the
nextcloud admin.

A way this could be handled would be to keep nextcloud as a backport, but
create a new package that goes in core updates called something like
nextcloud-check, that is kept in sync with new versions in backports, and is
required by the nextcloud package. When installed, the nextcloud-check update would
display detailed info that there is a new backport available with instructions
(or have a script for the admin user to run) to download and install the new

That way admin users would be made aware of new backports, but wouldn't have
existing installs unexpectedly broken by one of their non-admin users choosing to
install updates.
Comment 9 Morgan Leijström 2018-07-02 07:26:48 CEST
nextcloud-check is a very good idea :)
Comment 10 David Walser 2018-07-02 23:42:14 CEST
Morgan, if nextcloud can't be in updates, then it can't be packaged in Mageia at all.  Either we can support it or we can't.  The fact that you have to upgrade from one major version to the next without skipping any is bad, but it's well known and it's an upstream issue.  There's nothing we can do about it.  Sysadmins are expected to read the Release Notes, which should address issues like this, so that they know about packages that require extra care and/or manual intervention.

As far as something needing to be initiated in the web app (or PHP CLI) after a package update, that is not unique to this package and has been the case for other webapps as well.  Sysadmins need to be aware of this and take extra care with how and when the package is updated.

We shouldn't have to do any extra unusual machinations like the nextcloud-check suggestion; let's not overcomplicate things.  It's bad enough as it is.
Comment 11 Morgan Leijström 2018-07-03 07:11:50 CEST
Yes it is known to be cumbersome.
We just have different ideas about how to handle that :)
Comment 12 Brian Rockwell 2018-07-08 23:20:44 CEST
$ uname -a
Linux localhost 4.14.50-desktop-2.mga6 #1 SMP Mon Jun 18 13:19:12 UTC 2018 i686 i686 i686 GNU/Linux

Instaled Nextcloud 12.06 with sqlite.  This worked as designed, I tested by uploading a video to the system.

To satisfy dependencies, the following package(s) also need to be installed:

- nextcloud-mysql-13.0.4-1.mga6.noarch
- nextcloud-sqlite-13.0.4-1.mga6.noarch
- php-pcntl-5.6.36-1.mga6.i586

339KB of disk space will be freed.

I rebooted the instance and then installed Nextcloud 13.04.

In this case, the NextCloud team has developed an automated upgrade process.  It explains what it will upgrade and then performs it.  My users and files were retained without issue.  12.06 to 13.04 works smoothly.  I think this can be pushed as an update

Works as Designed (and better than usual)

Whiteboard: MGA6-64-OK => MGA6-64-OK MGA6-32-OK
CC: (none) => brtians1

Comment 13 Morgan Leijström 2018-07-10 16:48:27 CEST
For discussion: Maybe we should step back from packaging the server from mga7 on.

Instead, provide good instructions for manual install.

The server have good abilities to update itself, if file rights etc are set for allowing it.  I suggest the basic instructions be written to support that, so home users and the like can rather easily install it, and let it update itself.

The server announce in the GIU when updates are available, in four different channels admin can select (production, stable, beta, daily).

Also provide some hints providing a more locked down installation for them wishing more security and reliability, with some hint to what to temporarily change for the server to auto update, and link to server documentation how to do it manually (and note on any specifics to Mageia) for those that prefer to do it that way.  And of course how to handle backing up.

For mga6 -> mga7 note how it is currently set up by the mga6 rpm, and what need be changed to facilitate auto update. And also what can be optimised when upgrading mga6 to mga7 environment. And in mga7 release notes link to that.

Put all at https://wiki.mageia.org/en/Nextcloud , based on packagers knowledge and https://wiki.mageia.org/en/OwnCloud but much cleaned.
Comment 14 Dave Hodgins 2018-07-11 23:00:07 CEST
Advisory committed to svn. Validating the update.

Keywords: (none) => advisory, validated_update
CC: (none) => sysadmin-bugs

Comment 15 Mageia Robot 2018-07-11 23:48:04 CEST
An update for this issue has been pushed to the Mageia Updates repository.


Resolution: (none) => FIXED

Comment 16 David Walser 2018-07-16 20:45:07 CEST
This also fixed CVE-2018-376[12]:

Note You need to log in before you can comment on or make changes to this bug.