Updating DietPi has broken Nextcloud installation Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
gobstopper
Posts: 30
Joined: Sun Jul 14, 2019 5:05 pm

Re: Updating DietPi has broken Nextcloud installation

Post by gobstopper »

Hi -

OK - done that. Web service now running again, and I am able to hit the root placeholder page.

When trying the /nextcloud URL I now have something new. Instead of the generic "Internal server error" message I had been seeing previously, the system is now displaying a Nextcloud look-and-feel web page (logo, etc...) but with the following displayed in the middle of the page which I think was what you were originally working towards in respect of getting a response and then helping me to fix PHP -
Error

PHP module cURL not installed.
Please ask your server administrator to install the module.
PHP modules have been installed, but they are still listed as missing?
Please ask your server administrator to restart the web server.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Updating DietPi has broken Nextcloud installation

Post by Joulinar »

let's see if we can install the required module

Code: Select all

apt update
apt install php7.3-curl
dietpi-services restart
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gobstopper
Posts: 30
Joined: Sun Jul 14, 2019 5:05 pm

Re: Updating DietPi has broken Nextcloud installation

Post by gobstopper »

Thanks (again)

It was looking encouraging and then this popped up when I attempted to install the following came up -

Code: Select all

apt install php7.3-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.3-curl : Depends: php7.3-common (= 7.3.31-1~deb10u1) but 7.3.31-1+0~20210923.88+debian9~1.gbpac4058 is to be installed
E: Unable to correct problems, you have held broken packages.
Thought I'd use some initiative and try

Code: Select all

apt install php7.3-common
, but it reports that this module is already at the newest version (7.3.31-1+0~20210923.88+debian9~1.gbpac4058).

The key seems to be in these held broken packages.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Updating DietPi has broken Nextcloud installation

Post by Joulinar »

Ah it's still the incorrect package from stretch. Let's check what is installed

Code: Select all

dpkg -l | grep 'php'
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gobstopper
Posts: 30
Joined: Sun Jul 14, 2019 5:05 pm

Re: Updating DietPi has broken Nextcloud installation

Post by gobstopper »

Output of the command -

Code: Select all

 dpkg -l | grep 'php'
ic  libapache2-mod-php8.0         8.0.10-1+0~20210826.23+debian9~1.gbp9ab3fd                              armhf        server-side, HTML-embedded scripting language (Apache 2 module)
ii  php-apcu                      5.1.17+4.0.11-1                                                         armhf        APC User Cache for PHP
ii  php-common                    2:84+0~20210621.36+debian9~1.gbp28513e                                  all          Common files for PHP packages
ii  php-igbinary                  3.0.0-1                                                                 armhf        igbinary PHP serializer
ii  php-pear                      1:1.10.12+submodules+notgz+20210212-1+0~20210228.21+debian9~1.gbpf2b98f all          PEAR Base System
ii  php-php-gettext               1.0.12-0.1                                                              all          read gettext MO files directly, without requiring anything other than PHP
ii  php-phpseclib                 2.0.14-1                                                                all          implementations of an arbitrary-precision integer arithmetic library
ii  php-redis                     4.2.0-1                                                                 armhf        PHP extension for interfacing with Redis
ii  php7.3-cli                    7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        command-line interpreter for the PHP scripting language
ii  php7.3-common                 7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        documentation, examples and common module for PHP
rc  php7.3-curl                   7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        CURL module for PHP
ii  php7.3-fpm                    7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        server-side, HTML-embedded scripting language (FPM-CGI binary)
ii  php7.3-gd                     7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        GD module for PHP
ii  php7.3-intl                   7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        Internationalisation module for PHP
ii  php7.3-json                   7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        JSON module for PHP
ii  php7.3-mbstring               7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        MBSTRING module for PHP
ii  php7.3-mysql                  7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        MySQL module for PHP
ii  php7.3-opcache                7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        Zend OpCache module for PHP
ii  php7.3-readline               7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        readline module for PHP
ii  php7.3-xml                    7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii  php7.3-zip                    7.3.31-1+0~20210923.88+debian9~1.gbpac4058                              armhf        Zip module for PHP
ic  php8.0-apcu                   5.1.20+4.0.11-1+0~20210304.24+debian9~1.gbp1c3d4d                       armhf        APC User Cache for PHP
ic  php8.0-cli                    8.0.10-1+0~20210826.23+debian9~1.gbp9ab3fd                              armhf        command-line interpreter for the PHP scripting language
ic  php8.0-common                 8.0.10-1+0~20210826.23+debian9~1.gbp9ab3fd                              armhf        documentation, examples and common module for PHP
ic  php8.0-igbinary               3.2.6+2.0.8-1+0~20210913.27+debian9~1.gbp64b0ea                         armhf        igbinary PHP serializer
ic  php8.0-mysql                  8.0.10-1+0~20210826.23+debian9~1.gbp9ab3fd                              armhf        MySQL module for PHP
ic  php8.0-opcache                8.0.10-1+0~20210826.23+debian9~1.gbp9ab3fd                              armhf        Zend OpCache module for PHP
ic  php8.0-readline               8.0.10-1+0~20210826.23+debian9~1.gbp9ab3fd                              armhf        readline module for PHP
ic  php8.0-redis                  5.3.4+4.3.0-1+0~20210329.35+debian9~1.gbpdc7ead                         armhf        PHP extension for interfacing with Redis
rc  phpmyadmin                    4:4.6.6-5                                                               all          MySQL web administration tool
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Updating DietPi has broken Nextcloud installation

