I am running an NCP Instance on a standard Debian system an having issues upgrading with ncp-update
An upgrade to 18.0.8 using the Nextcloud Updater works, but upgrading to 19.0.2 using the ncp updater
(webui or CLI) was throwing the same error again.
I tried upgrading from 18.0.7 to 19.0.2 upfront, but this didn’t work either.
Starting ...
0/1 [>---------------------------] 0%An unhandled exception has been thrown:
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
Stack trace:
#0 /var/www/nextcloud/core/Command/Upgrade.php(144): Symfony\Component\Console\Helper\ProgressBar->advance('Deleted tessdat...')
#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))
#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))
#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))
#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))
#5 /var/www/nextcloud/lib/private/Repair.php(201): OC\EventDispatcher\SymfonyAdapter->dispatch('\\OC\\Repair::adv...', Object(Symfony\Component\EventDispatcher\GenericEvent))
#6 /var/www/nextcloud/lib/private/Repair.php(232): OC\Repair->emit('\\OC\\Repair', 'advance', Array)
#7 /var/www/nextcloud/apps/ocr/lib/Migration/CleanupTessdata.php(48): OC\Repair->advance('Deleted tessdat...')
#8 /var/www/nextcloud/lib/private/Repair.php(103): OCA\Ocr\Migration\CleanupTessdata->run(Object(OC\Repair))
#9 /var/www/nextcloud/lib/private/legacy/OC_App.php(976): OC\Repair->run()
#10 /var/www/nextcloud/lib/private/App/AppManager.php(412): OC_App::executeRepairSteps('ocr', Array)
#11 /var/www/nextcloud/lib/private/Updater.php(410): OC\App\AppManager->disableApp('ocr', true)
#12 /var/www/nextcloud/lib/private/Updater.php(253): OC\Updater->checkAppsRequirements()
#13 /var/www/nextcloud/lib/private/Updater.php(130): OC\Updater->doUpgrade('19.0.2.2', '18.0.8.2')
#14 /var/www/nextcloud/core/Command/Upgrade.php(255): OC\Updater->upgrade()
#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))
#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))
#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))
#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))
#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))
#20 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#21 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#22 {main}Abort
This is a reference post, with the same problem, but a fix I cannot apply
A github issue, which was closed because of “not a support forum” but I am not sure if this is not really something NCP could/should fix