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

Created on 21 Apr 2020  ·  24Comments  ·  Source: nextcloud/server

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. I have no idea. This message shows up in the logfile
    2.
    3.

Expected behaviour

No log entries about this error message

Actual behaviour

Almost every day this issue is this written in the logfile:

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

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

Server configuration

Operating system:
Fedora 31 Server Edition

Web server:
Apache 2.4.41

Database:
MariaDB 10.2.33

PHP version:
7.3.16

Nextcloud version: (see Nextcloud admin page)
18.0.3

Updated from an older Nextcloud/ownCloud or fresh install:
17.x

Where did you install Nextcloud from:
Official site

Signing status:


Signing status

Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

No errors have been found.

List of activated apps:


App list

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Enabled:
  - accessibility: 1.4.0
  - activity: 2.11.0
  - admin_audit: 1.8.0
  - bruteforcesettings: 1.6.0
  - calendar: 2.0.3
  - cloud_federation_api: 1.1.0
  - comments: 1.8.0
  - contacts: 3.3.0
  - dav: 1.14.0
  - documentserver_community: 0.1.5
  - external: 3.5.0
  - federatedfilesharing: 1.8.0
  - federation: 1.8.0
  - files: 1.13.1
  - files_accesscontrol: 1.8.1
  - files_antivirus: 2.3.0
  - files_external: 1.9.0
  - files_pdfviewer: 1.7.0
  - files_rightclick: 0.15.2
  - files_sharing: 1.10.1
  - files_trashbin: 1.8.0
  - files_versions: 1.11.0
  - files_videoplayer: 1.7.0
  - firstrunwizard: 2.7.0
  - groupfolders: 6.0.5
  - logreader: 2.3.0
  - lookup_server_connector: 1.6.0
  - maps: 0.1.6
  - notes: 3.2.0
  - notifications: 2.6.0
  - oauth2: 1.6.0
  - onlyoffice: 4.1.4
  - password_policy: 1.8.0
  - photos: 1.0.0
  - previewgenerator: 2.3.0
  - privacy: 1.2.0
  - provisioning_api: 1.8.0
  - quota_warning: 1.7.0
  - ransomware_protection: 1.6.1
  - recommendations: 0.6.0
  - serverinfo: 1.8.0
  - settings: 1.0.0
  - sharebymail: 1.8.0
  - support: 1.1.0
  - survey_client: 1.6.0
  - systemtags: 1.8.0
  - text: 2.0.0
  - theming: 1.9.0
  - twofactor_backupcodes: 1.7.0
  - twofactor_totp: 4.1.3
  - unsplash: 1.1.5
  - updatenotification: 1.8.0
  - viewer: 1.2.0
  - workflow_pdf_converter: 1.3.1
  - workflowengine: 2.0.0
Disabled:
  - encryption
  - end_to_end_encryption
  - nextcloud_announcements
  - ransomware_detection
  - spreed
  - user_ldap

Nextcloud configuration:


Config report

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "woti.dedyn.io",
            "10.0.0.136"
        ],
        "overwrite.cli.url": "https:\/\/10.0.0.137",
        "auth.bruteforce.protection.enabled": true,
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "tempdirectory": "\/mnt\/cloud\/nextcloud\/tmp",
        "dbtype": "mysql",
        "version": "18.0.3.0",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "updater.release.channel": "stable",
        "maintenance": false,
        "theme": "",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\PDF"
        ],
        "preview_max_x": 1024,
        "preview_max_y": 768,
        "preview_max_scale_factor": 1,
        "loglevel": 2,
        "log_type": "file",
        "logtimezone": "Europe\/Oslo",
        "logfile": "\/mnt\/cloud\/nextcloud\/data\/nextcloud.log",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "app_install_overwrite": [
            "files_reader",
            "end_to_end_encryption"
        ],
        "data-fingerprint": "f2ab15295c8a63a29ec98aca643216ea"
    }
}

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)


