Update Nextcloud problem

I installed nexcloud and imported the database and the data folder, so far no problem, when I started everything from the browser I received the following message:

Application update required

The following applications will be updated:
Activity (activity)
WebDAV (dav)
Federated file sharing
Files (files)
PDF viewer (files_pdfviewer)
Provisioning API (provisioning_api)
These incompatible applications will be disabled:
diagnostics
files_texteditor (files_texteditor)
gallery (gallery)
market (market)
music (music)
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

By clicking on update I get:
Exception: Updates between multiple major versions and downgrades are unsupported.

Log dettagliati

L’aggiornamento non è riuscito. Per ulteriori informazioni controlla l’articolo del nostro forum che riguarda questo problema.

opening the recommended page, I tried to update from the terminal but I receive this:
pi@raspberrypi:/var/www/nextcloud $ sudo -u www-data ./occ upgrade

sudo: ./occ: command not found

pi@raspberrypi:/var/www/nextcloud $

Could you tell me how to solve it?

Can you elaborate on what you did? It sounds like you are doing more than an update.

What are you importing your database and data from? And why?

It sounds like you’re trying to migrate from a different (and also older) Server installation. You can’t jump more than a single major version at a time (whether migrating or updating).

yes, I realized the error, I tried the migration following this to owncloud 10.15.0 (stable)

but I get this:

Not found
The request URL was Not found on this server.

Apache/2.4.62 (Debian) Server at 192.168.1.xx Port 443

So you’re actually trying to migrate from ownCloud?

You didn’t mention that. :slight_smile:

See Migrating from ownCloud.

Also see Migration path from Owncloud >= 10.14? · Issue #12199 · nextcloud/documentation · GitHub

Note version matching is important.

The correct command is sudo -u www-data php occ restofyourcommand

Iirc anyway I am not in front of my computer to verify.