help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): 22.2.7
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04 LTS
Apache or nginx version (eg, Apache 2.4.25): 2.4.41
PHP version (eg, 7.4): 7.4
@bernd.lentes
I think it is not a hard job to update Nextcloud sudo -u www-data php updater/updater.phar
The problem is that you must at some point upgrade Ubuntu 20.04 LTS to Ubuntu 22.04 LTS. I think that no automatic updater will take you up. For updates and in case of errors you should always have some knowledge anyway or better leave it alone.
If you host Nextcloud in the internet you can change to a Managed Nextcloud (e.g. with your own domainname) and your hoster upgrades the Nextcloud for you.
The snap and AIO will update PHP for you automatically so new OS updated do not need to be applied that often. Also OS updates will likely not break your instance as Nextcloud is containerized.
Snap upgrades Ubuntu 20.04 LTS to Ubuntu 22.04 LTS and to Ubuntu 24.04 LTS? I thank rather the update of the operating system leads to the update of Snap. Thank you. Learned something again.
No But you don’t have to upgrade to the latest LTS release, in order to get e.g new PHP versions, beacuase the Snap is more or less self contained. Same goes for Nextcloud AIO. As long as you can run a supported Docker and Docker Compose version on it, you can run Nextcloud AIO.
Of course you are right. But I was referring more to the longer-term upgrade such as 2, 4, 6 or 8 years. At some point you also have to change the Ubuntu version. Also the view that you could skip an LTS release is wrong. Thus, Snap only helps indirectly and in the short term.
Yes you need to upgrade the OS at some point but breakage of the Nextcloud is very unlikely when you run Nextcloud with AIO or snap since the instance is then containerized which will likely not break it upon the OS update.
Well technically you cannot skip it but you can use the same version for five years and then you have to do two release-upgrades in order to upgrade to the latest version
@szaimen@bb77
Yes you are both right. But mostly these people who think they must not upgrade LTS after two years (and yes they are right) gets more problems after four or five years. Often the Nextcloud or other software is then also hopelessly outdated. Ubuntu LTS is a little bit like Windows XP and Windows 10. No need for dist-upgrade over a lot of years. Users and admins ike it.
If there are other things installed natively on the instance, I agree with you. With a minimal installation that is only used for snaps, there will hardly be any problems. I asume the snap deamon will be upgraded anyways, because they have to make sure that every snap is running on every supported Ubuntu version. But I’m not a 100% sure about that.
Not as a builtin straight out of the box feature. This is not adviceable anyway. Can you automate NC update/upgrade? Yes.
Automating without proper backup and restore strategy, is a dangerous path. There has been cases where NC updates has stalled, failed or bricked a NC instance.
Because each installation is unique for most part, it is not possible to make one solution for backup-restore routine, hence not possible to deliver an automated update feature in a safe way. However:
NC can be updated by CLI, and the updater script will end without updating, if there is no new version. Lookup the CLI occ commands in the documentation, and you are set to go.
My own setup can do this, however I use the no backup parameter, as I do automatic snapshotting each day using the builtin snapshotting scheduler in LXC, as I runs NC in a linux container. So all I has to do if an automated backup was going wrong, was to revert to yesterday snapshot, or the snapshot created just before update procedure. Then all I has to do is to disable my cronjob, report the issue to nextcloud, revert to older snapshot, and thats it.
So the answer is yes. There is an easy way, if you have a clear overview of your environment, and knows what you are doing. Script it. This is mine. Bear in mind that this is my “manuel” script, as my fully automated, robots the console inputs, and is unique to me.
You can one-click configure automatic updates in NextcloudPi.
Do note we offer a very conservative release cycle.
Example, 24 has not been automatically rolled out yet.
It is the most conservative release cycle available afaik, but it is also a simple apache/mariadb/redis setup with webui / cli control of updates, backups, etc.
I created some time ago this script to do some optimizacions and update automatically:
First of all… I created for root user… This is a bad practise. Create it for www-data user, it is more secure.