YunoHost-Apps / synapse_ynh

Matrix server (synapse) package for YunoHost
https://matrix.org/
GNU General Public License v3.0
79 stars 42 forks source link

Fix starting of coturn-synapse service #333

Closed tituspijean closed 2 years ago

tituspijean commented 2 years ago

Problem

@kavelach in the chatroom experiences an issue while starting the CoTURN server:

 coturn-synapse.service: Can't open PID file /run/coturn-synapse/turnserver.pid (yet?) after start: Operation not permitted.

Solution

PR Status

Automatic tests

Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

alexAubin commented 2 years ago

Btw several people reported recently that the service failed to start with the systemd log displaying:

Main process exited, code=killed, status=31/SYS

Which apparently is due to a bad system call :

https://unix.stackexchange.com/questions/678494/troubleshoot-a-systemd-service-crash-because-of-systemcallfilter/681075#681075

So we should consider removing or tweaking :

SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @swap

from the systemd conf

Josue-T commented 2 years ago

!testme

yunohost-bot commented 2 years ago

:stuck_out_tongue_winking_eye: Test Badge

Josue-T commented 2 years ago

Btw several people reported recently that the service failed to start with the systemd log displaying:

Main process exited, code=killed, status=31/SYS

Which apparently is due to a bad system call :

https://unix.stackexchange.com/questions/678494/troubleshoot-a-systemd-service-crash-because-of-systemcallfilter/681075#681075

So we should consider removing or tweaking :

SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @swap

from the systemd conf

This sould be already fixed by #330

tituspijean commented 2 years ago

@Josue-T users reported in the forum and the chatrooms that the "fix" proposed in this PR is not working. 🤔

Same permission error on the new PIDFile location.

Josue-T commented 2 years ago

Well, now i understand. It's an issue on bullseye. On buster we don't have this issue. I'll do some test and find a fix.

Josue-T commented 2 years ago

335 should fix the issue.