Problems to send toot from others instances to our instance

I’m one of the admins of instance We are having problems with the federation. We are using version 2.3.3 with docker.
When we try to send toot from other instances to our instance we don’t succeeded.
We have seen this logs when try to send toot to

[12ec3464-643b-xxxx-8915-49b7360c1807] Account Load (1.5ms) SELECT “accounts”.* FROM “accounts” WHERE (“accounts”.“username” != $1) AND LOWER(“accounts”.“username”) = ‘jops’ AND “accounts”.“domain” IS NULL ORDER BY “accounts”.“id” ASC LIMIT $2 [[“username”, “”], [“LIMIT”, 1]]
[12ec3464-643b-xxxx-8915-49b7360c1807] Account Load (0.7ms) SELECT “accounts”.* FROM “accounts” WHERE “accounts”.“uri” = $1 LIMIT $2 [[“uri”, “jops ( -”], [“LIMIT”, 1]]
[12ec3464-643b-xxxx-8915-49b7360c1807] method=POST path=/users/jops/inbox format=html controller=ActivityPub::InboxesController action=create status=401 duration=19.37 view=0.23 db=2.15

Furthermore we think that the same error occur when the toot from other instances should appeared in our federated timeline:

[a34f0429-b628-xxxx-90ce-3297957cdfba] Account Load (1.0ms) SELECT “accounts”.* FROM “accounts” WHERE “accounts”.“uri” = $1 LIMIT $2 [[“uri”, “”], [“LIMIT”, 1]]
[a34f0429-b628-49dc-90ce-3297957cdfba] method=POST path=/inbox format=html controller=ActivityPub::InboxesController action=create status=401 duration=13.80 view=0.66 db=1.03

Any suggest?

Thank you in advance


This might be not the only issue with your instance.
When I try to access a user page (i.e. @jops) I got an error.
I really don’t know how to fix this, I’m starting with Mastodon.

I hope you’ll solve this !

Edit 5 minutes later : Now I can access the user page.

Reading well this link documentation/ at master · tootsuite/documentation · GitHub on “nginx Configuration” helped me. My problem was a wrong configuration of nginx