dendrite
dendrite copied to clipboard
"Unrecognised server name for Destination" spam in logs
Background information
- Dendrite version or git SHA: 0.9.2
- Monolith or Polylith?: monolith
- SQLite3 or Postgres?: postgresql
- Running in Docker?: no
-
go version
: go1.18.5 openbsd/amd64 - Client used (if applicable): N/A
Description
- What is the problem: Logfile spammed with "Unrecognised server name for Destination"
- Who is affected: server admin
- How is this bug manifesting: logs spamming all the time
- When did this first appear: I noticed it after restoring from last postgres backup, but I don't have access to the logs before that unfortunately. My server started being degraded (slow downs, missing rooms, etc…) after trying to join #matrix:matrix.org. I decided reinstall and restore from last backup, and now I get this spamming in the log
Steps to reproduce
Not quite sure how to reproduce that. This is most likely an issue on my end, but I don't understand the message or how to fix it.
Here is an extract from my logs:
time="2022-08-17T17:01:09.257446713Z" level=info msg="Unrecognised server name for Destination" func=github.com/matrix-org/gomatrixserverlib.VerifyHTTPRequest file="github.com/matrix-org/[email protected]
-20220801083850-5ff38e2c2839/request.go:214" error="<nil>" req.id=q3Dc0bynnZfX req.method=PUT req.path=/_matrix/federation/v1/send/1659564388537
time="2022-08-17T17:01:20.267965582Z" level=info msg="Unrecognised server name for Destination" func=github.com/matrix-org/gomatrixserverlib.VerifyHTTPRequest file="github.com/matrix-org/[email protected]
-20220801083850-5ff38e2c2839/request.go:214" error="<nil>" req.id=bfI5AU4TWQ7A req.method=PUT req.path=/_matrix/federation/v1/send/1660672082852
time="2022-08-17T17:01:26.590389526Z" level=info msg="Unrecognised server name for Destination" func=github.com/matrix-org/gomatrixserverlib.VerifyHTTPRequest file="github.com/matrix-org/[email protected]
-20220801083850-5ff38e2c2839/request.go:214" error="<nil>" req.id=VmE5d6beo3fP req.method=GET req.path="/_matrix/federation/v1/user/devices/@<USERNAME>"
time="2022-08-17T17:01:26.823831439Z" level=info msg="Unrecognised server name for Destination" func=github.com/matrix-org/gomatrixserverlib.VerifyHTTPRequest file="github.com/matrix-org/[email protected]
-20220801083850-5ff38e2c2839/request.go:214" error="<nil>" req.id=STzwaqYv7P1T req.method=PUT req.path=/_matrix/federation/v1/send/1659342610651
time="2022-08-17T17:01:44.112809932Z" level=info msg="Unrecognised server name for Destination" func=github.com/matrix-org/gomatrixserverlib.VerifyHTTPRequest file="github.com/matrix-org/[email protected]
-20220801083850-5ff38e2c2839/request.go:214" error="<nil>" req.id=W9NGYwfYLyOm req.method=PUT req.path=/_matrix/federation/v1/send/1660388316206
time="2022-08-17T17:01:49.486357879Z" level=info msg="Unrecognised server name for Destination" func=github.com/matrix-org/gomatrixserverlib.VerifyHTTPRequest file="github.com/matrix-org/[email protected]
-20220801083850-5ff38e2c2839/request.go:214" error="<nil>" req.id=ZsAzRApBXcz0 req.method=PUT req.path=/_matrix/federation/v1/send/1660755709102-54
time="2022-08-17T17:01:50.865484629Z" level=info msg="Unrecognised server name for Destination" func=github.com/matrix-org/gomatrixserverlib.VerifyHTTPRequest file="github.com/matrix-org/[email protected]
-20220801083850-5ff38e2c2839/request.go:214" error="<nil>" req.id=NKHpXF9m4FA2 req.method=PUT req.path=/_matrix/federation/v1/send/1659446489485
time="2022-08-17T17:01:51.243468515Z" level=info msg="Unrecognised server name for Destination" func=github.com/matrix-org/gomatrixserverlib.VerifyHTTPRequest file="github.com/matrix-org/[email protected]
-20220801083850-5ff38e2c2839/request.go:214" error="<nil>" req.id=vOkcc4W5iRuc req.method=PUT req.path=/_matrix/federation/v1/send/1660670876771
time="2022-08-17T17:01:51.960155542Z" level=info msg="Unrecognised server name for Destination" func=github.com/matrix-org/gomatrixserverlib.VerifyHTTPRequest file="github.com/matrix-org/[email protected]
-20220801083850-5ff38e2c2839/request.go:214" error="<nil>" req.id=2vgQUaU475z6 req.method=PUT req.path=/_matrix/federation/v1/send/1660653111865
time="2022-08-17T17:01:55.939600549Z" level=info msg="Unrecognised server name for Destination" func=github.com/matrix-org/gomatrixserverlib.VerifyHTTPRequest file="github.com/matrix-org/[email protected]
-20220801083850-5ff38e2c2839/request.go:214" error="<nil>" req.id=GH5nNMfD9tpw req.method=PUT req.path=/_matrix/federation/v1/send/1660069684703
@neilalexander Can you shed some light on this? Related to https://github.com/matrix-org/gomatrixserverlib/pull/296 I think?
Does the domain name of your deployment match the server_name
in your Dendrite config?
At this moment yes. To give you more insight on what happened, I tried to change my server name from matrix.domain.tld to domain.tld (with the whole well-known process). It didn't turn out well, so I rolled back the config and restored a dump from before that change.
Closing as a configuration error, given the server name was changed. We shouldn't spam logs, and we should have better error messages, but those issues are tracked elsewhere. https://github.com/matrix-org/dendrite/issues/2127