Upgrading Ubuntu 22.04.5/PHP/Postgresql ?
Steps To Reproduce
Hello, Sorry to create this message here, but i did not found any other community support for hanssonit nextcloud install script.
I have a home hyperv with Ubuntu 22.04.5 and NextCloud installed with your script, but now I'm stucked.
- The SO is saying that I can do a dist-upgrade, but i am afraid i could break anything, is that OK to do it?
- Admin Overview i have the message "You are currently running PHP 8.1.32. PHP 8.1 is deprecated since Nextcloud 30. Nextcloud 32 may require at least PHP 8.2", but even after run the update.sh or apt upgrade, it does not change that.
- Everytime i try to had an user and install the phone app to sincronize with server, it top the CPU usage, no matter how many cores I give to the VM and does not stop. It stop if I reboot the server, but after the client try to syncronize, it tops again... Does that have to be with the installed Postgres 14.17 when the newer version is the 17?
I really need help, this is a home server backup for the family phones and it will be hard if i loose the data already in the server.
Thank you very much.
Expected Result
Help...
Actual Result
Not funcional.
Screenshots, Videos, or Pastebins
No response
Additional Context
No response
Build Version
Nextcloud Hub 10 (31.0.4)
Environment
By using the scripts
Environment Details
Operating System: Linux 6.8.0-1027-azure x86_64 - Ubuntu 22.04.5 CPU: Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz (24 threads) Memory: 7.52 GB PHP 8.1.32 PostgreSQL 14.17 (Ubuntu 14.17-0ubuntu0.22.04.1)
The script is now built to work with Ubuntu 24.04, I have done a dist upgrade on one of my instances without issues.
While I cannot 'promise' you that everything on your specific setup will be fine... Mine updated without issue and is now running 24.04. I even upgraded php to 8.2 a while back and it is still running 8.2 on the newest release of Nextcloud with all the apps I use, just fine.
This particular instance is one of my oldest ones that started on Ubuntu 22... maybe even older. I have managed to keep it going just fine while doing dist-upgrade to keep in line with the script.
Updating php isn't part of the Nextcloud scripts, and you must update php separately.
I may have some notes on how I updated php... but it was quite a while ago, and I believe there are some decent tutorials out there on that which you should be able to find.
But you will need to update both Ubuntu (sudo apt update && sudo apt do-release-upgrade) AND php (following a tutorial, or even asking an 'AI' for assistance... unless I can find some notes for you) prior to being able to then run the sudo bash /var/scripts/menu.sh and update nextcloud with the script.
Thank you for yor help, crowetic, i will try. :)
I guess it's not that easy.
After upgrading from 22.04.5 to 24.04 the NextCloud does not work, tryed to run the update.sh and got this message:
Your current version is still not compatible with the version required to run this script. To upgrade between major versions, please check this out: https://shop.hanssonit.se/product/upgrade-between-major-owncloud-nextcloud-versions/
So, I got to pay to do the upgrade?
Ah, I see... you waited too long in between updates... This means you are too far behind for the script to do the update. Which means there are a lot more 'steps' involved in the update process.
You will have to do some steps manually now, and the process is MUCH more difficult.
What I know is this...
You must hit each 'major version' sequentially in order to complete the task.
You can see 'supported upgrade paths' here - https://docs.nextcloud.com/server/latest/admin_manual/maintenance/upgrade.html
it's not a simple process, but it's not impossible either.
No, that is not right... i run update.sh every week or so. I did a rollback and it's working now, but with ubuntu 22.04.5 and the version of Nextcloud [Nextcloud Hub 10] (31.0.4)
I have same issue. I did update every week. And after I upgrade to 24.04 my Nextcloud is down. Lucky me, I did backup of VM, but anyway. I followed official NC Website for upgrade but not luck.
Php is not automatically upgraded. And ubuntu is not automatically upgraded.
The vm is created to be as stable as possible so that an automatic php upgrade wont break the system. We follow the ubuntu distribution as far as possible That means that if you have 22.04 version it will have php 8.1.
But when things happen like now when a never php version is needed. One has two options to upgrade php manually or do a dist upgrade to 24.04 and get php 8.3 that way
The vm has pinned php packages. If that hold is removed an os upgrade will work. Keep in mind that you also need to fix the php config and database. That is not taken care of automatically.
Nothing in the vm prevents you do to a manual upgrade yourself.
If you have problems with this. We offer upgrade services. Either to upgrade the vm completely or upgrade php. OR if you upgraded and its stuck in a broken state we can assist on a 30 minute basis.
No, that is not right... i run update.sh every week or so. I did a rollback and it's working now, but with ubuntu 22.04.5 and the version of Nextcloud [Nextcloud Hub 10] (31.0.4)
if you had updated every week, that would mean that you wouldn't have fallen so far behind in nextcloud versions that it is telling you that you can't update because you're too far behind.
The only way you get that message, is if you waited too long between updates, and/or something else is preventing you from actually updating.
Maybe you were running the updater, thinking you updated, but in reality it was failing and you didn't notice?