Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
5 of 8 tasks
gcd0318 opened this issue Jan 25, 2025 · 1 comment
Closed
5 of 8 tasks

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

gcd0318 opened this issue Jan 25, 2025 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 30-feedback bug

Comments

@gcd0318
Copy link

gcd0318 commented Jan 25, 2025

⚠️ 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

@gcd0318 gcd0318 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jan 25, 2025
@joshtrichards
Copy link
Member

Your first error suggests a PHP caching matter due to non-standard opcache parameters (and which will likely go away if you restart FPM). Though it may also be related to the next matter...

Your second error is complaining that you don't have the PHP module installed for your database. This is most commonly caused by upgrading PHP and not installing all the appropriate modules again with the new version.

Also, there is no occ update command but I presume you meant occ upgrade. However, occ upgrade is not how you run the updater from the command-line.

Please see:

https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html#using-the-command-line-based-updater

start update, and failed after a while

Failed, how? Check your updater.log.

Also, see https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html#troubleshooting

I suggest posting for assistance on the help forum - https://help.nextcloud.com

@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 30-feedback bug
Projects
None yet
Development

No branches or pull requests

3 participants