What upgrade first - NextCloudPi (from v1.52.1 to v1.52.2) or PHP (from 7.4.33 to 8.0)

Ok, so here we are:

  1. I rolled back a backup:
    – With sudo mc I started the midnight commander and changed the latest backup file to r/w for everyone (chmod).
    – By using mc I copied the backup file from my not supported USB drive to the SD card into the path /home/pi/ (seems to be the right fs).
    – I restored to a running NC instance (sudo nc-config) from the backup file to prevent unexpacted side effects while updating NC later.
  2. I updated php from 7.4 to 8.0 using this and this tutorial:
    – The first tutorial showed an unexpected error, something about certificates, so i decided to continue with the second tutorial.
    – The second tutorial left me with a merg of php 8.0 and 8.2. I am not sure if it was a consequenc of starting the php update with tutorial one and continuing with tutorial two.
    – As i run php -v I got the info that php 8.2 was installed and my running NC 25.0.6.1 stopped.
    – With dpkg -l | grep php | tee php.txt i saw that I had some php8.2 components installed.
    – With apt remove I uninstalled php8.2-common and php8.2-cli and installed the 8.0 versions and restartet php and the apache as described in tutorial two.
    – Running php -v showed now php 8.0.X.
  3. Updating to NC26.0:
    – The update to N26.0 was possible now by using nc-config again, but i had to update to 25.0.7 first.

Now everything is up and running, despite of php8.0-imagick, I couldn’t get it to run, but it is only for rendering of images, so I hope i will not need it by now. All that took me 12 to 15 hours, because I had to read and learn a lot again. Hopefully i will remember the learned stuff for the next catastrophy …
And yes, I fixed the problem with my USB-drive for backups.
Problem solved

1 Like