Trying to figure out the best way to set up a self hosted matrix server.
from ludicolo@lemmy.ml to selfhosted@lemmy.world on 25 Jul 2024 11:29
https://lemmy.ml/post/18387405

I have been trying to set this up for the past 2 days and I am losing my mind.

The issue I seem to be having is that synapse cannot find the necessary postgres information in the the database. I have been trying to setup a docker container for it but to no avail. The container just continues to restart. When I check docker logs it seems like it cannot find the database info it needs but its there. I deleted the sqlite3 info so it most certainly isn’t still using that.

Is there possibly a casaos friendly version of matrix? Is there an easy to follow tutorial for docker matrix and duckdns? Any help would be appreciated.

#selfhosted

threaded - newest

poVoq@slrpnk.net on 25 Jul 2024 11:58 next collapse

If the postgres container doesn’t start properly, then something’s wrong with the config. Most likely you are trying to expose port 5432 to the host network, but you have postgres already installed there, so the ports conflict.

You can check for those errors with journalctl.

WeAreAllOne@lemm.ee on 25 Jul 2024 11:59 next collapse

I’ve had good luck with Yunohost in the past for a synapse server.

ludicolo@lemmy.ml on 25 Jul 2024 13:01 next collapse

Do I need to remove casaos to use yunohost?

WeAreAllOne@lemm.ee on 25 Jul 2024 13:15 collapse

Yeap… Yunohost is not docker based.

ludicolo@lemmy.ml on 25 Jul 2024 14:03 next collapse

<img alt="" src="https://lemmy.ml/pictrs/image/7080818f-2ab2-4801-8788-0cbfbf005e3a.jpeg">

ludicolo@lemmy.ml on 25 Jul 2024 14:09 collapse

Can it possibly run simultaneously?

WeAreAllOne@lemm.ee on 25 Jul 2024 17:36 collapse

Doubtful. Even in VMs I reckon you’re gonna have some conflicts ports wise.

helenslunch@feddit.nl on 28 Jul 2024 12:47 collapse

Same. Only I run Conduit.

Churbleyimyam@lemm.ee on 25 Jul 2024 12:30 next collapse

I would try YUNOhost

anytimesoon@feddit.uk on 25 Jul 2024 13:00 next collapse

I use this and it’s been completely flawless from day one. The documentation is up there with the best I’ve seen, and the matrix room always has someone willing to help explain further

github.com/…/matrix-docker-ansible-deploy

tenchiken@lemmy.dbzer0.com on 25 Jul 2024 14:21 collapse

Holy crap that is comprehensive. Great timing since I’m about to wipe and redo my server from scratch.

Thanks for sharing!

EngineerGaming@feddit.nl on 25 Jul 2024 13:03 next collapse

I prefer Conduit instead of Synapse - it is lighter on resources.

ludicolo@lemmy.ml on 25 Jul 2024 14:05 next collapse

How would I go about using conduit instead of synapse for matrix?

908musdf@lemmy.one on 25 Jul 2024 22:01 collapse

Here is the Conduit Docker deployment guide.

famedly.gitlab.io/conduit/deploying/docker.html

I started with the Docker Compose file they provide, and “translated” it into Podman rootless containers for my server. Even with adding the extra work, it was pretty painless.

EngineerGaming@feddit.nl on 25 Jul 2024 22:17 collapse

Weird, conduit.rs links an entirely different Gitlab page - gitlab.com/famedly/conduit, with the docs being at docs.conduit.rs/deploying/docker.html

908musdf@lemmy.one on 25 Jul 2024 22:53 collapse

Hmm, docs.conduit.rs appears to be an alias for famedly.gitlab.io. I copied the link from the intro in the README.md file in the GiLab repository.

farcaller@fstab.sh on 25 Jul 2024 20:31 collapse

I’ll second conduit. You can tune up its caching, reducing the ram usage significantly. It does become a bit painful to sync the mobile clients, but at least it’s not gigabytes of ram wasted.

anzo@programming.dev on 25 Jul 2024 16:25 next collapse

I heard conduit.rs has lower memory requirements. Dunno if there’s a easy to deploy container tho. Good luck!

vegetaaaaaaa@lemmy.world on 25 Jul 2024 19:32 collapse

I wrote my own ansible role to deploy/maintain a matrix server and a few goodies (element/synapse-admin). If you’re not using ansible you should still be able to understand the deployment logic by starting at tasks/main.yml and following includes/tasks from there.