Project

General

Profile

Actions

communication #135098

closed

Synapse trying to access /etc/resolv.conf ends up with a permission error

Added by hellcp 8 months ago. Updated 8 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
IRC and Matrix
Target version:
-
Start date:
2023-09-04
Due date:
% Done:

100%

Estimated time:

Description

Looking at /var/log/matrix-synapse/homeserver.log, I can see that synapse keeps logging Failed to send request: PermissionError: [Errno 13] Permission denied: b'/etc/resolv.conf'. Because of this the federation is broken. I am not really sure why it's trying to do anything with that file either, but this needs to be figured out somehow.

Actions #1

Updated by crameleon 8 months ago

  • Private changed from Yes to No
sh-5.2# grep resolv.conf /var/log/audit/audit.log|tail -n1
type=AVC msg=audit(1692667577.877:912260): apparmor="DENIED" operation="open" class="file" profile="matrix-synapse" name="/run/netconfig/resolv.conf" pid=4808 comm="python3" requested_mask="r" denied_mask="r" fsuid=476 ouid=0
Actions #2

Updated by crameleon 8 months ago

# rpm -qf /etc/apparmor.d/matrix-synapse
file /etc/apparmor.d/matrix-synapse is not owned by any package
# rpm -ql matrix-synapse|grep appar

Where is this file maintained? Only locally on matrix.i.o.o?

Actions #4

Updated by crameleon 8 months ago

Thanks, I searched that directory but only using grep. :-)

Actions #5

Updated by crameleon 8 months ago

  • Status changed from New to In Progress
  • Assignee set to crameleon
Actions #6

Updated by crameleon 8 months ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 50
Actions #7

Updated by crameleon 8 months ago

  • Status changed from Feedback to In Progress
  • % Done changed from 50 to 70
Actions #8

Updated by crameleon 8 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 70 to 100

Applied.

Actions

Also available in: Atom PDF