Unable to generate a URL : "photos.page.index", RouteNotFoundException

After updating from NC 17 to 18 I am getting a lot of error messages in log.
I am trying to find what is going on but not success.

so here is a error message, please can you describe where problem is? or can you provide some solution? thanks

Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "photos.page.index" as such route does not exist.

    /usr/share/webapps/nextcloud/lib/private/Route/Router.php - line 339:

    Symfony\Component\Routing\Generator\UrlGenerator->generate()

    /usr/share/webapps/nextcloud/lib/private/Route/CachingRouter.php - line 59:

    OC\Route\Router->generate()

    /usr/share/webapps/nextcloud/lib/private/URLGenerator.php - line 82:

    OC\Route\CachingRouter->generate()

    /usr/share/webapps/nextcloud/lib/private/NavigationManager.php - line 293:

    OC\URLGenerator->linkToRoute()

    /usr/share/webapps/nextcloud/lib/private/NavigationManager.php - line 114:

    OC\NavigationManager->init()

    /usr/share/webapps/nextcloud/apps/theming/lib/ThemingDefaults.php - line 182:

    OC\NavigationManager->getAll()

    /usr/share/webapps/nextcloud/lib/private/legacy/defaults.php - line 263:

    OCA\Theming\ThemingDefaults->getShortFooter()

    /usr/share/webapps/nextcloud/lib/public/Defaults.php - line 169:

    OC_Defaults->getLongFooter()

    /usr/share/webapps/nextcloud/core/templates/layout.guest.php - line 55:

    OCP\Defaults->getLongFooter()

    /usr/share/webapps/nextcloud/lib/private/Template/Base.php - line 179:

    include("/usr/share/ ... p")

    /usr/share/webapps/nextcloud/lib/private/Template/Base.php - line 151:

    OC\Template\Base->load()

    /usr/share/webapps/nextcloud/lib/private/legacy/template.php - line 181:

    OC\Template\Base->fetchPage()

    /usr/share/webapps/nextcloud/lib/private/legacy/template.php - line 212:

    OC_Template->fetchPage()

    /usr/share/webapps/nextcloud/lib/private/Template/Base.php - line 132:

    OC_Template->fetchPage()

    /usr/share/webapps/nextcloud/lib/private/legacy/template.php - line 300:

    OC\Template\Base->printPage()

    /usr/share/webapps/nextcloud/remote.php - line 82:

    OC_Template::printErrorPage()

    /usr/share/webapps/nextcloud/remote.php - line 168:

    handleException()

I have seen it in Passwords and AnnouncementCenter as well as Photos. I gave up using these apps because of the high volume of logs.

OK, but while using NC17 there was not such error messages …

am I alone with this problem?

nope, same here

Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route “photos.page.index” as such route does not exist.

[no app in context] Error: Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route “photos.page.index” as such route does not exist. at <>

  1. /var/www/nextcloud/lib/private/Route/Router.php line 339
    Symfony\Component\Routing\Generator\UrlGenerator->generate(“photos.page.index”, [], 1)
  2. /var/www/nextcloud/lib/private/Route/CachingRouter.php line 59
    OC\Route\Router->generate(“photos.page.index”, [], false)
  3. /var/www/nextcloud/lib/private/URLGenerator.php line 82
    OC\Route\CachingRouter->generate(“photos.page.index”, [])
  4. /var/www/nextcloud/lib/private/NavigationManager.php line 293
    OC\URLGenerator->linkToRoute(“photos.page.index”)
  5. /var/www/nextcloud/lib/private/NavigationManager.php line 114
    OC\NavigationManager->init()
  6. /var/www/nextcloud/apps/theming/lib/ThemingDefaults.php line 182
    OC\NavigationManager->getAll(“guest”)
  7. /var/www/nextcloud/lib/private/legacy/defaults.php line 263
    OCA\Theming\ThemingDefaults->getShortFooter()
  8. /var/www/nextcloud/lib/public/Defaults.php line 169
    OC_Defaults->getLongFooter()
  9. /var/www/nextcloud/core/templates/layout.guest.php line 55
    OCP\Defaults->getLongFooter()
  10. /var/www/nextcloud/lib/private/Template/Base.php line 179
    include("/var/www/nextcl … p")
  11. /var/www/nextcloud/lib/private/Template/Base.php line 151
    OC\Template\Base->load("/var/www/nextcl … p", null)
  12. /var/www/nextcloud/lib/private/legacy/template.php line 181
    OC\Template\Base->fetchPage(null)
  13. /var/www/nextcloud/lib/private/legacy/template.php line 212
    OC_Template->fetchPage(null)
  14. /var/www/nextcloud/lib/private/Template/Base.php line 132
    OC_Template->fetchPage()
  15. /var/www/nextcloud/lib/private/legacy/template.php line 300
    OC\Template\Base->printPage()
  16. /var/www/nextcloud/remote.php line 82
    OC_Template::printErrorPage(“Path not found”, “”, 404)
  17. /var/www/nextcloud/remote.php line 168
    handleException(RemoteException {})

