Web upgrade from 27 to 28 currently stuck in updating database schema

I was upgrading from nc27 to nc28, i’m using the web updater and is stuck for more than 30 minutes in step “updating database schema”. I check the updater log and i can’t find problems reported. I dont know what to do, stop the process, wait more time, launch the cli updater… I need a bit of help

Nextcloud version : 27
Operating system and version: Debian 12
Apache or nginx version: Apache2.4
PHP version: 8.2

The issue you are facing:

Is this the first time you’ve seen this error? : Y

Steps to replicate it:

  1. I only launched the upgrade process from web config page

The output of your Nextcloud log in Admin > Logging:

{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"phonetrack.page.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/home/cloud/public_html/lib/private/Route/Router.php","line":380,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/home/cloud/public_html/lib/private/URLGenerator.php","line":103,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/home/cloud/public_html/lib/private/NavigationManager.php","line":374,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/home/cloud/public_html/lib/private/NavigationManager.php","line":131,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/home/cloud/public_html/apps/theming/lib/ThemingDefaults.php","line":199,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/home/cloud/public_html/lib/private/legacy/OC_Defaults.php","line":271,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/home/cloud/public_html/lib/public/Defaults.php","line":176,"function":"getLongFooter","class":"OC_Defaults","type":"->"},{"file":"/home/cloud/public_html/core/templates/layout.guest.php","line":51,"function":"getLongFooter","class":"OCP\\Defaults","type":"->"},{"file":"/home/cloud/public_html/lib/private/Template/Base.php","line":180,"args":["/home/cloud/public_html/core/templates/layout.guest.php"],"function":"include"},{"file":"/home/cloud/public_html/lib/private/Template/Base.php","line":150,"function":"load","class":"OC\\Template\\Base","type":"->"},{"file":"/home/cloud/public_html/lib/private/legacy/OC_Template.php","line":139,"function":"fetchPage","class":"OC\\Template\\Base","type":"->"},{"file":"/home/cloud/public_html/lib/private/legacy/OC_Template.php","line":170,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/home/cloud/public_html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/home/cloud/public_html/lib/base.php","line":304,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/home/cloud/public_html/lib/base.php","line":1012,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/home/cloud/public_html/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/cloud/public_html/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":144,"message":"Unable to generate a URL for the named route \"phonetrack.page.index\" as such route does not exist.","exception":{},"CustomMessage":"Unable to generate a URL for the named route \"phonetrack.page.index\" as such route does not exist."}}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => '528498ff3bcb4',
  'passwordsalt' => '5b9e388a97605f63356602c7b4f333',
  'datadirectory' => '/home/cloud/public_html/data',
  'appstoreenabled' => true,
  'check_for_working_htaccess' => false,
  'check_for_working_webdav' => false,
  'has_internet_connection' => true,
  'updatechecker' => true,
  'dbtype' => 'mysql',
  'version' => '27.1.11.3',
  'dbname' => 'cloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'cloud',
  'dbpassword' => '',
  'installed' => true,
  'loglevel' => 0,
  'theme' => '',
  'maintenance' => true,
  'trusted_domains' => 
  array (
    0 => 'cloud.com',
  ),
  'secret' => '07c4fe930',
  'share_folder' => '/Shared',
  'trashbin_retention_obligation' => '8, 10',
  'mail_from_address' => 'cloud',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'i.com',
  'overwrite.cli.url' => 'http://cloud..com',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'i.com',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'cloud@i.com',
  'mail_smtppassword' => '',
  'updater.release.channel' => 'stable',
  'mail_sendmailmode' => 'smtp',
  'updater.secret' => '',
  'mysql.utf8mb4' => true,
);




Updater log:

==> data/updater.log <==
2024-09-24T09:04:10+0000 lyeb8LVxE7 [info] request to updater
2024-09-24T09:04:10+0000 lyeb8LVxE7 [info] currentStep()
2024-09-24T09:04:10+0000 lyeb8LVxE7 [info] Step 11 is in state "end".
2024-09-24T09:04:10+0000 lyeb8LVxE7 [info] POST request for step "12"
2024-09-24T09:04:10+0000 lyeb8LVxE7 [info] startStep("12")
2024-09-24T09:04:10+0000 lyeb8LVxE7 [info] finalize()
2024-09-24T09:04:10+0000 lyeb8LVxE7 [info] storage location: /home/cloud/public_html/data/updater-528498ff3bcb4/downloads/nextcloud/
2024-09-24T09:04:10+0000 lyeb8LVxE7 [info] call opcache_reset()
2024-09-24T09:04:10+0000 lyeb8LVxE7 [info] end of finalize()
2024-09-24T09:04:10+0000 lyeb8LVxE7 [info] endStep("12")

If you’ve gotten that far, the Updater (code deployment) is done. So your updater.log won’t have much, if anything else to report.

At point you’re at, the main nextcloud.log is the place to look. Please provide the tail end of that log file.

You may need to run occ upgrade manually again for some reason (the database migrations and app upgrades phase you appear to have reached), but let’s see what the logs say first.

I have stopped the process and launch the upgrade from the cli. It worked ok.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.