LDAP config

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:
It doesn't matter
Operating system:
Fedora Linux, Windows 10, Apple iOS, Android og Apple based mobile units

Logs

Web server error log


Web server error log

Insert your webserver log here
/etc/httpd/logs/error_log                                                                                                                         19915/19915             100%[Wed Feb 19 18:37:39.302722 2020] [suexec:notice] [pid 142593:tid 140616035406144] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)                              [Wed Feb 19 18:37:39.332841 2020] [mpm_event:notice] [pid 142593:tid 140616035406144] AH00489: Apache/2.4.41 (Fedora) OpenSSL/1.1.1d configured -- resuming normal operations [Wed Feb 19 18:37:39.332883 2020] [core:notice] [pid 142593:tid 140616035406144] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'                                       [Mon Feb 24 22:05:16.698168 2020] [mpm_event:notice] [pid 142593:tid 140616035406144] AH00492: caught SIGWINCH, shutting down gracefully                                      [Mon Feb 24 22:05:28.818396 2020] [core:notice] [pid 245117:tid 140481632248128] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0                [Mon Feb 24 22:05:28.820228 2020] [suexec:notice] [pid 245117:tid 140481632248128] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)                              [Mon Feb 24 22:05:28.848866 2020] [mpm_event:notice] [pid 245117:tid 140481632248128] AH00489: Apache/2.4.41 (Fedora) OpenSSL/1.1.1d configured -- resuming normal operations [Mon Feb 24 22:05:28.848906 2020] [core:notice] [pid 245117:tid 140481632248128] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'                                       [Wed Mar 11 19:20:14.473317 2020] [mpm_event:notice] [pid 245117:tid 140481632248128] AH00492: caught SIGWINCH, shutting down gracefully                                      [Wed Mar 11 19:21:26.697841 2020] [core:notice] [pid 821:tid 140271661449536] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0                   [Wed Mar 11 19:21:26.790110 2020] [suexec:notice] [pid 821:tid 140271661449536] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)                                 [Wed Mar 11 19:21:26.885615 2020] [mpm_event:notice] [pid 821:tid 140271661449536] AH00489: Apache/2.4.41 (Fedora) OpenSSL/1.1.1d configured -- resuming normal operations    [Wed Mar 11 19:21:26.885644 2020] [core:notice] [pid 821:tid 140271661449536] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'                                          [Sat Mar 14 00:10:18.231749 2020] [mpm_event:notice] [pid 821:tid 140271661449536] AH00492: caught SIGWINCH, shutting down gracefully                                         [Sat Mar 14 00:11:14.027396 2020] [core:notice] [pid 830:tid 140230847852864] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0                   [Sat Mar 14 00:11:14.036935 2020] [suexec:notice] [pid 830:tid 140230847852864] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)                                 [Sat Mar 14 00:11:14.130589 2020] [mpm_event:notice] [pid 830:tid 140230847852864] AH00489: Apache/2.4.41 (Fedora) OpenSSL/1.1.1d configured -- resuming normal operations    [Sat Mar 14 00:11:14.130630 2020] [core:notice] [pid 830:tid 140230847852864] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'                                          [Thu Mar 19 16:42:31.652972 2020] [mpm_event:notice] [pid 830:tid 140230847852864] AH00492: caught SIGWINCH, shutting down gracefully                                         [Thu Mar 19 16:42:32.978283 2020] [core:notice] [pid 347558:tid 139729629233472] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0                [Thu Mar 19 16:42:32.980077 2020] [suexec:notice] [pid 347558:tid 139729629233472] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)                              [Thu Mar 19 16:42:33.010326 2020] [mpm_event:notice] [pid 347558:tid 139729629233472] AH00489: Apache/2.4.41 (Fedora) OpenSSL/1.1.1d configured -- resuming normal operations [Thu Mar 19 16:42:33.010391 2020] [core:notice] [pid 347558:tid 139729629233472] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'                                       [Thu Mar 26 22:10:52.633991 2020] [mpm_event:notice] [pid 347558:tid 139729629233472] AH00492: caught SIGWINCH, shutting down gracefully                                      [Fri Mar 27 06:13:34.458671 2020] [core:notice] [pid 829:tid 139640768409920] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0                   [Fri Mar 27 06:13:34.638692 2020] [suexec:notice] [pid 829:tid 139640768409920] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)                                 [Fri Mar 27 06:13:34.794102 2020] [mpm_event:notice] [pid 829:tid 139640768409920] AH00489: Apache/2.4.41 (Fedora) OpenSSL/1.1.1d configured -- resuming normal operations    [Fri Mar 27 06:13:34.794140 2020] [core:notice] [pid 829:tid 139640768409920] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'                                          [Fri Mar 27 06:49:46.908995 2020] [mpm_event:notice] [pid 829:tid 139640768409920] AH00492: caught SIGWINCH, shutting down gracefully                                         [Fri Mar 27 06:50:46.602254 2020] [core:notice] [pid 820:tid 139743184539968] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0                   [Fri Mar 27 06:50:46.716943 2020] [suexec:notice] [pid 820:tid 139743184539968] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)                                 [Fri Mar 27 06:50:46.868080 2020] [mpm_event:notice] [pid 820:tid 139743184539968] AH00489: Apache/2.4.41 (Fedora) OpenSSL/1.1.1d configured -- resuming normal operations    [Fri Mar 27 06:50:46.868127 2020] [core:notice] [pid 820:tid 139743184539968] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'                                          [Fri Apr 10 08:53:27.311634 2020] [mpm_event:notice] [pid 820:tid 139743184539968] AH00492: caught SIGWINCH, shutting down gracefully                                         [Fri Apr 10 08:53:31.318658 2020] [core:notice] [pid 519497:tid 139885248487744] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0                [Fri Apr 10 08:53:31.321361 2020] [suexec:notice] [pid 519497:tid 139885248487744] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)                              [Fri Apr 10 08:53:31.379464 2020] [mpm_event:notice] [pid 519497:tid 139885248487744] AH00489: Apache/2.4.43 (Fedora) OpenSSL/1.1.1d configured -- resuming normal operations [Fri Apr 10 08:53:31.379508 2020] [core:notice] [pid 519497:tid 139885248487744] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'                                       [Wed Apr 15 21:15:50.647961 2020] [mpm_event:notice] [pid 519497:tid 139885248487744] AH00492: caught SIGWINCH, shutting down gracefully                                      [Wed Apr 15 21:15:51.740924 2020] [core:notice] [pid 740290:tid 139876092449088] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0                [Wed Apr 15 21:15:51.743340 2020] [suexec:notice] [pid 740290:tid 139876092449088] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)                              [Wed Apr 15 21:15:51.771125 2020] [mpm_event:notice] [pid 740290:tid 139876092449088] AH00489: Apache/2.4.43 (Fedora) OpenSSL/1.1.1d configured -- resuming normal operations [Wed Apr 15 21:15:51.771177 2020] [core:notice] [pid 740290:tid 139876092449088] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'                                       [Wed Apr 15 21:55:09.368367 2020] [mpm_event:notice] [pid 740290:tid 139876092449088] AH00492: caught SIGWINCH, shutting down gracefully                                      [Wed Apr 15 21:55:10.449375 2020] [core:notice] [pid 741739:tid 139725627003200] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0                [Wed Apr 15 21:55:10.451205 2020] [suexec:notice] [pid 741739:tid 139725627003200] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)                              [Wed Apr 15 21:55:10.478182 2020] [mpm_event:notice] [pid 741739:tid 139725627003200] AH00489: Apache/2.4.43 (Fedora) OpenSSL/1.1.1d configured -- resuming normal operations
[Wed Apr 15 21:55:10.478229 2020] [core:notice] [pid 741739:tid 139725627003200] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

