Skip to content

[Bug]: failed when update from 30.0.4 to 30.0.5 #50432

@gcd0318

Description

@gcd0318

⚠️ This issue respects the following points: ⚠️

Bug description

Update from Web but got error in log as:
`
{"reqId":"Py5Mu5JUBukKfoFItdSn","level":1,"time":"2025-01-25T19:45:29+00:00","remoteAddr":"192.168.1.31","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Unable to generate a URL for the named route "cloud_federation_api.requesthandler.addshare" as such route does not exist.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0","version":"30.0.4.1","exception":{"Exception":"Symfony\Component\Routing\Exception\RouteNotFoundException","Message":"Unable to generate a URL for the named route "cloud_federation_api.requesthandler.addshare" as such route does not exist.","Code":0,"Trace":[{"file":"/usr/share/webapps/nextcloud/lib/private/Route/Router.php","line":374,"function":"generate","class":"Symfony\Component\Routing\Generator\UrlGenerator","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/URLGenerator.php","line":71,"function":"generate","class":"OC\Route\Router","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/URLGenerator.php","line":83,"function":"linkToRoute","class":"OC\URLGenerator","type":"->"},{"file":"/usr/share/webapps/nextcloud/apps/cloud_federation_api/lib/Capabilities.php","line":44,"function":"linkToRouteAbsolute","class":"OC\URLGenerator","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/CapabilitiesManager.php","line":61,"function":"getCapabilities","class":"OCA\CloudFederationAPI\Capabilities","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Template/JSConfigHelper.php","line":135,"function":"getCapabilities","class":"OC\CapabilitiesManager","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/TemplateLayout.php","line":228,"function":"getConfig","class":"OC\Template\JSConfigHelper","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_Template.php","line":119,"function":"__construct","class":"OC\TemplateLayout","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Template/Base.php","line":113,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":244,"function":"printPage","class":"OC\Template\Base","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":961,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/usr/share/webapps/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/usr/share/webapps/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":134,"message":"Unable to generate a URL for the named route "cloud_federation_api.requesthandler.addshare" as such route does not exist.","exception":{},"CustomMessage":"Unable to generate a URL for the named route "cloud_federation_api.requesthandler.addshare" as such route does not exist."}}

Manually update by
occ update
and got:
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /usr/share/webapps/nextcloud/lib/private/DB/Connection.php:233
Stack trace:
#0 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(453): OC\DB\Connection->connect()
#1 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /usr/share/webapps/nextcloud/lib/private/DB/Connection.php(899): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /usr/share/webapps/nextcloud/lib/private/DB/ConnectionAdapter.php(235): OC\DB\Connection->getDatabaseProvider()
#5 /usr/share/webapps/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(96): OC\DB\ConnectionAdapter->getDatabaseProvider()
#6 /usr/share/webapps/nextcloud/lib/private/AppConfig.php(1211): OC\DB\QueryBuilder\QueryBuilder->expr()
#7 /usr/share/webapps/nextcloud/lib/private/AppConfig.php(237): OC\AppConfig->loadConfig()
#8 /usr/share/webapps/nextcloud/lib/private/AppConfig.php(1351): OC\AppConfig->searchValues()
#9 /usr/share/webapps/nextcloud/lib/private/App/AppManager.php(126): OC\AppConfig->getValues()
#10 /usr/share/webapps/nextcloud/lib/private/App/AppManager.php(147): OC\App\AppManager->getInstalledAppsValues()
#11 /usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php(191): OC\App\AppManager->getInstalledApps()
#12 /usr/share/webapps/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(48): OC_App::getEnabledApps()
#13 /usr/share/webapps/nextcloud/lib/base.php(659): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
#14 /usr/share/webapps/nextcloud/lib/base.php(1134): OC::init()
#15 /usr/share/webapps/nextcloud/console.php(28): require_once('...')
#16 /usr/share/webapps/nextcloud/occ(11): require_once('...')
`
But I'm sure my mariadb service is running well.
Also, this update could not skip

Steps to reproduce

  1. web access to nextcloud server, and got update page
  2. start update, and failed after a while
  3. update from CLI by: occ update
  4. failed

Expected behavior

update from 30.0.4 to 30.0.5, or skip update

Nextcloud Server version

30

Operating system

