Cannot fetch local actor webfinger
Trying to fetch local actor raise this error :
api-1 | INFO: 172.21.0.8:54948 - "GET /.well-known/webfinger?resource=acct:node2@node2.funkwhale.test HTTP/1.1" 200 OK
nginx-1 | 172.19.0.1 - - [04/Dec/2024:14:51:56 +0000] "GET /.well-known/webfinger?resource=acct:node2@node2.funkwhale.test HTTP/1.1" 200 234 "-" "python-requests (funkwhale/1.4.0; +https://node2.funkwhale.test)" "172.21.0.7"
api-1 | /venv/lib/python3.12/site-packages/urllib3/connectionpool.py:1064: InsecureRequestWarning: Unverified HTTPS request is being made to host 'node2.funkwhale.test'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
api-1 | warnings.warn(
api-1 | 2024-12-04 14:51:56,575 funkwhale_api.federation.signing DEBUG Signature expected headers: ['(request-target)', 'user-agent', 'host', 'date']
api-1 | 2024-12-04 14:51:56,575 funkwhale_api.federation.signing DEBUG Verifying request with date Wed, 04 Dec 2024 14:51:56 GMT and headers {'Host': 'node2.funkwhale.test', 'X-Real-Ip': '172.19.0.1', 'X-Forwarded-For': '172.21.0.7, 172.19.0.1', 'X-Forwarded-Proto': 'http', 'X-Forwarded-Host': 'node2.funkwhale.test:80', 'X-Forwarded-Port': '80', 'Connection': 'close', 'User-Agent': 'python-requests (funkwhale/1.4.0; +https://node2.funkwhale.test)', 'Accept': 'application/activity+json', 'Accept-Encoding': 'gzip, deflate', 'Date': 'Wed, 04 Dec 2024 14:51:56 GMT', 'Signature': 'keyId="https://node2.funkwhale.test/federation/actors/node2#main-key",algorithm="rsa-sha256",headers="(request-target) user-agent host date",signature="Qd2o+m0dXRy5puj0lk9eJAvQqNtT69Ru/ubyDXN8ZVEWSWy6NXKuEfPE88MowIZsxqXqJtr2VBvjaKs9sA35P9n9XTsgbQOn2T1PAHC9QX1cep69ti1CMbbFV7bVrgL9AIUFhWyA31cK7cVxxRHrT1y6lhimmrPkoFur4dUQMocuj1upNJoE0A3mLJURZDR+ngKqU31HKKQfbUiVp6ymA7BSg0Pdev8Yu/ozlcY51SIGy8cdhLQGspfqpLIPTG99QRcaQfKpnaI4veiYGE8QrfERauVktIMGPefEkTwfSY8Em0sctWps614n/9RIMaBlsLAAc4MUKXWsiEh/i0GvvA=="', 'X-Forwarded-Server': 'nulachi-HERO-S-TGL-RTX', 'host': 'node2.funkwhale.test', 'x-real-ip': '172.19.0.1', 'x-forwarded-for': '172.21.0.7, 172.19.0.1', 'x-forwarded-proto': 'http', 'x-forwarded-host': 'node2.funkwhale.test:80', 'x-forwarded-port': '80', 'connection': 'close', 'user-agent': 'python-requests (funkwhale/1.4.0; +https://node2.funkwhale.test)', 'accept': 'application/activity+json', 'accept-encoding': 'gzip, deflate', 'date': 'Wed, 04 Dec 2024 14:51:56 GMT', 'signature': 'keyId="https://node2.funkwhale.test/federation/actors/node2#main-key",algorithm="rsa-sha256",headers="(request-target) user-agent host date",signature="Qd2o+m0dXRy5puj0lk9eJAvQqNtT69Ru/ubyDXN8ZVEWSWy6NXKuEfPE88MowIZsxqXqJtr2VBvjaKs9sA35P9n9XTsgbQOn2T1PAHC9QX1cep69ti1CMbbFV7bVrgL9AIUFhWyA31cK7cVxxRHrT1y6lhimmrPkoFur4dUQMocuj1upNJoE0A3mLJURZDR+ngKqU31HKKQfbUiVp6ymA7BSg0Pdev8Yu/ozlcY51SIGy8cdhLQGspfqpLIPTG99QRcaQfKpnaI4veiYGE8QrfERauVktIMGPefEkTwfSY8Em0sctWps614n/9RIMaBlsLAAc4MUKXWsiEh/i0GvvA=="', 'x-forwarded-server': 'nulachi-HERO-S-TGL-RTX'}
api-1 | 2024-12-04 14:51:56,598 django.request ERROR Internal Server Error: /federation/actors/node2
api-1 | Traceback (most recent call last):
api-1 | File "/venv/lib/python3.12/site-packages/asgiref/sync.py", line 518, in thread_handler
api-1 | raise exc_info[1]
api-1 | File "/venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 42, in inner
api-1 | response = await get_response(request)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/venv/lib/python3.12/site-packages/asgiref/sync.py", line 518, in thread_handler
api-1 | raise exc_info[1]
api-1 | File "/venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 253, in _get_response_async
api-1 | response = await wrapped_callback(
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/venv/lib/python3.12/site-packages/asgiref/sync.py", line 468, in __call__
api-1 | ret = await asyncio.shield(exec_coro)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/venv/lib/python3.12/site-packages/asgiref/current_thread_executor.py", line 40, in run
api-1 | result = self.fn(*self.args, **self.kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/venv/lib/python3.12/site-packages/asgiref/sync.py", line 522, in thread_handler
api-1 | return func(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/contextlib.py", line 81, in inner
api-1 | return func(*args, **kwds)
api-1 | ^^^^^^^^^^^^^^^^^^^
api-1 | File "/venv/lib/python3.12/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view
api-1 | return view_func(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/venv/lib/python3.12/site-packages/rest_framework/viewsets.py", line 125, in view
api-1 | return self.dispatch(request, *args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/funkwhale_api/federation/views.py", line 80, in dispatch
api-1 | return super().dispatch(request, *args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/venv/lib/python3.12/site-packages/rest_framework/views.py", line 509, in dispatch
api-1 | response = self.handle_exception(exc)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/venv/lib/python3.12/site-packages/rest_framework/views.py", line 469, in handle_exception
api-1 | self.raise_uncaught_exception(exc)
api-1 | File "/venv/lib/python3.12/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
api-1 | raise exc
api-1 | File "/venv/lib/python3.12/site-packages/rest_framework/views.py", line 497, in dispatch
api-1 | self.initial(request, *args, **kwargs)
api-1 | File "/venv/lib/python3.12/site-packages/rest_framework/views.py", line 414, in initial
api-1 | self.perform_authentication(request)
api-1 | File "/venv/lib/python3.12/site-packages/rest_framework/views.py", line 324, in perform_authentication
api-1 | request.user
api-1 | File "/venv/lib/python3.12/site-packages/rest_framework/request.py", line 227, in user
api-1 | self._authenticate()
api-1 | File "/venv/lib/python3.12/site-packages/rest_framework/request.py", line 380, in _authenticate
api-1 | user_auth_tuple = authenticator.authenticate(self)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/funkwhale_api/federation/authentication.py", line 93, in authenticate
api-1 | actor = self.authenticate_actor(request)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/funkwhale_api/federation/authentication.py", line 87, in authenticate_actor
api-1 | tasks.update_domain_nodeinfo(domain_name=actor.domain.name)
api-1 | File "/venv/lib/python3.12/site-packages/celery/local.py", line 182, in __call__
api-1 | return self._get_current_object()(*a, **kw)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/venv/lib/python3.12/site-packages/celery/app/task.py", line 411, in __call__
api-1 | return self.run(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/funkwhale_api/taskapp/celery.py", line 51, in inner
api-1 | instance = model_or_qs.get(pk=pk)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/venv/lib/python3.12/site-packages/django/db/models/query.py", line 637, in get
api-1 | raise self.model.DoesNotExist(
api-1 | funkwhale_api.federation.models.Domain.DoesNotExist: Domain matching query does not exist.
api-1 | INFO: 172.21.0.8:54964 - "GET /federation/actors/node2 HTTP/1.1" 500 Internal Server Error
nginx-1 | 172.19.0.1 - - [04/Dec/2024:14:51:56 +0000] "GET /federation/actors/node2 HTTP/1.1" 500 37568 "-" "python-requests (funkwhale/1.4.0; +https://node2.funkwhale.test)" "172.21.0.7"
api-1 | 2024-12-04 14:51:56,601 funkwhale_api.federation.tasks DEBUG Remote answered with 500: DoesNotExist at /federation/actors/node2
api-1 | Domain matching query does not exist.
api-1 |
test env try with : https://node2.funkwhale.test/search?id=node2%40node2.funkwhale.test&page=1&q=