OPTIONS /remote.php/
from client-ip by nc_user at 2020-02-14T15:01:37+01:00

I have the same issue… clean install via the setup script

[no app in context] Error: Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route “photos.page.index” as such route does not exist. at <>

  1. /var/www/html/nextcloud/lib/private/Route/Router.php line 339
    Symfony\Component\Routing\Generator\UrlGenerator->generate(“photos.page.index”, [], 1)
  2. /var/www/html/nextcloud/lib/private/Route/CachingRouter.php line 59
    OC\Route\Router->generate(“photos.page.index”, [], false)
  3. /var/www/html/nextcloud/lib/private/URLGenerator.php line 82
    OC\Route\CachingRouter->generate(“photos.page.index”, [])
  4. /var/www/html/nextcloud/lib/private/NavigationManager.php line 293
    OC\URLGenerator->linkToRoute(“photos.page.index”)
  5. /var/www/html/nextcloud/lib/private/NavigationManager.php line 114
    OC\NavigationManager->init()
  6. /var/www/html/nextcloud/apps/theming/lib/ThemingDefaults.php line 182
    OC\NavigationManager->getAll(“guest”)
  7. /var/www/html/nextcloud/lib/private/legacy/defaults.php line 263
    OCA\Theming\ThemingDefaults->getShortFooter()
  8. /var/www/html/nextcloud/lib/public/Defaults.php line 169
    OC_Defaults->getLongFooter()
  9. /var/www/html/nextcloud/core/templates/layout.guest.php line 55
    OCP\Defaults->getLongFooter()
  10. /var/www/html/nextcloud/lib/private/Template/Base.php line 179
    include("/var/www/html/n … p")
  11. /var/www/html/nextcloud/lib/private/Template/Base.php line 151
    OC\Template\Base->load("/var/www/html/n … p", null)
  12. /var/www/html/nextcloud/lib/private/legacy/template.php line 181
    OC\Template\Base->fetchPage(null)
  13. /var/www/html/nextcloud/lib/private/legacy/template.php line 212
    OC_Template->fetchPage(null)
  14. /var/www/html/nextcloud/lib/private/Template/Base.php line 132
    OC_Template->fetchPage()
  15. /var/www/html/nextcloud/lib/private/legacy/template.php line 333
    OC\Template\Base->printPage()
  16. /var/www/html/nextcloud/index.php line 65
    OC_Template::printExceptionErrorPage(Exception {}, 500)

GET /apps/maps/js/filetypes.js?v=fd5de884-0

I am getting same error message also for: tasks.page.index and calendar.view.index

Same her ( 18.0.2), I get it for photos.page.index , calendar.view.index, announcementcenter.page.index, settings.Help.help
Anyone an idea?

Same here. I get this error everytime someone tries to Upload Files or create Folders on an external storage (php-smbclient).

I also get an unknown error showing up, when uploading files. But all files are uploaded and all folders are created correctly.

grafik

I deactivated the Photos App so this error message was gone.

I also deativated the Activites App as a workaround, so that Upload is possible without error messages. Suggested here: https://github.com/nextcloud/server/issues/19996

Same for my installation (18.0.3). It does it from calendar (2.0.2), photos (1.0.0), tasks (1.3.0) & news (14.1.3)

Same mistakes here .

OK, but what is the solution, I think that switching those apps off is not correct one. I could not find bug report for this so not sure if someone is working on this. I dont have github account and dont want to create it for just this one thing …

18.0.3 same issue here

1 Like

Same issue her with NC 18.0.3
I get this messages with photos and calendar.

Very annøying. I created a bug report:

1 Like

How do you guys connect to Nextcloud? What system do you guys running?
I got those answers from user kesselb on Github

  1. The log message is triggered by GVfs sending a OPTIONS request for /nextcloud/remote.php/. I guess you mounted Nextcloud via Nautilus.
  2. Nextcloud does not understand that request, tries to show a error page and fails on generating routes for some apps.

I am not using Nautilus nor webdav connections.
I also don’t understand why different apps are causing this message. That can’t have anything to do with GVFS, can it?

Could it be caused by the so called Gnome Online Accounts? This feature is available in Cinnamon too, as far as I know. Me and a couple of users are using Fedora with Cinnamon DE and the rest is using Windows and Apple based units.

1 Like

I have been seeing this issue since version 17 (snap) and I’m definitely using Gnome online accounts. It automatically mounts the nextcloud folders.

Which Gnome version are you using?
Look here: https://github.com/nextcloud/server/issues/20572#issuecomment-622500628
In Gnome 3.36 it should be fixed but I could not confirm that on my system.
Anyone else?

yes

I am using Gnome 3.36.2 (archlinux) and also using Gnome online accounts to sync contacts calendar and mount files.

So I did disable files in online accounts {keeping calendar and contact enable} and from that time I don’t see those errors in NX log.

1 Like

I have Cinnamon with installed gnome-online-account package version 3.36.0 on Fedora 32. Get the this error with activated “files” but not with disabled “files”.