Other

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 32.0.1 to 32.0.2)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /usr/share/webapps/nextcloud/lib/private/DB/Connection.php:233
Stack trace:
#0 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(453): OC\DB\Connection->connect()
#1 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /usr/share/webapps/nextcloud/lib/private/DB/Connection.php(899): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /usr/share/webapps/nextcloud/lib/private/DB/ConnectionAdapter.php(235): OC\DB\Connection->getDatabaseProvider()
#5 /usr/share/webapps/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(96): OC\DB\ConnectionAdapter->getDatabaseProvider()
#6 /usr/share/webapps/nextcloud/lib/private/AppConfig.php(1211): OC\DB\QueryBuilder\QueryBuilder->expr()
#7 /usr/share/webapps/nextcloud/lib/private/AppConfig.php(237): OC\AppConfig->loadConfig()
#8 /usr/share/webapps/nextcloud/lib/private/AppConfig.php(1351): OC\AppConfig->searchValues()
#9 /usr/share/webapps/nextcloud/lib/private/App/AppManager.php(126): OC\AppConfig->getValues()
#10 /usr/share/webapps/nextcloud/lib/private/App/AppManager.php(147): OC\App\AppManager->getInstalledAppsValues()
#11 /usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php(191): OC\App\AppManager->getInstalledApps()
#12 /usr/share/webapps/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(48): OC_App::getEnabledApps()
#13 /usr/share/webapps/nextcloud/lib/base.php(659): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
#14 /usr/share/webapps/nextcloud/lib/base.php(1134): OC::init()
#15 /usr/share/webapps/nextcloud/console.php(28): require_once('...')
#16 /usr/share/webapps/nextcloud/occ(11): require_once('...')

List of activated Apps

An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /usr/share/webapps/nextcloud/lib/private/DB/Connection.php:233
Stack trace:
#0 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(453): OC\DB\Connection->connect()
#1 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /usr/share/webapps/nextcloud/lib/private/DB/Connection.php(899): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /usr/share/webapps/nextcloud/lib/private/DB/ConnectionAdapter.php(235): OC\DB\Connection->getDatabaseProvider()
#5 /usr/share/webapps/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(96): OC\DB\ConnectionAdapter->getDatabaseProvider()
#6 /usr/share/webapps/nextcloud/lib/private/AppConfig.php(1211): OC\DB\QueryBuilder\QueryBuilder->expr()
#7 /usr/share/webapps/nextcloud/lib/private/AppConfig.php(237): OC\AppConfig->loadConfig()
#8 /usr/share/webapps/nextcloud/lib/private/AppConfig.php(1351): OC\AppConfig->searchValues()
#9 /usr/share/webapps/nextcloud/lib/private/App/AppManager.php(126): OC\AppConfig->getValues()
#10 /usr/share/webapps/nextcloud/lib/private/App/AppManager.php(147): OC\App\AppManager->getInstalledAppsValues()
#11 /usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php(191): OC\App\AppManager->getInstalledApps()
#12 /usr/share/webapps/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(48): OC_App::getEnabledApps()
#13 /usr/share/webapps/nextcloud/lib/base.php(659): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
#14 /usr/share/webapps/nextcloud/lib/base.php(1134): OC::init()
#15 /usr/share/webapps/nextcloud/console.php(28): require_once('...')
#16 /usr/share/webapps/nextcloud/occ(11): require_once('...')

Nextcloud Signing status

Cannot login since server is in maintenance mode, and if I change maintenance mode to false in config and retry to connect to server, I have to update again, and no access to other actions

Nextcloud Logs

{"reqId":"Py5Mu5JUBukKfoFItdSn","level":1,"time":"2025-01-25T19:45:29+00:00","remoteAddr":"192.168.1.31","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Unable to generate a URL for the named route \"cloud_federation_api.requesthandler.addshare\" as such route does not exist.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0","version":"30.0.4.1","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"cloud_federation_api.requesthandler.addshare\" as such route does not exist.","Code":0,"Trace":[{"file":"/usr/share/webapps/nextcloud/lib/private/Route/Router.php","line":374,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/URLGenerator.php","line":71,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/URLGenerator.php","line":83,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/usr/share/webapps/nextcloud/apps/cloud_federation_api/lib/Capabilities.php","line":44,"function":"linkToRouteAbsolute","class":"OC\\URLGenerator","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/CapabilitiesManager.php","line":61,"function":"getCapabilities","class":"OCA\\CloudFederationAPI\\Capabilities","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Template/JSConfigHelper.php","line":135,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/TemplateLayout.php","line":228,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_Template.php","line":119,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Template/Base.php","line":113,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":244,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":961,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/usr/share/webapps/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/usr/share/webapps/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":134,"message":"Unable to generate a URL for the named route \"cloud_federation_api.requesthandler.addshare\" as such route does not exist.","exception":{},"CustomMessage":"Unable to generate a URL for the named route \"cloud_federation_api.requesthandler.addshare\" as such route does not exist."}}

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap30-feedbackbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions