# \[synapse\] Service matrix-synapse is not running

**URL:** <https://forum.yunohost.org/t/synapse-service-matrix-synapse-is-not-running/12151>\
**Category:** Support apps\
**Tags:** english\
**Created:** [July 21, 2020, 12:57pm UTC](https://forum.yunohost.org/t/synapse-service-matrix-synapse-is-not-running/12151 "2020-07-21T12:57:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siggi100](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Siggi100](https://forum.yunohost.org/u/Siggi100)\
**Post date:** [July 21, 2020, 12:57pm UTC](https://forum.yunohost.org/t/synapse-service-matrix-synapse-is-not-running/12151/1 "2020-07-21T12:57:52Z")

</div>

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 ☹ 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](https://paste.yunohost.org/acotulenaz)  
maybe somwon now how to fix it

---

<div class="post-metadata">

**Author:** ![vicatus](https://forum.yunohost.org/user_avatar/forum.yunohost.org/vicatus/32/3252_2.png) [@vicatus](https://forum.yunohost.org/u/vicatus)\
**Post date:** [July 22, 2020, 9:12am UTC](https://forum.yunohost.org/t/synapse-service-matrix-synapse-is-not-running/12151/2 "2020-07-22T09:12:08Z")

</div>

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

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

```

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

```auto
ls -l

```

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

For information on my server I have this:

```auto
-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](https://github.com/matrix-org/synapse/issues/2379)

Hope this can be helpful to you.

---

<div class="post-metadata">

**Author:** ![Siggi100](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Siggi100](https://forum.yunohost.org/u/Siggi100)\
**Post date:** [July 22, 2020, 2:33pm UTC](https://forum.yunohost.org/t/synapse-service-matrix-synapse-is-not-running/12151/3 "2020-07-22T14:33:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vicatus](https://forum.yunohost.org/user_avatar/forum.yunohost.org/vicatus/32/3252_2.png) [@vicatus](https://forum.yunohost.org/u/vicatus)\
**Post date:** [July 22, 2020, 5:19pm UTC](https://forum.yunohost.org/t/synapse-service-matrix-synapse-is-not-running/12151/4 "2020-07-22T17:19:20Z")

</div>

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](https://www.wistee.fr/serveur-ftp/modifier-droits-chmod.html)

---

<div class="post-metadata">

**Author:** ![Siggi100](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Siggi100](https://forum.yunohost.org/u/Siggi100)\
**Post date:** [July 22, 2020, 5:53pm UTC](https://forum.yunohost.org/t/synapse-service-matrix-synapse-is-not-running/12151/5 "2020-07-22T17:53:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ljf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ljf/32/58_2.png) [@ljf](https://forum.yunohost.org/u/ljf)\
**Post date:** [July 24, 2020, 11:10am UTC](https://forum.yunohost.org/t/synapse-service-matrix-synapse-is-not-running/12151/6 "2020-07-24T11:10:03Z")

</div>

This bug is quite strange.

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

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

```

Thanks

---

<div class="post-metadata">

**Author:** ![Siggi100](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Siggi100](https://forum.yunohost.org/u/Siggi100)\
**Post date:** [July 24, 2020, 12:56pm UTC](https://forum.yunohost.org/t/synapse-service-matrix-synapse-is-not-running/12151/7 "2020-07-24T12:56:00Z")

</div>

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::—

---

<div class="post-metadata">

**Author:** ![ljf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ljf/32/58_2.png) [@ljf](https://forum.yunohost.org/u/ljf)\
**Post date:** [July 24, 2020, 1:47pm UTC](https://forum.yunohost.org/t/synapse-service-matrix-synapse-is-not-running/12151/8 "2020-07-24T13:47:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [August 8, 2020, 1:47pm UTC](https://forum.yunohost.org/t/synapse-service-matrix-synapse-is-not-running/12151/9 "2020-08-08T13:47:43Z")

</div>

Closed on August 8, 2020, 1:47pm UTC

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