Post by Joulinar »

let me ping our developer @MichaIng to get this sorted and cleaned up. Still some old packages.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gobstopper
Posts: 30
Joined: Sun Jul 14, 2019 5:05 pm

Re: Updating DietPi has broken Nextcloud installation

Post by gobstopper »

Many thanks - I'll keep an eye open for the next update :)
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: Updating DietPi has broken Nextcloud installation

Post by MichaIng »

So the issue is that PHP module packages depend on an exact version of php-common and hence when Ondrej's repository is removed, no new module can be installed. php-common also cannot be downgraded as long as any module from Ondrej's repo is installed.

Yeah looks like all of them need to be downgraded to the Debian Buster packages then.

First of all purge the remaining PHP8.0 packages:

Code: Select all

G_AGP '*php8.0*'
There are also config files from phpMyAdmin left. If you don't use it, purge it as well:

Code: Select all

G_AGP phpmyadmin
If you want to use it, I suggest to install it via dietpi-software after the PHP module reinstalls below, which will pull the latest upstream version of phpMyAdmin, instead of the Debian package.

Then try to reinstall + downgrade all PHP (7.3) packages this way:

Code: Select all

apt install --reinstall --allow-downgrades $(dpkg --get-selections '*php*' | mawk '{print $1}')
gobstopper
Posts: 30
Joined: Sun Jul 14, 2019 5:05 pm

Re: Updating DietPi has broken Nextcloud installation

Post by gobstopper »

@MichaIng
Thank you for joining this conversation. @Joulinar has been absolutely brilliant up until this point, but needed your input - so I thank you again.

The first two commands worked fine from what I could see, but when I tried the last command this is what I saw -

Code: Select all

apt install --reinstall --allow-downgrades $(dpkg --get-selections '*php*' | mawk '{print $1}')
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of php-common is not possible, it cannot be downloaded.
Reinstallation of php7.3-cli is not possible, it cannot be downloaded.
Reinstallation of php7.3-common is not possible, it cannot be downloaded.
Reinstallation of php7.3-fpm is not possible, it cannot be downloaded.
Reinstallation of php7.3-gd is not possible, it cannot be downloaded.
Reinstallation of php7.3-intl is not possible, it cannot be downloaded.
Reinstallation of php7.3-json is not possible, it cannot be downloaded.
Reinstallation of php7.3-mbstring is not possible, it cannot be downloaded.
Reinstallation of php7.3-mysql is not possible, it cannot be downloaded.
Reinstallation of php7.3-opcache is not possible, it cannot be downloaded.
Reinstallation of php7.3-readline is not possible, it cannot be downloaded.
Reinstallation of php7.3-xml is not possible, it cannot be downloaded.
Reinstallation of php7.3-zip is not possible, it cannot be downloaded.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.3-curl : Depends: php7.3-common (= 7.3.31-1~deb10u1) but 7.3.31-1+0~20210923.88+debian9~1.gbpac4058 is to be installed
E: Unable to correct problems, you have held broken packages.
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: Updating DietPi has broken Nextcloud installation

Post by MichaIng »

Please try:

Code: Select all

apt purge php7.3-curl
apt update
apt install --reinstall --allow-downgrades $(dpkg --get-selections '*php*' | mawk '{print $1}')
Post Reply