Php 8.0 problem in ncp

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

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 :heart:

Nextcloud version (eg, 20.0.5) : 23.0.2
Operating system and version (eg, Ubuntu 20.04) : `Raspbian Bullseye
Apache or nginx version (eg, Apache 2.4.25) : 2.4.52
PHP version (eg, 7.4) : 8.0

The issue you are facing:

troubleshooting this issue:

lead my that ncp does not use the correct php Version of my pi.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. move nc-datadir
[ nc-datadir ] (Sat Mar 5 01:36:21 CET 2022)
Maintenance mode enabled
moving data directory from /media/data1/ncdata to /media/data1/ncdata1...
BTRFS filesystem detected
Create subvolume '/media/data1/ncdata1'
Nextcloud is in maintenance mode, hence the database isn't accessible.
Cannot perform any command except 'maintenance:mode --off'

System config value logfile set to string /media/data1/ncdata1/data/nextcloud.log
Nextcloud is in maintenance mode, hence the database isn't accessible.
Cannot perform any command except 'maintenance:mode --off'

System config value tempdirectory set to string /media/data1/ncdata1/data/tmp
sed: can't read /etc/php/7.3/cli/php.ini: No such file or directory

Also the ncp.cfg looks wrong
I am on bullseye and use php8.0 as recommended in the documentation.

{
“nextcloud_version”: “23.0.2”,
“php_version”: “7.3”,
“release”: “buster”,
“datadir”: “/media/data1/ncdata1/data”
}