this post was submitted on 11 Jul 2023
10 points (85.7% liked)

Selfhosted

40040 readers
943 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

So I’m in the process of moving my discord server over to matrix. I rented a VPS with 2 cores/2gb of ram for this. What I’m having issues with is media store and federation. I believe I have the media_store configured corrected as I can post images in my own channels, however I get Error 500 while attempting to upload a profile picture with no other information. On the federation side of things, I joined #matrix:matrix.org on my server it syncs for a few seconds, my ram shoots up to 2gb usage and hard locks until I restart synapse. Am I missing a config flag? Or just not enough RAM to federate with an instance that big. Thanks

top 12 comments
sorted by: hot top controversial new old
[–] jakoma02@czech-lemmy.eu 4 points 1 year ago

As others said, Synapse can sometimes be very resource-hungry. It might be worth giving a try to Conduit and Dendrite, which are alternative Matrix server implementations and especially Conduit seems to be focused to by lightweight. Although I do not have any personal experience with them and it seems that they are most likely a lot less mature than Synapse at the moment.

[–] morethanevil@lmy.mymte.de 3 points 1 year ago (1 children)

It would be helpful if you could provide more information. Which setup? OS? Dockerinstall or bare metal? Did you follow a specific Guide? Link it please if you followed one.

With this you will get better answers 🌞

[–] SlovenianSocket@lemmy.ca 2 points 1 year ago* (last edited 1 year ago)

Ubuntu 22.04, bare metal. I followed this guide and the official docs as well as tweaked it for my needs. I posted my yaml in another comment as well

[–] notdeadyet@lemmy.dbzer0.com 3 points 1 year ago (2 children)

That's very normal regarding the crash trying to join #matrix:matrix.org. You need much higher specs and need to be using Postgres database, MySQL probably won't handle it.

Can you post a sanitized version of your homeserver.yaml so we can take a look at your config?

Also are you running docker or something else?

[–] SlovenianSocket@lemmy.ca 1 points 1 year ago

Sorry I should have added more info. I am using Postgres, I’ll post my sanitized yaml when I get home from work. It is a bare metal install at the moment but I plan on moving over to docker once I have a good understanding of all the functions and documentation

[–] SlovenianSocket@lemmy.ca 1 points 1 year ago (1 children)

Heres my yaml. I quickly skimmed the docs and set it up last night so its probably pretty jank. So I guess my large channels issue is solved and I need better hardware. As for the the Error 500 I get while uploading profile pictures, this is the exact error I get:

Failed to save your profile MatrixError: [500] Internal server error (https://matrix.*.xyz/_matrix/media/r0/upload?filename=5db2-6c61-48eb-827c-f09ec246af71.png)

[–] notdeadyet@lemmy.dbzer0.com 1 points 1 year ago (1 children)

Your config looks good to me. I'm thinking you may have a permissions error with your media store folder. What permissions do you have set for it?

[–] SlovenianSocket@lemmy.ca 1 points 1 year ago
  1. I can post media in my rooms and that works just fine, it’s just trying to set a PFP throws that error which is confusing. I rolled out an ansible node last night on the advice of someone else here so I’m attempting the matrix ansible playbook to get going
[–] poVoq@slrpnk.net 2 points 1 year ago (1 children)

Yes your RAM is likely insufficient to join larger old rooms like that. Matrix Synapse can be quite a resource hog under certain circumstances.

[–] insert@kbin.insertapp.net 2 points 1 year ago

While your server most likely isn’t powerful enough to handle large rooms such as that one, if you would still like to try and get as much performance as possible you can look at this synapse documentation page

[–] stown@sedd.it 2 points 1 year ago (1 children)
[–] SlovenianSocket@lemmy.ca 3 points 1 year ago

I haven't played with ansible before but that looks like exactly what I want, thanks! I'll spin up a VM on my dev server at home and play around with it

load more comments
view more: next ›