Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matrix-synapse doesn't start and crashes #420

Closed
utzer opened this issue Oct 19, 2023 · 5 comments
Closed

matrix-synapse doesn't start and crashes #420

utzer opened this issue Oct 19, 2023 · 5 comments
Labels

Comments

@utzer
Copy link

utzer commented Oct 19, 2023

Describe the bug

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

Context

  • Hardware: Some Hetzner server.
  • YunoHost version: 11.2.5
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: using stable
  • If upgrading, current package version: Not applicable

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
Copy link
Author

utzer commented Nov 12, 2023

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
Copy link
Author

utzer commented Nov 15, 2023

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
Copy link

Josue-T commented Nov 21, 2023

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
Copy link
Author

utzer commented Nov 23, 2023

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 Josue-T added the bug label Mar 9, 2024
@Josue-T
Copy link

Josue-T commented Jul 3, 2024

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

@Josue-T Josue-T closed this as completed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants