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.
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.
- 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
# 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?
Thanks, I searched that directory but only using grep. :-)
- Status changed from New to In Progress
- Assignee set to crameleon
- Status changed from In Progress to Feedback
- % Done changed from 0 to 50
- Status changed from Feedback to In Progress
- % Done changed from 50 to 70
- Status changed from In Progress to Resolved
- % Done changed from 70 to 100
Also available in: Atom
PDF