[synapse] Service matrix-synapse is not running

Hello i installed yesterday pihole, actually i also update all Services yesterday. i dont now what is the reason that the Service matrix-synapse is start-pre :frowning: is not starting. I try to start it but its not posible
The coturn-synapse is running now but i have to start it agin after i made a diagnose i saw that he alsow do not start after restart. Service pihole-FTL also not start but i deinstall pihole.
actually i dont no what is the reason

I try yunohost service restart matrix-synapse
– The result is failed.
Jul 21 08:49:31 systemd[1]: matrix-synapse.service: Unit entered failed state.
Jul 21 08:49:31 systemd[1]: matrix-synapse.service: Failed with result ‘exit-code’.
an
sudo yunohost service log matrix-synapse
also dont work
https://paste.yunohost.org/acotulenaz
maybe somwon now how to fix it

hello, I am not a specialist but while reading your paste I noted this:

PermissionError: [Errno 13] Permission denied: '/etc/matrix-synapse/homeserver.yaml'

Could you go to the /etc/matrix-synapse/ folder and perform the following command:

ls -l

in order to list the users of the ‘homeserver.yaml’ file and their rights

For information on my server I have this:

-rw-r ----- + 1 matrix-synapse root 54578 Jun 29 20:12 homeserver.yaml

If they are different on your server, you should probably look that way.

Edit : a link that will probably give you more lead than my guess https://github.com/matrix-org/synapse/issues/2379

Hope this can be helpful to you.

Hello, the problem was, that the folder matrix-synapse had rights 650. I change it to 775. After that the service was running. I dont know if 775 is Ok.
Thanks for your help

I admit that I don’t really know. 775 seems a little too open to me. If anyone with more experience in Linux user rights would like to respond.

A link that may be able to enlighten you:

https://www.wistee.fr/serveur-ftp/modifier-droits-chmod.html

I change it to 740. If i change the first nummber from 7 to 6 ihe system can not start the service

This bug is quite strange.

Could you check this command to allow us to understand why permission disappeared like this:

namei -l /etc/matrix-synapse/homeserver.yaml
getfacl /etc/matrix-synapse/homeserver.yaml
getfacl /etc/matrix-synapse

Thanks

sudo namei -l /etc/matrix-synapse/homeserver.yaml
f: /etc/matrix-synapse/homeserver.yaml
drwxr-xr-x root root /
drwxr-xr-x root root etc
drwxr----- matrix-synapse root matrix-synapse
-rw-r----- matrix-synapse root homeserver.yaml

sudo getfacl /etc/matrix-synapse/homeserver.yaml
getfacl: Removing leading ‘/’ from absolute path names

file: etc/matrix-synapse/homeserver.yaml

owner: matrix-synapse

group: root

user::rw-
user:turnserver:r–
group::r–
mask::r–
other::—

sudo getfacl /etc/matrix-synapse
getfacl: Removing leading ‘/’ from absolute path names

file: etc/matrix-synapse

owner: matrix-synapse

group: root

user::rwx
user:turnserver:r-x #effective:r
group::r-x #effective:r
mask::r–
other::—

The permission chmod u=rwX,g=rX,o= -R /etc/matrix-synapse has been applied since 3 years, i don’t know why your permission was not set correctly.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.