Update problem my owncloud

I updated owncloud, when I restarted the browser I received this message:

Application update required

Make sure you have created a backup copy of the database, config folder, and data folder before proceeding.

To avoid timeouts with large installations, you can run the following command from the installation folder:
./occ upgrade

if I click on start update I get:
OC\RepairException: Upgrade is not possible

Avviso di riparazioneYou have incompatible or missing apps enabled that could not be found or updated via the marketplace.
Avviso di riparazionePlease install or update the following apps manually or disable them with: occ app:disable gallery occ app:disable music
Avviso di riparazioneFor manually updating, see https://doc.owncloud.com/server/10.13/go.php?to=admin-marketplace-apps

instead issuing the command from the terminal:
/var/www/owncloud $ sudo -u www-data ./occ upgrade

ownCloud or one of the apps require upgrade - only a limited number of commands are available

You may use your browser or the occ upgrade command to do the upgrade

2025-01-02T18:06:31+00:00 Set log level to debug

2025-01-02T18:06:31+00:00 Turned on maintenance mode

2025-01-02T18:06:31+00:00 Repair step: Upgrade app code from the marketplace

2025-01-02T18:06:31+00:00 Repair warning: You have incompatible or missing apps enabled that could not be found or updated via the marketplace.

2025-01-02T18:06:31+00:00 Repair warning: Please install or update the following apps manually or disable them with:

occ app:disable gallery

occ app:disable music

2025-01-02T18:06:31+00:00 Repair warning: For manually updating, see https://doc.owncloud.com/server/10.13/go.php?to=admin-marketplace-apps

2025-01-02T18:06:31+00:00 OC\RepairException: Upgrade is not possible

2025-01-02T18:06:31+00:00 Update failed

2025-01-02T18:06:31+00:00 Maintenance mode is kept active

2025-01-02T18:06:31+00:00 Reset log level

Could you tell me how to solve it?

Someone just solved this exact same issue last month. Imagine my surprise when I searched for the topic and found out that it was you!

you’re right, I thought so too when doing a quick search, I apologize, I deactivated the apps but this time I get this error:

This version of owncloud is not compatible with › PHP 7.2. <br/›You are currentll y running 7.4.33

I get this error both from the terminal and when starting owncloud from the browser

I only installed php 7.4, never 7.2

What command did you run that returned that output?

What does php -v return when you you execute it on that host?

pi@raspberrypi:/var/www/owncloud $ php -v
PHP 7.4.33 (cli) (built: Dec 24 2024 06:15:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
pi@raspberrypi:/var/www/owncloud $ sudo update-alternatives --config php
There are 2 choices for the alternative php (providing /usr/bin/php).

Selection Path Priority Status

0 /usr/bin/php8.4 84 auto mode

  • 1 /usr/bin/php7.4 74 manual mode
    2 /usr/bin/php8.4 84 manual mode

Press to keep the current choice[*], or type selection number: 1
pi@raspberrypi:/var/www/owncloud $ sudo php ./occ upgrade
This version of owncloud is not compatible with > PHP 7.2.
You are currently running 7.4.33.pi@raspberrypi:/var/www/owncloud $ sudo -u www-data ./occ upgrade
sudo: ./occ: command not found

this from the terminal, from the browser:

This version of Nextcloud is not compatible with > PHP 7.2.
You are currently running 7.4.33.

Are you running ownCloud or Nextcloud?

You seem to have gotten your system into total disarray. You really need to spend some time going through all of your relevant configuration files and sort that out.

I currently use owncloud