Nextcloud log (data/nextcloud.log)


Nextcloud log

Insert your Nextcloud log here
{"reqId":"XpuXvHdRCNp9sdQt2WGNDwAAAMg","level":3,"time":"2020-04-19T02:13:48+02:00","remoteAddr":"88.88.28.65","user":"HIDE_USERNAME","app":"no app in context","method":"OPTIONS","url":"/nextcloud/remote.php/","message":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"photos.page.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":339,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->","args":["photos.page.index",[],1]},{"file":"/var/www/html/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["photos.page.index",[],false]},{"file":"/var/www/html/nextcloud/lib/private/URLGenerator.php","line":82,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->","args":["photos.page.index",[]]},{"file":"/var/www/html/nextcloud/lib/private/NavigationManager.php","line":293,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->","args":["photos.page.index"]},{"file":"/var/www/html/nextcloud/lib/private/NavigationManager.php","line":114,"function":"init","class":"OC\\NavigationManager","type":"->","args":[]},{"file":"/var/www/html/nextcloud/apps/theming/lib/ThemingDefaults.php","line":182,"function":"getAll","class":"OC\\NavigationManager","type":"->","args":["guest"]},{"file":"/var/www/html/nextcloud/lib/private/legacy/defaults.php","line":263,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/public/Defaults.php","line":169,"function":"getLongFooter","class":"OC_Defaults","type":"->","args":[]},{"file":"/var/www/html/nextcloud/core/templates/layout.guest.php","line":55,"function":"getLongFooter","class":"OCP\\Defaults","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/Template/Base.php","line":179,"args":["/var/www/html/nextcloud/core/templates/layout.guest.php"],"function":"include"},{"file":"/var/www/html/nextcloud/lib/private/Template/Base.php","line":151,"function":"load","class":"OC\\Template\\Base","type":"->","args":["/var/www/html/nextcloud/core/templates/layout.guest.php",null]},{"file":"/var/www/html/nextcloud/lib/private/legacy/template.php","line":181,"function":"fetchPage","class":"OC\\Template\\Base","type":"->","args":[null]},{"file":"/var/www/html/nextcloud/lib/private/legacy/template.php","line":212,"function":"fetchPage","class":"OC_Template","type":"->","args":[null]},{"file":"/var/www/html/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/template.php","line":300,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/nextcloud/remote.php","line":82,"function":"printErrorPage","class":"OC_Template","type":"::","args":["Path not found","",404]},{"file":"/var/www/html/nextcloud/remote.php","line":168,"function":"handleException","args":[{"__class__":"RemoteException"}]}],"File":"/var/www/html/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":144,"CustomMessage":"--"},"userAgent":"gvfs/1.42.2","version":"18.0.3.0","id":"5e9e203489df2"}

