Nextcloud break after update to Version 21

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for the fastest response please provide as much as you can :heart:

Nextcloud version: 21.0.1.1
Operating system and version: Debian GNU/Linux 10 (buster)
nginx version: nginx/1.14.2
PHP version: 7.3

After the update to Nextcloud 21, I have some problems with the “Unable to generate a URL for the named route” error message in the logs. I solved most of the problems by disabling a few apps. Now there seems to be a problem with the cloud_federation_api and I can not simply disable that.

Because of this error, I cannot use Nextcloud because I get only the maintenance screen.

The two messages are:
Unable to generate a URL for the named route \"ocs.files.DirectEditing.info\" as such route does not exist.
and
Unable to generate a URL for the named route \"cloud_federation_api.RequestHandler.addShare\" as such route does not exist.

The output of your Nextcloud log in Admin > Logging:

"reqId":"ARFEAogUtVdfQAlJCQHP","level":1,"time":"2021-04-12T08:51:10+00:00","remoteAddr":"217.253.214.182","user":"--","app":"no app in context","method":"GET","url":"/","message":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"ocs.files.DirectEditing.info\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->","args":["ocs.files.DirectEditing.info",[],1]},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":60,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["ocs.files.DirectEditing.info",[],false]},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":101,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->","args":["ocs.files.DirectEditing.info",[],false]},{"file":"/var/www/nextcloud/apps/files/lib/Capabilities.php","line":72,"function":"linkToOCSRouteAbsolute","class":"OC\\URLGenerator","type":"->","args":["files.DirectEditing.info"]},{"file":"/var/www/nextcloud/lib/private/CapabilitiesManager.php","line":72,"function":"getCapabilities","class":"OCA\\Files\\Capabilities","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":183,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":211,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":183,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/base.php","line":296,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/base.php","line":942,"function":"checkMaintenanceMode","class":"OC","type":"::","args":[{"__class__":"OC\\SystemConfig"}]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 Edg/89.0.774.75","version":"20.0.8.1"}
{"reqId":"ARFEAogUtVdfQAlJCQHP","level":1,"time":"2021-04-12T08:51:10+00:00","remoteAddr":"217.253.214.182","user":"--","app":"no app in context","method":"GET","url":"/","message":{"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":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->","args":["cloud_federation_api.RequestHandler.addShare",[],1]},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":60,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["cloud_federation_api.RequestHandler.addShare",[],false]},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":85,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->","args":["cloud_federation_api.requesthandlercontroller.addShare",[]]},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":97,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->","args":["cloud_federation_api.requesthandlercontroller.addShare",[]]},{"file":"/var/www/nextcloud/apps/cloud_federation_api/lib/Capabilities.php","line":45,"function":"linkToRouteAbsolute","class":"OC\\URLGenerator","type":"->","args":["cloud_federation_api.requesthandlercontroller.addShare"]},{"file":"/var/www/nextcloud/lib/private/CapabilitiesManager.php","line":72,"function":"getCapabilities","class":"OCA\\CloudFederationAPI\\Capabilities","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":183,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":211,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":183,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/base.php","line":296,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/base.php","line":942,"function":"checkMaintenanceMode","class":"OC","type":"::","args":[{"__class__":"OC\\SystemConfig"}]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 Edg/89.0.774.75","version":"20.0.8.1"}
{"reqId":"Hf9TWXmZ0T0lW0k3bsXH","level":1,"time":"2021-04-12T08:51:11+00:00","remoteAddr":"217.253.214.182","user":"--","app":"no app in context","method":"GET","url":"/core/js/oc.js?v=9c18c631","message":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"ocs.files.DirectEditing.info\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->","args":["ocs.files.DirectEditing.info",[],1]},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":60,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["ocs.files.DirectEditing.info",[],false]},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":101,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->","args":["ocs.files.DirectEditing.info",[],false]},{"file":"/var/www/nextcloud/apps/files/lib/Capabilities.php","line":72,"function":"linkToOCSRouteAbsolute","class":"OC\\URLGenerator","type":"->","args":["files.DirectEditing.info"]},{"file":"/var/www/nextcloud/lib/private/CapabilitiesManager.php","line":72,"function":"getCapabilities","class":"OCA\\Files\\Capabilities","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":183,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[]},{"file":"/var/www/nextcloud/core/Controller/OCJSController.php","line":107,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"getConfig","class":"OC\\Core\\Controller\\OCJSController","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\OCJSController"},"getConfig"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\OCJSController"},"getConfig"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\OCJSController","getConfig",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.OCJS.getConfig"}]},{"file":"/var/www/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/core/js/oc.js"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 Edg/89.0.774.75","version":"20.0.8.1"}
{"reqId":"Hf9TWXmZ0T0lW0k3bsXH","level":1,"time":"2021-04-12T08:51:11+00:00","remoteAddr":"217.253.214.182","user":"--","app":"no app in context","method":"GET","url":"/core/js/oc.js?v=9c18c631","message":{"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":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->","args":["cloud_federation_api.RequestHandler.addShare",[],1]},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":60,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["cloud_federation_api.RequestHandler.addShare",[],false]},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":85,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->","args":["cloud_federation_api.requesthandlercontroller.addShare",[]]},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":97,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->","args":["cloud_federation_api.requesthandlercontroller.addShare",[]]},{"file":"/var/www/nextcloud/apps/cloud_federation_api/lib/Capabilities.php","line":45,"function":"linkToRouteAbsolute","class":"OC\\URLGenerator","type":"->","args":["cloud_federation_api.requesthandlercontroller.addShare"]},{"file":"/var/www/nextcloud/lib/private/CapabilitiesManager.php","line":72,"function":"getCapabilities","class":"OCA\\CloudFederationAPI\\Capabilities","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":183,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[]},{"file":"/var/www/nextcloud/core/Controller/OCJSController.php","line":107,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"getConfig","class":"OC\\Core\\Controller\\OCJSController","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\OCJSController"},"getConfig"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\OCJSController"},"getConfig"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\OCJSController","getConfig",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.OCJS.getConfig"}]},{"file":"/var/www/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/core/js/oc.js"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 Edg/89.0.774.75","version":"20.0.8.1"}

The output of your config.php file in /path/to/nextcloud (with occ config:list command):

"system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.singulativ.de"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "21.0.1.1",
        "overwrite.cli.url": "https:\/\/cloud.singulativ.de\/",
        "htaccess.RewriteBase": "\/",
        "debug": true,
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 0,
        "encryption.legacy_format_support": false,
        "encryption.key_storage_migrated": false,
        "skeletondirectory": "",
        "theme": "",
        "app_install_overwrite": [
            "unsplash"
        ],
        "overwriteprotocol": "https",
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "password_policy.enabled": false
    },

Here are the errors once again: https://hastebin.com/hilukumina.php

Hi ,

I reported the same problem for example with:
Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route “phonetrack.page.index” as such route does not exist

I posted it in a coresponding github issue:

1 Like