Error when installing Nextcloud on DietPi

Creating a bug report/issue

Required Information

  • DietPi version | cat /boot/dietpi/.version
    root@DietPi:/tmp/DietPi-Software# cat /boot/dietpi/.version

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    root@DietPi:/tmp/DietPi-Software# echo $G_DISTRO_NAME $G_RASPBIAN
    bookworm 0

  • Kernel version | uname -a
    root@DietPi:/tmp/DietPi-Software# uname -a
    Linux DietPi 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
    root@DietPi:/tmp/DietPi-Software# echo $G_HW_MODEL_NAME
    RPi 4 Model B (aarch64)

  • Power supply used | (EG: 5V 1A RAVpower)
    Standard cord that came with the pi

  • SD card used | (EG: SanDisk ultra)
    SanDisk Ultra 512GB

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)

  • Was the software title installed freshly or updated/migrated?
    Brand new install

  • Can this issue be replicated on a fresh installation of DietPi?

Actual behaviour

│ Nextcloud ncc install │
│ - Command: ncc maintenance:install --no-interaction --database mysql │
│ --database-name nextcloud --database-user tmp_root --database-pass │
│ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --admin-user admin --admin-pass │
│ XXXXXXXXXXXXXXX --data-dir /mnt/dietpi_userdata/nextcloud_data │
│ - Exit code: 1 │
│ - DietPi version: v8.13.2 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 3 | │
│ DISTRO: 7 │
│ - Image creator: DietPi Core Team │
│ - Pre-image: from scratch │
│ - Error log: │
│ This version of Nextcloud is not compatible with PHP>=8.2.
You are │
│ currently running 8.2.2.

You are running Debian Bookworm, which is stil a testing Debian version. Actually Nextcloud is not supporting PHP 8.2 ootb.

There is a hack needed to get NC working on Bookworm. Please switch to our beta branch, as we have the workaround implemented there. Or wait for the upcoming release DietPi V8.14

Where can I find the beta image?

It’s not an image, just a different branch that can be activated on every system.

Following will bump you directly to Beta