[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 <<closure>>

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

OPTIONS /nextcloud/remote.php/
from 88.88.28.65 by HIDE_USERNAME at 2020-04-19T02:13:48+02:00

{"reqId":"XpuXvHdRCNp9sdQt2WGNDwAAAMg","level":3,"time":"2020-04-19T02:13:48+02:00","remoteAddr":"88.88.28.65","user":"HIDE_USERNAME","app":"no app in context","method":"OPTIONS","url":"/nextcloud/remote.php/","message":{"Exception":"Symfony\Component\Routing\Exception\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"calendar.view.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":339,"function":"generate","class":"Symfony\Component\Routing\Generator\UrlGenerator","type":"->","args":["calendar.view.index",[],1]},{"file":"/var/www/html/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\Route\Router","type":"->","args":["calendar.view.index",[],false]},{"file":"/var/www/html/nextcloud/lib/private/URLGenerator.php","line":82,"function":"generate","class":"OC\Route\CachingRouter","type":"->","args":["calendar.view.index",[]]},{"file":"/var/www/html/nextcloud/lib/private/NavigationManager.php","line":293,"function":"linkToRoute","class":"OC\URLGenerator","type":"->","args":["calendar.view.index"]},{"file":"/var/www/html/nextcloud/lib/private/NavigationManager.php","line":114,"function":"init","class":"OC\NavigationManager","type":"->","args":[]},{"file":"/var/www/html/nextcloud/apps/theming/lib/ThemingDefaults.php","line":182,"function":"getAll","class":"OC\NavigationManager","type":"->","args":["guest"]},{"file":"/var/www/html/nextcloud/lib/private/legacy/defaults.php","line":263,"function":"getShortFooter","class":"OCA\Theming\ThemingDefaults","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/public/Defaults.php","line":169,"function":"getLongFooter","class":"OC_Defaults","type":"->","args":[]},{"file":"/var/www/html/nextcloud/core/templates/layout.guest.php","line":55,"function":"getLongFooter","class":"OCP\Defaults","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/Template/Base.php","line":179,"args":["/var/www/html/nextcloud/core/templates/layout.guest.php"],"function":"include"},{"file":"/var/www/html/nextcloud/lib/private/Template/Base.php","line":151,"function":"load","class":"OC\Template\Base","type":"->","args":["/var/www/html/nextcloud/core/templates/layout.guest.php",null]},{"file":"/var/www/html/nextcloud/lib/private/legacy/template.php","line":181,"function":"fetchPage","class":"OC\Template\Base","type":"->","args":[null]},{"file":"/var/www/html/nextcloud/lib/private/legacy/template.php","line":212,"function":"fetchPage","class":"OC_Template","type":"->","args":[null]},{"file":"/var/www/html/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/template.php","line":300,"function":"printPage","class":"OC\Template\Base","type":"->","args":[]},{"file":"/var/www/html/nextcloud/remote.php","line":82,"function":"printErrorPage","class":"OC_Template","type":"::","args":["Path not found","",404]},{"file":"/var/www/html/nextcloud/remote.php","line":168,"function":"handleException","args":[{"__class__":"RemoteException"}]}],"File":"/var/www/html/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":144,"CustomMessage":"--"},"userAgent":"gvfs/1.42.2","version":"18.0.3.0","id":"5e9e203489f0f"}

[no app in context] Error: Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "calendar.view.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("calendar.view.index", [], 1)
  2. /var/www/html/nextcloud/lib/private/Route/CachingRouter.php line 59
    OC\Route\Router->generate("calendar.view.index", [], false)
  3. /var/www/html/nextcloud/lib/private/URLGenerator.php line 82
    OC\Route\CachingRouter->generate("calendar.view.index", [])
  4. /var/www/html/nextcloud/lib/private/NavigationManager.php line 293
    OC\URLGenerator->linkToRoute("calendar.view.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")

    1. /var/www/html/nextcloud/lib/private/Template/Base.php line 151

      OC\Template\Base->load("/var/www/html/n ... p", null)

    2. /var/www/html/nextcloud/lib/private/legacy/template.php line 181

      OC\Template\Base->fetchPage(null)

    3. /var/www/html/nextcloud/lib/private/legacy/template.php line 212

      OC_Template->fetchPage(null)

    4. /var/www/html/nextcloud/lib/private/Template/Base.php line 132

      OC_Template->fetchPage()

    5. /var/www/html/nextcloud/lib/private/legacy/template.php line 300

      OC\Template\Base->printPage()

    6. /var/www/html/nextcloud/remote.php line 82

      OC_Template::printErrorPage("Path not found", "", 404)

    7. /var/www/html/nextcloud/remote.php line 168

      handleException(RemoteException {})

OPTIONS /nextcloud/remote.php/
from 88.88.28.65 by HIDE_USERNAME at 2020-04-19T02:13:48+02:00

Browser log


Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

No browser log because of using mobile NC app and NC desktop client

0. Needs triage bug

All 24 comments

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.

No not Nautilus. Just NC client app both Windows, Linux and mobiles. No Webdav.

Log says gvfs/1.42.2 as user agent. That's a library developed by gnome to access remote filesystems.

Found it in the log but where is this coming from? I have user with Fedora Linux but Cinnamon desktop. But they too are using NC client app. No one is using webdav via Nautilus. Do I understand something wrong?

I'm not able to answer that question. It's also not important for the actual issue. Just in case you want to dig some more.

Let's take a look here. https://help.nextcloud.com/t/unable-to-generate-a-url-photos-page-index-routenotfoundexception/69358
I am not the only one with this issue.
There are several apps which trigger this message.

Let me rephrase:

1) Is the answer to "I have no idea how to reproduce this log message". In case you want to figure out who is triggering the error. It's not important for the actual issue.

2) Is the actual issue. Some error occurred and while building the error response something else failed. I guess something related to the menu ;)

