nextcloud / nextcloud/circles

Unable to generate a URL for the named route \"contacts.contacts.directcircle\" as such route does not exist.

Open
#1,031 4 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
177
Forks
68
Avg merge
2d 22h
Merged PRs (30d)
60

Description

Nextcloud 23.0.4.1, circles 23.1.1 (up to date)
The logs are filled with :

{
  "reqId": "QxfXCz52R7XLrPc4TlEc",
  "level": 1,
  "time": "2022-04-24T09:55:20+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "no app in context",
  "method": "",
  "url": "--",
  "message": "Unable to generate a URL for the named route \"contacts.contacts.directcircle\" as such route does not exist.",
  "userAgent": "--",
  "version": "23.0.4.1",
  "exception": {
    "Exception": "Symfony\\Component\\Routing\\Exception\\RouteNotFoundException",
    "Message": "Unable to generate a URL for the named route \"contacts.contacts.directcircle\" as such route does not exist.",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/nextcloud/lib/private/Route/Router.php",
        "line": 365,
        "function": "generate",
        "class": "Symfony\\Component\\Routing\\Generator\\UrlGenerator",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Route/CachingRouter.php",
        "line": 59,
        "function": "generate",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/URLGenerator.php",
        "line": 91,
        "function": "generate",
        "class": "OC\\Route\\CachingRouter",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/Model/ModelManager.php",
        "line": 558,
        "function": "linkToRoute",
        "class": "OC\\URLGenerator",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/Model/Circle.php",
        "line": 733,
        "function": "generateLinkToCircle",
        "class": "OCA\\Circles\\Model\\ModelManager",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/Model/Circle.php",
        "line": 855,
        "function": "getUrl",
        "class": "OCA\\Circles\\Model\\Circle",
        "type": "->"
      },
      {
        "function": "jsonSerialize",
        "class": "OCA\\Circles\\Model\\Circle",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/Service/FederatedUserService.php",
        "line": 1287,
        "function": "json_encode"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/Service/FederatedUserService.php",
        "line": 1061,
        "function": "cacheSingleCircle",
        "class": "OCA\\Circles\\Service\\FederatedUserService",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/Service/FederatedUserService.php",
        "line": 973,
        "function": "getSingleCircle",
        "class": "OCA\\Circles\\Service\\FederatedUserService",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/Service/FederatedUserService.php",
        "line": 527,
        "function": "fillSingleCircleId",
        "class": "OCA\\Circles\\Service\\FederatedUserService",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/ShareByCircleProvider.php",
        "line": 553,
        "function": "getLocalFederatedUser",
        "class": "OCA\\Circles\\Service\\FederatedUserService",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Share20/Manager.php",
        "line": 1375,
        "function": "getSharedWith",
        "class": "OCA\\Circles\\ShareByCircleProvider",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/files_sharing/lib/MountProvider.php",
        "line": 90,
        "function": "getSharedWith",
        "class": "OC\\Share20\\Manager",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/Config/MountProviderCollection.php",
        "line": 118,
        "function": "getMountsForUser",
        "class": "OCA\\Files_Sharing\\MountProvider",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/Filesystem.php",
        "line": 424,
        "function": "addMountForUser",
        "class": "OC\\Files\\Config\\MountProviderCollection",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/Filesystem.php",
        "line": 341,
        "function": "initMountPoints",
        "class": "OC\\Files\\Filesystem",
        "type": "::"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/legacy/OC_Util.php",
        "line": 342,
        "function": "init",
        "class": "OC\\Files\\Filesystem",
        "type": "::"
      },
      {
        "file": "/var/www/html/nextcloud/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php",
        "line": 109,
        "function": "setupFS",
        "class": "OC_Util",
        "type": "::"
      },
      {
        "file": "/var/www/html/nextcloud/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php",
        "line": 92,
        "function": "setupFS",
        "class": "OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/User/Manager.php",
        "line": 656,
        "function": "OCA\\Files_Trashbin\\BackgroundJob\\{closure}",
        "class": "OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/html/nextcloud/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php",
        "line": 97,
        "function": "callForSeenUsers",
        "class": "OC\\User\\Manager",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/BackgroundJob/Job.php",
        "line": 51,
        "function": "run",
        "class": "OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/BackgroundJob/TimedJob.php",
        "line": 58,
        "function": "execute",
        "class": "OC\\BackgroundJob\\Job",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/cron.php",
        "line": 150,
        "function": "execute",
        "class": "OC\\BackgroundJob\\TimedJob",
        "type": "->"
      }
    ],
    "File": "/var/www/html/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php",
    "Line": 143,
    "CustomMessage": "--"
  }
}

I have the user backend as LDAP.

Do you know what should I do ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with apps/circles/lib/Model/ModelManager.php and apps/circles/lib/Model/Circle.php, following the generation of the contacts.contacts.directcircle route URL into FederatedUserService.php. Reproduce or trace the background-job path shown in the report and identify why that named route is unavailable; done means the recurring RouteNotFoundException no longer appears in the logs.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.