tflidd
July 28, 2023, 8:49am
2
You have to do a backup before you start changing things. You can backup the current state…
Regarding updating your system or php, there are a few topics here. I didn’t go through them all to see which applies the best (and probably I missed a few on the way):
I had a running installation for about a year. The usb-stick with the file system broke. I made a new install of debian bullseye on a raspberry pi 4. Then I installed nextcloud using this one-stop-solution from here:
https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh
That worked, Nextcloud was running, I could log in as ncp (»:4443«).
Then I tried to restore my backup, but it doesn’t run, because obviously the installation of nextcloud via this install script brought ph…
Debian 11 Stable on a x64 NUC
Nextcloud 24.0.5.1
NextCloudPi version v1.50.3
PHP 7.4.30
Major issue, PHP 8.1
Oct. 22nd I ran a package update on my Debian 11 server and it updated the PHP version to 8.1x. After this I was unable to access the webUI for Nextcloud, and Webdav wouldn’t communicate. I rolled it back with a snapshot to undo the package updates, and it all works again. I read here [SOLVED] After Debian 11 upgrade "Failed to connect to the database..." that Nextcloud doesn’t sup…
Ok, so here we are:
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.
I updated php from 7.4 to 8.0 using this and this tutorial:
– Th…
Nextcloud version: 25.0.1.1
Operating system and version: Debian GNU/Linux 11. 5.15.32-v8+ (aarch64)
Apache or nginx version: Apache/2.4.56 (Debian)
PHP version (eg, 7.4): PHP 7.4.33
The issue you are facing:
I’m running NextCloudPi v1.52.0.
When I go to update to Nextcloud 26, using the NCP admin I get this message:
[ nc-update-nextcloud ] (Thu May 11 21:25:57 BST 2023) We need to upgrade PHP. This process cannot be performed from the web UI. Please use 'ncp-config' from the terminal (v…
I was almost hit by first Murphy’s rule : Never try to fix something working !
I made a backup and export my NCP setting.
I wrote a new NCP image (1.52 + NC26 and PHP8).
I restored my backup and import my settings. (logically went back to NC25 but with PHP8.0)
=> the path to my datas was not restored, my Let’s encrypt was not working (couldn’t write registered adress file).
As I only have one MicroSD card I have to joggle between images.
At the end, I restored my NC25/PHP7.4 image and got …