Closed fortapache closed 2 years ago
The update expects only the first two numbers of the PHP version in ncp.cfg Please replace 7.4.30
with 7.4
and try the update again
The update expects only the first two numbers of the PHP version in ncp.cfg Please replace
7.4.30
with7.4
and try the update again
It worked perfect! Thank you so much for your big work.
Hi, it's my first time posting on Github and I'm not an advanced user, sorry if I'm not posting right. I've been using npi for a while and it always worked so nice. Some weeks ago my server stopped working and I think it was bc of an automatic update. After searching here I found that the problem was something related to the PHP version, I had the 7.4.30 installed and the ncp.cfg file said that I had the 8.1, so I edited the config file to match my current verison and the server worked nice. I also have upgraded to bullseye and the NextcloudPi to 1.50.3. My problem comes whenever I try to update the Nextcloud version to the 24.0.X release. The update goes nice util it need to upgrade the PHP, I get the following output and then it rolls back to the previous version.
PHP failed upgrade output
``` Upgrading PHP... --2022-10-10 20:46:29-- https://packages.sury.org/php/apt.gpg Resolving packages.sury.org (packages.sury.org)... 138.199.15.193 Connecting to packages.sury.org (packages.sury.org)|138.199.15.193|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1769 (1.7K) [application/octet-stream] Saving to: '/etc/apt/trusted.gpg.d/php.gpg' /etc/apt/trusted.gp 100%[===================>] 1.73K --.-KB/s in 0s 2022-10-10 20:46:29 (9.56 MB/s) - '/etc/apt/trusted.gpg.d/php.gpg' saved [1769/1769] Get:1 http://archive.raspberrypi.org/debian bullseye InRelease [23.7 kB] Hit:2 http://deb.debian.org/debian bullseye InRelease Get:3 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB] Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB] Get:5 https://packages.sury.org/php bullseye InRelease [6841 B] Hit:6 https://download.docker.com/linux/debian bullseye InRelease Get:7 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [301 kB] Get:8 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [293 kB] Get:9 https://packages.sury.org/php bullseye/main arm64 Packages [336 kB] Get:10 https://packages.sury.org/php bullseye/main armhf Packages [336 kB] Fetched 1389 kB in 4s (366 kB/s) Reading package lists... Done Stopping apache and php-fpm... Failed to stop php7.4.30-fpm.service: Unit php7.4.30-fpm.service not loaded. Something went wrong while upgrading PHP. Rolling back to version 7.4.30... Failed to stop php8.1-fpm.service: Unit php8.1-fpm.service not loaded. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = "en_GB.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_GB.UTF-8"). ERROR: Conf php8.1-fpm does not exist! Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye InRelease Hit:3 http://deb.debian.org/debian-security bullseye-security InRelease Hit:4 http://deb.debian.org/debian bullseye-updates InRelease Hit:5 https://download.docker.com/linux/debian bullseye InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package php8.1 E: Couldn't find any package by glob 'php8.1' E: Couldn't find any package by regex 'php8.1' E: Unable to locate package php8.1-curl E: Couldn't find any package by glob 'php8.1-curl' E: Couldn't find any package by regex 'php8.1-curl' E: Unable to locate package php8.1-gd E: Couldn't find any package by glob 'php8.1-gd' E: Couldn't find any package by regex 'php8.1-gd' E: Unable to locate package php8.1-fpm E: Couldn't find any package by glob 'php8.1-fpm' E: Couldn't find any package by regex 'php8.1-fpm' E: Unable to locate package php8.1-cli E: Couldn't find any package by glob 'php8.1-cli' E: Couldn't find any package by regex 'php8.1-cli' E: Unable to locate package php8.1-opcache E: Couldn't find any package by glob 'php8.1-opcache' E: Couldn't find any package by regex 'php8.1-opcache' E: Unable to locate package php8.1-mbstring E: Couldn't find any package by glob 'php8.1-mbstring' E: Couldn't find any package by regex 'php8.1-mbstring' E: Unable to locate package php8.1-xml E: Couldn't find any package by glob 'php8.1-xml' E: Couldn't find any package by regex 'php8.1-xml' E: Unable to locate package php8.1-zip E: Couldn't find any package by glob 'php8.1-zip' E: Couldn't find any package by regex 'php8.1-zip' E: Unable to locate package php8.1-fileinfo E: Couldn't find any package by glob 'php8.1-fileinfo' E: Couldn't find any package by regex 'php8.1-fileinfo' E: Unable to locate package php8.1-ldap E: Couldn't find any package by glob 'php8.1-ldap' E: Couldn't find any package by regex 'php8.1-ldap' E: Unable to locate package php8.1-intl E: Couldn't find any package by glob 'php8.1-intl' E: Couldn't find any package by regex 'php8.1-intl' E: Unable to locate package php8.1-bz2 E: Couldn't find any package by glob 'php8.1-bz2' E: Couldn't find any package by regex 'php8.1-bz2' E: Unable to locate package php8.1-mysql E: Couldn't find any package by glob 'php8.1-mysql' E: Couldn't find any package by regex 'php8.1-mysql' E: Unable to locate package php8.1-bcmath E: Couldn't find any package by glob 'php8.1-bcmath' E: Couldn't find any package by regex 'php8.1-bcmath' E: Unable to locate package php8.1-gmp E: Couldn't find any package by glob 'php8.1-gmp' E: Couldn't find any package by regex 'php8.1-gmp' E: Unable to locate package php8.1-redis E: Couldn't find any package by glob 'php8.1-redis' E: Couldn't find any package by regex 'php8.1-redis' E: Unable to locate package php8.1-common E: Couldn't find any package by glob 'php8.1-common' E: Couldn't find any package by regex 'php8.1-common' Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package php7.4.30 E: Couldn't find any package by glob 'php7.4.30' E: Couldn't find any package by regex 'php7.4.30' E: Unable to locate package php7.4.30-curl E: Couldn't find any package by glob 'php7.4.30-curl' E: Couldn't find any package by regex 'php7.4.30-curl' E: Unable to locate package php7.4.30-gd E: Couldn't find any package by glob 'php7.4.30-gd' E: Couldn't find any package by regex 'php7.4.30-gd' E: Unable to locate package php7.4.30-fpm E: Couldn't find any package by glob 'php7.4.30-fpm' E: Couldn't find any package by regex 'php7.4.30-fpm' E: Unable to locate package php7.4.30-cli E: Couldn't find any package by glob 'php7.4.30-cli' E: Couldn't find any package by regex 'php7.4.30-cli' E: Unable to locate package php7.4.30-opcache E: Couldn't find any package by glob 'php7.4.30-opcache' E: Couldn't find any package by regex 'php7.4.30-opcache' E: Unable to locate package php7.4.30-mbstring E: Couldn't find any package by glob 'php7.4.30-mbstring' E: Couldn't find any package by regex 'php7.4.30-mbstring' E: Unable to locate package php7.4.30-xml E: Couldn't find any package by glob 'php7.4.30-xml' E: Couldn't find any package by regex 'php7.4.30-xml' E: Unable to locate package php7.4.30-zip E: Couldn't find any package by glob 'php7.4.30-zip' E: Couldn't find any package by regex 'php7.4.30-zip' E: Unable to locate package php7.4.30-fileinfo E: Couldn't find any package by glob 'php7.4.30-fileinfo' E: Couldn't find any package by regex 'php7.4.30-fileinfo' E: Unable to locate package php7.4.30-ldap E: Couldn't find any package by glob 'php7.4.30-ldap' E: Couldn't find any package by regex 'php7.4.30-ldap' E: Unable to locate package php7.4.30-intl E: Couldn't find any package by glob 'php7.4.30-intl' E: Couldn't find any package by regex 'php7.4.30-intl' E: Unable to locate package php7.4.30-bz2 E: Couldn't find any package by glob 'php7.4.30-bz2' E: Couldn't find any package by regex 'php7.4.30-bz2' E: Unable to locate package php7.4.30-json E: Couldn't find any package by glob 'php7.4.30-json' E: Couldn't find any package by regex 'php7.4.30-json' E: Unable to locate package php7.4.30-common E: Couldn't find any package by glob 'php7.4.30-common' E: Couldn't find any package by regex 'php7.4.30-common' E: Unable to locate package php7.4.30-readline E: Couldn't find any package by glob 'php7.4.30-readline' E: Couldn't find any package by regex 'php7.4.30-readline' E: Unable to locate package php7.4.30-mysql E: Couldn't find any package by glob 'php7.4.30-mysql' E: Couldn't find any package by regex 'php7.4.30-mysql' E: Unable to locate package php7.4.30-bcmath E: Couldn't find any package by glob 'php7.4.30-bcmath' E: Couldn't find any package by regex 'php7.4.30-bcmath' E: Unable to locate package php7.4.30-gmp E: Couldn't find any package by glob 'php7.4.30-gmp' E: Couldn't find any package by regex 'php7.4.30-gmp' Clearing opcache... This can take some time. Please don't interrupt the process/close your browser tab. Done. Running nc-limits Using 715364352 for PHP max memory Using 6 PHP threads perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = "en_GB.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_GB.UTF-8"). ERROR: Conf php7.4.30-fpm does not exist! Failed to start php7.4.30-fpm.service: Unit php7.4.30-fpm.service not found. PHP upgrade has been successfully reverted Abort Clean up... Rolling back to backup ```Thanks in advanced for the help and for the big work! Now I have the server running but I'd like to fix this in order to have a healthy server :))))