Okay now I see :)
It's a hard nut. How to reproduce... I do not know either.

@Wotisrv Did you use the online account feature, which is present in cinemon? I am running fedora 32 and I ran into the same issue:

It basically boils down to:

  • setup a fresh Nextcloud 18 install
  • add an application to Nextcloud, which is supported by the gnome online accounts integration (I tried it with tasks, calendar and contacts)
  • login to your account trough the gnome integration (settings > online accounts > Nextcloud) [I tested only on gnome 3.36.1]

Now the Nextcloud contacts, tasks and calendar should show up in applications, which support the evolution data server (Evolution, Gnome Calendar or Gnome Contacts for example), but they don't. The only thing, which is working is the webdav integration into nautilus.

I am just guessing right now, but it could be a problem with gnome, because of the error response of the server (which is apparently broken in itself). But I am just guessing.

@Wotisrv Did you use the online account feature, which is present in cinemon? I am running fedora 32 and I ran into the same issue:

It basically boils down to:

  • setup a fresh Nextcloud 18 install
  • add an application to Nextcloud, which is supported by the gnome online accounts integration (I tried it with tasks, calendar and contacts)
  • login to your account trough the gnome integration (settings > online accounts > Nextcloud) [I tested only on gnome 3.36.1]

Now the Nextcloud contacts, tasks and calendar should show up in applications, which support the evolution data server (Evolution, Gnome Calendar or Gnome Contacts for example), but they don't. The only thing, which is working is the webdav integration into nautilus.

