Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade automation and management #178

Closed
sushidave opened this issue Jul 24, 2018 · 7 comments
Closed

Upgrade automation and management #178

sushidave opened this issue Jul 24, 2018 · 7 comments

Comments

@sushidave
Copy link

sushidave commented Jul 24, 2018

Automate Nextcloud and app upgrades, similar to WordPress, offering options for:

Auto-Upgrade:

  • enable/disable

Release type selector:

  • minor/major releases
  • apps

Email notification:

  • enable/disable
  • for available new releases
  • after upgrades have been installed
  • for failed upgrades fails, stating the reason
  • recipient: admin email address (default) or custom email addresses

Backup management:

  • max. number of backups to be kept (= auto-delete older backups) *)
  • deletion of individual backups *)

*) See these forum posts:

@MorrisJobke
Copy link
Member

Backup management:

max. number of backups to be kept (= auto-delete older backups) *)
deletion of individual backups *)

Those are already done in Nextcloud 14: nextcloud/server#9855

Not configurable, but I also don't see a need to make this configurable.

@MorrisJobke
Copy link
Member

Regarding the automatic run:

The plan for this was always to run it in an automated fashion. It was not yet heavily tested, because some crucial thinks aren't fully tested yet (like rollbacks in all possible situations - they only work for some early steps but the latter steps could run into issues where it is not fully rolled back).

But you can test this by running the updater.phar in the non-interactive mode, by doing this:

$ php -u www-data php updater.phar -n

This will always run the update of the code followed by an occ upgrade and leaving the maintenance mode again.

We just run somehow in a corner case where the upgrade is somehow not fully completed and occ upgrade still needs to run, which is kind of bad and we are debugging it right now. See nextcloud/server#10362 for more details.

The idea is then to put the above command in the crontab and run it every night to be up to date. The further vision is to be able to pin the version to a given constraint to have a bit more control over the automatic upgrades, which is right now controlled over the channels.

@MorrisJobke MorrisJobke changed the title Upgrade automation and management (Feature request) Upgrade automation and management Jul 25, 2018
@MorrisJobke
Copy link
Member

for available new releases

Already the case in the server itself (see the update notification that is enabled by default) - it has an option to notify people.

apps updates

Those are fully handled inside the server and we also not plan to add them to the updater, because it should solve one issue very reliable: "update the server" nothing more and nothing less.

enable/disable

Which is basically an "enable crontab entry or not".

@sushidave
Copy link
Author

@MorrisJobke Thank you very much for your status update and helpful information.

@fuco809
Copy link

fuco809 commented Feb 25, 2019

release channels behaviour feature request:

would be nice if also a channel for "patches only" were available for updates.
https://nextcloud.com/release-channels/

sometimes i just want to rollout available patches and not switch for example from 14.0.4 directly to v15.
cause: i had more to test after a bigger release upgrade than just a patch.

@MorrisJobke
Copy link
Member

sometimes i just want to rollout available patches and not switch for example from 14.0.4 directly to v15.
cause: i had more to test after a bigger release upgrade than just a patch.

We fixed that 2 weeks ago. For details see my description of the new behavior in nextcloud/server#8799 (comment) (also the text in the update notification and channel selector was updated with this)

@MorrisJobke
Copy link
Member

This seems to be working with the -n option and can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants