matrix-docker-ansible-deploy icon indicating copy to clipboard operation
matrix-docker-ansible-deploy copied to clipboard

Working fine, but nginx logs tons of errors

Open parisni opened this issue 3 years ago • 3 comments

On my instance my.matrix.com I have an external nginx reverse proxy and no internal nginx. Everything looks fine (also federation) except I get the nginx logs flooded with those three kind of errors:

  • federation error kind: <datetime> [error] connect() failed (111: Connection refused) while connecting to upstream, client: <ip>, server: my.matrix.com, request: "PUT /_matrix/federation/v1/send/123456789 HTTP/1.1", upstream: "http://[::1]:8048/_matrix/federation/v1/send/123456789", host: "my.matrix.com:8448"
  • thumbnail crop error kind: <datetime> [error] connect() failed (111: Connection refused) while connecting to upstream, client: <ip>, server: my.matrix.org, request: "GET /_matrix/media/r0/thumbnail/<name>/<hash_key>?width=32&height=32&method=crop HTTP/1.1", upstream: "http://[::1]:8008/_matrix/media/r0/thumbnail/<name>/<hash_key>?width=32&height=32&method=crop", host: "my.matrix.com"
  • options sync warn kind: [warn] 1853962#1853962: *72597 upstream server temporarily disabled while connecting to upstream, client: <ip>, server: my.matrix.com, request: "OPTIONS /_matrix/client/r0/sync?filter=0&timeout=30000&since=s564022_4510019_249_269803_148995_111_102126_309085_1 HTTP/2.0", upstream: "http://[::1]:8008/_matrix/client/r0/sync?filter=0&timeout=30000&since=s564022_4510019_249_269803_148995_111_102126_309085_1", host: "my.matrix.com"

Any idea ?

parisni avatar Dec 25 '21 11:12 parisni

How much is "tons"? Some errors are normal, not every server is up all the time. For example in the last 12 hours I see 18 similar errors in my nginx logs.

aaronraimist avatar Dec 25 '21 14:12 aaronraimist

You're probably trying to use Synapse with workers in combination with an external webserver. See https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1383

spantaleev avatar Dec 25 '21 15:12 spantaleev

@aaronraimist I got 30k such error in the last 24h. I get almost 5 such rows per 15 seconds

@spantaleev I assume I am not using workers :

matrix_synapse_workers_enabled: false
matrix_synapse_workers_preset: little-federation-helper

parisni avatar Dec 25 '21 16:12 parisni