I am just guessing right now, but it could be a problem with gnome, because of the error response of the server (which is apparently broken in itself). But I am just guessing.

I am not sure. Actually no, but I'll check. I tried Gnome Online Accounts in Cinnamon earlier but nothing worked. So i just stopped to use this feature.
I am using Nextcloud via webdav in Nautilus that's for sure.

I'll do some tests and report.

Update: Gnome 3.36.2 apparently fixes the issue. Nextcloud integration through gnome online accounts works now and there is no error message in the Nextcloud logs anymore.

This is probably the evolution data server commit that fixes the issue: https://gitlab.gnome.org/GNOME/evolution-data-server/-/commit/605aad4a646893d2a4102721981428072a32fd26

I testet with Cinnamon. Using Cinnamon just webdav is supportet. No contacts or calendar. I will try in VM with Fedora 32 and Gnome 3.36. Anyway, so far no error messages in the Nextcloud log.

I have testet Nextcloud integration in Gnome 3.36 with Fedora 32 in VM. I got back the error messages. It is strange.
I testet also in Gnome 3.32 with Centos 8 Stream and there was no error messages either.
However, both Fedora Cinnamon and Centos 8 Gnome doesn't support contacts or calender through Nextcloud integration as Fedora Gnome 3.36 does.

I do not why but now I got the issues back in Cinnamon too...

I've encountered this phenomenon since NC17 and am still facing this problem in NC19.
Is this a problem with Nextcloud? Is this a problem with my server, e.g. nginx or php configuration?

I've encountered this phenomenon since NC17 and am still facing this problem in NC19.
Is this a problem with Nextcloud? Is this a problem with my server, e.g. nginx or php configuration?

Are you using Gnome Online Accounts with activated "files"? If so, try to deactivate "files" and the messages should disappear.
Note: The message won't disappear if using webdav.

https://help.nextcloud.com/t/unable-to-generate-a-url-photos-page-index-routenotfoundexception/69358

