YunoHost-Apps / synapse_ynh

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

matrix-synapse doesn't start and crashes #420

Closed utzer closed 5 hours ago

utzer commented 8 months ago

Describe the bug

matrix-synapse service keeps crashing since I updated it today.

Context

Steps to reproduce

matrix-synapse crashes with the log below and restarts, this happens since I updates all apps (synapse was updated) an hour ago.

Expected behavior

it used to run without any problem.

Logs

journalctl

Remark

I know this bug report is not very meaningful, sorry about that, not sure what else to write, please have a look in the log.

utzer commented 7 months ago

Same problem, new log.

https://paste.yunohost.org/asewoyamix

It is always a bit of a problem that there is almost never anyone with any ideas to solve problems in the Yunohost surrounding, I mean I tried the easy stuff, I played with the permissions of the log... but is seems the error comes regardless of he permission setting for the file/folder.

It's sad that Synapse server only worked for a few weeks and then after an update stopped working.

utzer commented 7 months ago

Not logging to a file is my solution for now.

use this config in /etc/matrix-synapse/log.yaml

Edit: Changed both levels to ERROR, don't need that much logging to the journal at the moment.

Josue-T commented 7 months ago

Edit: Changed both levels to ERROR, don't need that much logging to the journal at the moment.

Hello,

Can you share me the result of this command ls /var/log/matrix-synapse/ -la ?

utzer commented 7 months ago

Edit: Changed both levels to ERROR, don't need that much logging to the journal at the moment.

Hello,

Can you share me the result of this command ls /var/log/matrix-synapse/ -la ?

After the permission issues I played around with the permissions, I don't remember the permission when the crashes started. I tried some different combinations of user:group and some different permissions for the folder, the files...

Now it is:

drw-rwx---+ 1 matrix-synapse root             88 Oct 19 20:58 ./
drwxr-xr-x  1 root           root           3.6K Nov 19 00:00 ../
-rw-rw----+ 1 matrix-synapse matrix-synapse    0 Oct 19 20:58 homeserver.log
-rw-rw----+ 1 matrix-synapse root            24K Nov 22 20:21 turnserver.log
-rw-rw----+ 1 matrix-synapse root           5.1K Oct  1 11:58 turnserver.log.1

I think before it was matrix-synapse:root, I only changed it to matrix-synapse:matrix-synapse I think. And -rw-rw---- for matrix-synapse/homeserver.log was also applied by me, I found the commands for both changes in the history.

Josue-T commented 5 hours ago

Closing as it quite old and many change was made since this. Please reopen or create a new issue if the issue still appear.