Hi all! please help.
After transferring the installation to a new server, an error appeared when updating the installation. I don’t understand what it is connected with and how it can be eliminated. please help!
PHP - 8.2
OS - Deban12
nc version - 29.0.1
db - mysql
the installation was updated from 25 to 29, previously a similar error occurred during the transfer without enabling maintenance mode, but now everything was transferred correctly, I don’t understand where to dig.
# sudo -u www-data php /var/www/nextcloud/updater/updater.phar --no-interaction
Nextcloud Updater - version: v29.0.0-1-g9293bcb dirty
Current version is 29.0.5.
Update to Nextcloud 29.0.5 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-29.0.5.zip
Open changelog ↗
Updater run in non-interactive mode.
Continue update
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done
Update of code successful.
Updater run in non-interactive mode - will start "occ upgrade" now.
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
Repair step: Repair MySQL collation
Repair info: All tables already have the correct collation -> nothing to do
Repair step: Copy data from accounts table when migrating from ownCloud
Repair step: Drop account terms table when migrating from ownCloud
Updating database schema
Updated database
An unhandled exception has been thrown:
TypeError: Cannot assign array to property OC\Security\Certificate::$commonName of type ?string in /var/www/nextcloud/lib/private/Security/Certificate.php:67
Stack trace:
#0 /var/www/nextcloud/lib/private/Security/CertificateManager.php(81): OC\Security\Certificate->__construct()
#1 /var/www/nextcloud/lib/private/Security/CertificateManager.php(122): OC\Security\CertificateManager->listCertificates()
#2 /var/www/nextcloud/lib/private/Security/CertificateManager.php(233): OC\Security\CertificateManager->createCertificateBundle()
#3 /var/www/nextcloud/lib/private/Http/Client/Client.php(133): OC\Security\CertificateManager->getAbsoluteBundlePath()
#4 /var/www/nextcloud/lib/private/Http/Client/Client.php(80): OC\Http\Client\Client->getCertBundle()
#5 /var/www/nextcloud/lib/private/Http/Client/Client.php(230): OC\Http\Client\Client->buildRequestOptions()
#6 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php(111): OC\Http\Client\Client->get()
#7 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php(78): OC\App\AppStore\Fetcher\Fetcher->fetch()
#8 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php(182): OC\App\AppStore\Fetcher\AppFetcher->fetch()
#9 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php(179): OC\App\AppStore\Fetcher\Fetcher->get()
#10 /var/www/nextcloud/lib/private/Installer.php(405): OC\App\AppStore\Fetcher\AppFetcher->get()
#11 /var/www/nextcloud/lib/private/Updater.php(415): OC\Installer->isUpdateAvailable()
#12 /var/www/nextcloud/lib/private/Updater.php(275): OC\Updater->upgradeAppStoreApps()
#13 /var/www/nextcloud/lib/private/Updater.php(133): OC\Updater->doUpgrade()
#14 /var/www/nextcloud/core/Command/Upgrade.php(216): OC\Updater->upgrade()
#15 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\Upgrade->execute()
#16 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#17 /var/www/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#18 /var/www/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#19 /var/www/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run()
#20 /var/www/nextcloud/console.php(102): OC\Console\Application->run()
#21 /var/www/nextcloud/occ(11): require_once('...')
#22 {main}
Updater run in non-interactive mode - will disable maintenance mode now.
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
Maintenance mode disabled
Maintenance mode is disabled
Yes, a similar, but not the same error occurred previously. As far as I remember, it started the same way, but there were fewer lines. I solved it by turning on the maintenance mode before transferring and dumping the database. No, I don’t use custom certificates