I'm using Gnome 3.34.2 and didn't see the error with NC17. I upgraded to NC18 and the error appeared. I now upgraded to NC19 and the error disappeared again.

For me not. Error appeard in NC 19 and i upgraded to beta NC 19.1 RC1 Error is still there. This is only webinterface with browser. No mountung or webdav of any kind. Please fix it.

Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "photos.page.index" as such route does not exist.
/srv/www/htdocs/cloud/lib/private/Route/Router.php - line 338:

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

/srv/www/htdocs/cloud/lib/private/Route/CachingRouter.php - line 60:

OC\Route\Router->generate()

/srv/www/htdocs/cloud/lib/private/URLGenerator.php - line 83:

OC\Route\CachingRouter->generate()

/srv/www/htdocs/cloud/lib/private/NavigationManager.php - line 294:

OC\URLGenerator->linkToRoute()

/srv/www/htdocs/cloud/lib/private/NavigationManager.php - line 115:

OC\NavigationManager->init()

/srv/www/htdocs/cloud/apps/theming/lib/ThemingDefaults.php - line 183:

OC\NavigationManager->getAll()

/srv/www/htdocs/cloud/lib/private/legacy/OC_Defaults.php - line 263:

OCA\Theming\ThemingDefaults->getShortFooter()

/srv/www/htdocs/cloud/lib/public/Defaults.php - line 169:

OC_Defaults->getLongFooter()

/srv/www/htdocs/cloud/core/templates/layout.guest.php - line 55:

OCP\Defaults->getLongFooter()

/srv/www/htdocs/cloud/lib/private/Template/Base.php - line 178:

include("/srv/www/ht ... p")

/srv/www/htdocs/cloud/lib/private/Template/Base.php - line 150:

OC\Template\Base->load()

/srv/www/htdocs/cloud/lib/private/legacy/OC_Template.php - line 182:

OC\Template\Base->fetchPage()

/srv/www/htdocs/cloud/lib/private/legacy/OC_Template.php - line 213:

OC_Template->fetchPage()

/srv/www/htdocs/cloud/lib/private/Template/Base.php - line 132:

OC_Template->fetchPage()

/srv/www/htdocs/cloud/lib/private/legacy/OC_Template.php - line 334:

OC\Template\Base->printPage()

/srv/www/htdocs/cloud/index.php - line 63:

OC_Template::printExceptionErrorPage()

I'm running into that issue when attempting to sync calendars with vdirsyncer. I'm not sure when that started, but I cannot sync calendars anymore with NC 18.0.7:

error: Unknown error occured for USER_REDACTED/defaultcalendar: 503 Server Error: Service Unavailable for url: https://HOST_REDACTED/remote.php/dav/calendars/USER_REDACTED/defaultcalendar/

This is what apache is logging:

IP_REDACTED - USER_REDACTED [22/Jul/2020:12:22:13 +0000] "REPORT /remote.php/dav/calendars/USER_REDACTED/defaultcalendar/ HTTP/1.1" 503 0 "-" "vdirsyncer/0.16.7"

vdirsyncer is installed from Debian buster repositories.

Oh! This might be a different problem. My nextcloud instance is behind an nginx reverse proxy. If the connection between the reverse proxy and the nextcloud backend (apache) is forced to IPv4 (instead of IPv6), then the problem goes away.

IP_REDACTED - USER_REDACTED [22/Jul/2020:12:50:06 +0000] "REPORT /remote.php/dav/calendars/USER_REDACTED/defaultcalendar/ HTTP/1.1" 207 3297 "-" "vdirsyncer/0.16.7"

So, in my case the issue was that I forgot to update trusted_proxies in config.php with the IPv6 address of the reverse proxy after deploying IPv6 in the backend network. Thus maybe check your trusted_proxies settings.

Please ignore my last comment. Updating trusted_proxies did not solve the problem.

Will not be shown anymore with #21993

Was this page helpful?
0 / 5 - 0 ratings