It shows the database and user were imported to mariadb 10.5
I suggest to run:
signal-event nethserver-nextcloud-update
…to see if it is able to update the config.php file with the correct database connection (if not we do it manually), after that you might see the nextcloud landing page but with an error (we can continue from there).
nothing seems to happen, when I run the command… although…
-rw-r----- 1 apache apache 1053 Nov 16 15:01 config.php
I have several versions of this file… all owned by the root user… now the apache user and group is there… but the time stamp is from the afternoon… don’t know. I changed permissions to 644, just as the sample file… but still the “Internal Server Error”.
Hmmm, ok, the first lines show the following entries… looks like a permission or password problem… ?
The output of occ upgrade is:
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'localhost' (using password: YES) in /usr/share/nextcloud/lib/private/DB/Connection.php:87
Stack trace:
#0 /usr/share/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
#1 /usr/share/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
....
#40 {main}[root@aichtalinfo config]#
I obviously took the secret of the file mysql … now I tried with the file nextcloud… and can connect to mysql.
The result of occ upgrade now is:
Nextcloud 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
Setting log level to debug
Turned on maintenance mode
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Resetting log level
Transaction check error:
package nethserver-nextcloud-1.19.0-1.ns7.noarch (which is newer than nethserver-nextcloud-1.17.1-1.ns7.noarch) is already installed
I missed that part. You can check for other copies or as last resort we can try to recreate it… Let’s sleep on it and continue in the morning with fresh eyes.