Comments on How to Install Matrix Synapse Chat on Ubuntu 18.04 LTS

In this tutorial, we will show you step-by-step how to install and configure Matrix Synapse on Ubuntu 18.04 LTS. Matrix is a new ecosystem for decentralized communication in real time for open federated instant messaging and VoIP services.

19 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: RIchard van der Hoff

I suspect federation won't work with this setup because the federation port (8448) is firewalled.

By: Ben Parsons

Hi Muhammad,

If you read this, could you contact me? I work for matrix.org which produces Matrix/Synapse, we like your tutorial.

You can email me at: benp at matrix dot org

Thanks

By: Abhinaw

Hello sir,

I am Abhinaw.I`m useing ubuntu linux.I am install matrix but show the message 404 Not Found [IP:xxxxxxxxx] .

By: Dirk

Great tutorial, works like a charme. Thank you very much!

Greetings from Switzerland :)

By: Sam

Hi, thank you for this great walkthrough.

I am now having the issue that I have no idea how to increase the file size.  I am getting following error:

upload request body too large

I have tried adding

client_max_body_size 500M;

to the Nginx.config, edited the php.ini, what did I miss?

 

By: Andy

The netstat command doesnt show matrix running. How can i check that matrix is running? I also looked in services but matrix is obviously not a service.

By: Bebo Do

Hi,

thanks for the tutorial. whats the best way to upgrade to a newer version when installed based on your tutorial?

By: nima

when i enter this command :wget -qO - https://matrix.org/packages/debian/repo-key.asc | sudo apt-key add -it says :

gpg: no valid OpenPGP data found.

By: eupator

The repo error use:

 

wget -qO - https://matrix.org/packages/debian/matrix-org-archive-keyring.asc | sudo apt-key add -

By: Clemens

Thank you Muhammad, Great step-by-step tutorial. Worked like a dream.But....There is always a but. Federation does NOT work with this setup. That sort of defeats the prupose unless you wish to run an inhouse (only) IM system. What do I do to get federation to work? I have already opened up ports 8008 and 8448 in UFW but so far to no avail. Help.... Thank you in advance.

By: Michael MacDonald

This is the good part about this.  I only want a localized chat that only I have control over, I really don't want anything else.  There are other tutorials on how to set things up differently.  I'm moving away from Discord or Slack because I do not want dark overlords monitoring my conversations.  The idea that a Discord Admin can come in out of nowhere and ban users for me, or delete comments, whatever?  I really don't want that, they have no right.

By: atefeh

i wrote all the commands just fine until "the step for Activate the virtual host file and test the configuration." Now when i write this Command

nginx -t

i face with this Error :

bash:: command not found

i checked that nginx is installed or not but apparently it is installed . But the Commands are somehow unknown for ubuntu ! Can you guys help me with this?

By: Keoz

I am facing the same issue as you do atefeh, I can't get Nginx restarted ?

I have been posting a thread with screen captures of content in the Nginx config host file, and content of results out of command lines to search for failure details :

https://www.howtoforge.com/community/threads/cant-get-nginx-started-for-matrix-synapse-homeserver.82559/#post-391790

I hope someone may help me to solve this issue.

By: Jake

I don't have a domain name.  What do I do?

Also, how to I re-run the configuration?

I need something super simple to start.  Are these the minimum instructions?

Thanks.

 

By: Vlad

Not working in 2020 with latest ubuntu and synapse

By: fishtail

I am stuck as well...just before Step3, I did "netstat -plntu", and I don't see port 8448 being used.

By: Olof Gross

Vlad & fishtail,

i had the same problem as you but i found it out! If you look at the output from 'systemctl status matrix-synapse' you see error messages from the daemon that it can't read the tls certificate files installed by letsencrypt because of lack of permissions. I'm not sure how to do this the proper way but i just copied 'privkey.pem' and 'fullchain.pem' to synapses directory under /etc, renamed them to the filenames you can see at the top of the config file and changed the ownership to 'matrix-synapse' and group to 'nogroup' (like the file 'homeserver.signing.key' in same dir). Now it works for me :)

By: fishtail

@Olof & @Vlad,

I got past my problem, but it wasn't what Olof suggested.  My problem was that the 'homeserver.yaml' that was installed had "bind_address" (singular) on it...as soon as I changed them to "bind_addresses" and follow the odd formation/spacing that's in the tutorial, it works!

HOWEVER, I got all the way to the bottom, but when I go to the website, it just says "Welcome to nginx!".

If I go to "https://site/_matrix", it says Method Not Allowed:  Your browser approached me (at /_matrix) with the method "GET". I only allow the method HEAD here.

If I change "location /_matrix" to "location /", it says No Such Resource:  No such child resource.

SO, I am still at a loss, at a different place.

By: bilal

unable to call on the different network on the element