I just moved my Nextcloud instance to a new YNH server. The backup and restore went well. Now I need to update Nextcloud and it fails. This is the log:
https://paste.yunohost.org/raw/olixiqikew
I can’t make heads nor tails of it … hopefully someone with a little more knowledge than I can point me in a right direction.
Thanks!
This seems like the pertinent part:
2021-02-18 04:54:58,382: WARNING - 0/1 [>---------------------------] 0%Unable to upgrade Nextcloud
2021-02-18 04:54:58,383: DEBUG - TypeError: Argument 1 passed to Symfony\Component\Console\Helper\ProgressBar::advance() must be of the type int, string given, called in /var/www/nextcloud/core/Command/Upgrade.php on line 144 and defined in /var/www/nextcloud/3rdparty/symfony/console/Helper/ProgressBar.php:310
2021-02-18 04:54:58,383: DEBUG - Stack trace:
2021-02-18 04:54:58,384: DEBUG - #0 /var/www/nextcloud/core/Command/Upgrade.php(144): Symfony\Component\Console\Helper\ProgressBar->advance(‘Deleted tessdat…’)
2021-02-18 04:54:58,384: DEBUG - #1 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(264): OC\Core\Command\Upgrade->OC\Core\Command{closure}(Object(Symfony\Component\EventDispatcher\GenericEvent), ‘\OC\Repair::adv…’, Object(Symfony\Component\EventDispatcher\EventDispatcher))
2021-02-18 04:54:58,384: DEBUG - #2 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(239): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, ‘\OC\Repair::adv…’, Object(Symfony\Component\EventDispatcher\GenericEvent))
2021-02-18 04:54:58,385: DEBUG - #3 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, ‘\OC\Repair::adv…’, Object(Symfony\Component\EventDispatcher\GenericEvent))
2021-02-18 04:54:58,385: DEBUG - #4 /var/www/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php(70): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\Component\EventDispatcher\GenericEvent), Object(Symfony\Component\EventDispatcher\GenericEvent))
2021-02-18 04:54:58,385: DEBUG - #5 /var/www/nextcloud/lib/private/Repair.php(201): OC\EventDispatcher\SymfonyAdapter->dispatch(’\OC\Repair::adv…’, Object(Symfony\Component\EventDispatcher\GenericEvent))
2021-02-18 04:54:58,385: DEBUG - #6 /var/www/nextcloud/lib/private/Repair.php(232): OC\Repair->emit(’\OC\Repair’, ‘advance’, Array)
2021-02-18 04:54:58,386: DEBUG - #7 /var/www/nextcloud/apps/ocr/lib/Migration/CleanupTessdata.php(48): OC\Repair->advance(‘Deleted tessdat…’)
2021-02-18 04:54:58,386: DEBUG - #8 /var/www/nextcloud/lib/private/Repair.php(103): OCA\Ocr\Migration\CleanupTessdata->run(Object(OC\Repair))
2021-02-18 04:54:58,386: DEBUG - #9 /var/www/nextcloud/lib/private/legacy/OC_App.php(976): OC\Repair->run()
2021-02-18 04:54:58,386: DEBUG - #10 /var/www/nextcloud/lib/private/App/AppManager.php(412): OC_App::executeRepairSteps(‘ocr’, Array)
2021-02-18 04:54:58,387: DEBUG - #11 /var/www/nextcloud/lib/private/Updater.php(410): OC\App\AppManager->disableApp(‘ocr’, true)
2021-02-18 04:54:58,387: DEBUG - #12 /var/www/nextcloud/lib/private/Updater.php(253): OC\Updater->checkAppsRequirements()
2021-02-18 04:54:58,387: DEBUG - #13 /var/www/nextcloud/lib/private/Updater.php(130): OC\Updater->doUpgrade(‘19.0.0.12’, ‘18.0.7.1’)
2021-02-18 04:54:58,387: DEBUG - #14 /var/www/nextcloud/core/Command/Upgrade.php(255): OC\Updater->upgrade()
2021-02-18 04:54:58,388: DEBUG - #15 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Upgrade->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
2021-02-18 04:54:58,388: DEBUG - #16 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1012): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
2021-02-18 04:54:58,388: DEBUG - #17 /var/www/nextcloud/3rdparty/symfony/console/Application.php(272): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Upgrade), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
2021-02-18 04:54:58,388: DEBUG - #18 /var/www/nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
2021-02-18 04:54:58,389: DEBUG - #19 /var/www/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
2021-02-18 04:54:58,389: DEBUG - #20 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
2021-02-18 04:54:58,389: DEBUG - #21 /var/www/nextcloud/occ(11): require_once(’/var/www/nextcl…’)
2021-02-18 04:54:58,389: DEBUG - #22 {main}+ ‘[’ 1 -eq 3 ‘]’
2021-02-18 04:54:58,389: DEBUG - + ynh_die ‘–message=Unable to upgrade Nextcloud’
2021-02-18 04:54:58,391: DEBUG - + ret_code=1
2021-02-18 04:54:58,391: DEBUG - + echo ‘Unable to upgrade Nextcloud’
2021-02-18 04:54:58,391: DEBUG - + exit 1
2021-02-18 04:54:58,391: DEBUG - + ynh_exit_properly
2021-02-18 04:54:58,392: DEBUG - + local exit_code=1
2021-02-18 04:54:58,392: DEBUG - + ‘[’ 1 -eq 0 ‘]’
2021-02-18 04:54:58,392: DEBUG - + trap ‘’ EXIT
2021-02-18 04:54:58,392: DEBUG - + set +o errexit
2021-02-18 04:54:58,392: DEBUG - + set +o nounset
2021-02-18 04:54:58,392: DEBUG - + sleep 0.5
2021-02-18 04:54:58,894: DEBUG - + type -t ynh_clean_setup
2021-02-18 04:54:58,894: WARNING - [Error] Upgrade failed.