social icon indicating copy to clipboard operation
social copied to clipboard

0.6.0beta1: /index.php/.well-known/webfinger → Actor not found

Open nursoda opened this issue 2 years ago • 2 comments

Describe the bug After installing and activating 0.6.0beta1, the “webfinger is not configured properly” warning appeared in /settings/admin/overview. A glance at the log (see below) revealed the Social app as the culprit. Please investigate why it grabs /index.php/.well-known/webfinger, If that’s on purpose, make sure the Actor is available to handle it.

To Reproduce Steps to reproduce the behavior:

  1. Configure webserver to handle .well-known URIs (by redirect, issuing 404 and routing them to Nextcloud)
  2. Do NOT install the Social app (or have it deactivated)
  3. Open /settings/admin/overview and verify there is no 'webfinger' warning
  4. (Install and) activate the Social app
  5. Open /settings/admin/overview and verify there now is a 'webfinger' warning
  6. View latest nextcloud.log entry – should yield that Social tried to handle it but has no appropriate Actor for 'webfinger'

Expected behavior The Social app should either not try to handle 'webfinger' requests, or handle them properly.

Client details:

  • OS: Arch Linux, current
  • Browser: Firefox 109.0.1
  • Device: desktop
Server details **Social app version:** 0.6.0beta1 **Operating system**: Arch Linux, current **Web server:** NGINX **Database:** MariaDB **PHP version:** 8.1.5 **Nextcloud version:** 26.0.0.2
Logs #### Nextcloud log (data/nextcloud.log) ``` { "reqId": "B7mbg4cEvTPFnBY1e4LL", "level": 3, "time": "2023-02-03T18:22:00+01:00", "remoteAddr": "78.94.68.73", "user": "nursoda.admin", "app": "index", "method": "GET", "url": "/index.php/.well-known/webfinger", "message": "Actor not found", "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0", "version": "25.0.3.2", "exception": { "Exception": "OCA\\Social\\Exceptions\\ActorDoesNotExistException", "Message": "Actor not found", "Code": 0, "Trace": [ { "file": "/server/nc/apps/social/lib/Service/CacheActorService.php", "line": 193, "function": "getFromUsername", "class": "OCA\\Social\\Db\\ActorsRequest", "type": "->" }, { "file": "/server/nc/apps/social/lib/WellKnown/WebfingerHandler.php", "line": 111, "function": "getFromLocalAccount", "class": "OCA\\Social\\Service\\CacheActorService", "type": "->" }, { "file": "/server/nc/apps/social/lib/WellKnown/WebfingerHandler.php", "line": 83, "function": "handleWebfinger", "class": "OCA\\Social\\WellKnown\\WebfingerHandler", "type": "->" }, { "file": "/server/nc/lib/private/Http/WellKnown/RequestManager.php", "line": 78, "function": "handle", "class": "OCA\\Social\\WellKnown\\WebfingerHandler", "type": "->" }, { "function": "OC\\Http\\WellKnown\\{closure}", "class": "OC\\Http\\WellKnown\\RequestManager", "type": "->", "args": [ "*** sensitive parameters replaced ***" ] }, { "file": "/server/nc/lib/private/Http/WellKnown/RequestManager.php", "line": 79, "function": "array_reduce" }, { "file": "/server/nc/core/Controller/WellKnownController.php", "line": 55, "function": "process", "class": "OC\\Http\\WellKnown\\RequestManager", "type": "->" }, { "file": "/server/nc/lib/private/AppFramework/Http/Dispatcher.php", "line": 225, "function": "handle", "class": "OC\\Core\\Controller\\WellKnownController", "type": "->" }, { "file": "/server/nc/lib/private/AppFramework/Http/Dispatcher.php", "line": 133, "function": "executeController", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->" }, { "file": "/server/nc/lib/private/AppFramework/App.php", "line": 172, "function": "dispatch", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->" }, { "file": "/server/nc/lib/private/Route/Router.php", "line": 298, "function": "main", "class": "OC\\AppFramework\\App", "type": "::" }, { "file": "/server/nc/lib/base.php", "line": 1047, "function": "match", "class": "OC\\Route\\Router", "type": "->" }, { "file": "/server/nc/index.php", "line": 36, "function": "handleRequest", "class": "OC", "type": "::" } ], "File": "/server/nc/apps/social/lib/Db/ActorsRequest.php", "Line": 111, "CustomMessage": "--" } } ```

Discussion may take place in the Forum.

nursoda avatar Feb 04 '23 20:02 nursoda

I believe I'm also having this issue. I can't seem to get webfinger to configure properly no matter what I do.

@artonge @ArtificialOwl I hate to tag you both but federation is the primary feature of Nextcloud social. If it's totally broken it's hard to justify having it around at all. I'm hoping this can be fixed and hopefully that the app can be made available to install (as untested) for users in NC 25.

Casuallynoted avatar Mar 03 '23 19:03 Casuallynoted

I have the same problem. I have set the .htaccess according to the docs and I keep getting the message that its not installed right. Just in case I even ran a occ maintenance:update:htaccess before adding the redirects.

@nursoda is right this seems to be a SOCIAL problem. The link is accessable from outside and I have the Actor not found messages in my log.

edit 26/3/23 : Seems that this is not a social problem afterall cant get webfinger or nodeinfo for that matter. If I add them manually to the url a nextcloud subdirectory is added before the url as it should be.

roelfrenkema avatar Mar 06 '23 14:03 roelfrenkema