# \[SOLVED\] Setup matrix homeserver

**URL:** <https://forum.yunohost.org/t/solved-setup-matrix-homeserver/16662>\
**Category:** Support apps\
**Tags:** synapse, english\
**Created:** [July 25, 2021, 6:59pm UTC](https://forum.yunohost.org/t/solved-setup-matrix-homeserver/16662 "2021-07-25T18:59:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)\
**Post date:** [July 25, 2021, 6:59pm UTC](https://forum.yunohost.org/t/solved-setup-matrix-homeserver/16662/1 "2021-07-25T18:59:57Z")

</div>

**Hardware:** VPS bought online ( Contabo )  
**YunoHost version:** 4.2.6.1  
**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

Hello everyone.

I was wondering how could I setup my server as a matrix homeserver and using it to access Element on Yunohost?

Which, I guess, would be what happens already automatically with XMPP and the related apps.

I tried to look for guides and tutorials online, but they all look so different I wouldn’t really know which one to trust.  
Plus, having Yunohost add always an extra layer of “difficulties” when looking at those guides because I have to adapt things. 😅

Anyone can please help?

---

<div class="post-metadata">

**Author:** ![HoldMyGin](https://forum.yunohost.org/user_avatar/forum.yunohost.org/holdmygin/32/3701_2.png) [@HoldMyGin](https://forum.yunohost.org/u/HoldMyGin)\
**Post date:** [July 25, 2021, 7:11pm UTC](https://forum.yunohost.org/t/solved-setup-matrix-homeserver/16662/2 "2021-07-25T19:11:36Z")

</div>

Well, it’s not that difficult…go to applications and install Synapse aaaaaand you’re done.

---

<div class="post-metadata">

**Author:** ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)\
**Post date:** [July 25, 2021, 7:57pm UTC](https://forum.yunohost.org/t/solved-setup-matrix-homeserver/16662/3 "2021-07-25T19:57:44Z")

</div>

Lol.  
Glad it is so easy. 😅  
I was just installing the wrong application then.

However, the installation failed apparently because of this

```auto
2021-07-25 21:56:52,500: DEBUG - pip install --upgrade pip
2021-07-25 21:56:52,500: DEBUG - 
2021-07-25 21:56:52,500: DEBUG - and then retry package installation.
2021-07-25 21:56:52,500: DEBUG - 
2021-07-25 21:56:52,500: DEBUG - If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
2021-07-25 21:56:52,500: DEBUG - 
2021-07-25 21:56:52,500: DEBUG - This package requires Rust >=1.41.0.
2021-07-25 21:56:52,500: DEBUG - 
2021-07-25 21:56:52,501: DEBUG - ----------------------------------------
2021-07-25 21:56:52,510: WARNING - Command "/opt/yunohost/matrix-synapse/bin/python3 -u -c "import setuptools, tokenize; __file__ ='/tmp/pip-install-2r_sy6de/cryptography/setup.py';f=getattr(tokenize, 'open', open)( __file__ );code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__ , 'exec'))" install --record /tmp/pip-record-bpj9p0bd/install-record.txt --single-version-externally-managed --compile --install-headers /opt/yunohost/matrix-synapse/include/site/python3.7/cryptography" failed with error code 1 in /tmp/pip-install-2r_sy6de/cryptography/
2021-07-25 21:56:52,559: DEBUG - + ynh_exit_properly
2021-07-25 21:56:52,559: DEBUG - + local exit_code=1
2021-07-25 21:56:52,559: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-07-25 21:56:52,560: DEBUG - + '[' 1 -eq 0 ']'
2021-07-25 21:56:52,560: DEBUG - + trap '' EXIT
2021-07-25 21:56:52,561: DEBUG - + set +o errexit
2021-07-25 21:56:52,561: DEBUG - + set +o nounset
2021-07-25 21:56:52,561: DEBUG - + sleep 0.5
2021-07-25 21:56:53,062: DEBUG - + type -t ynh_clean_setup
2021-07-25 21:56:53,062: DEBUG - + ynh_clean_setup
2021-07-25 21:56:53,062: DEBUG - + ynh_clean_check_starting
2021-07-25 21:56:53,062: DEBUG - + '[' -n '' ']'
2021-07-25 21:56:53,062: DEBUG - + '[' -n '' ']'
2021-07-25 21:56:53,062: DEBUG - + exit 1
2021-07-25 21:56:54,063: ERROR - Unable to install synapse: An error occurred inside the app installation script

```

Full log [here](https://paste.yunohost.org/raw/jiqelakaqo) in case.

---

<div class="post-metadata">

**Author:** ![HoldMyGin](https://forum.yunohost.org/user_avatar/forum.yunohost.org/holdmygin/32/3701_2.png) [@HoldMyGin](https://forum.yunohost.org/u/HoldMyGin)\
**Post date:** [July 25, 2021, 8:22pm UTC](https://forum.yunohost.org/t/solved-setup-matrix-homeserver/16662/4 "2021-07-25T20:22:32Z")

</div>

This problems reminds me of this : [https://forum.yunohost.org/t/problem-during-the-synapse-update/6776/22](https://forum.yunohost.org/t/problem-during-the-synapse-update/6776/22)

Please check and see if it is the same…

---

<div class="post-metadata">

**Author:** ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)\
**Post date:** [July 25, 2021, 9:10pm UTC](https://forum.yunohost.org/t/solved-setup-matrix-homeserver/16662/5 "2021-07-25T21:10:19Z")

</div>

All done and setup.

Thank you. 😊

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [August 9, 2021, 9:10pm UTC](https://forum.yunohost.org/t/solved-setup-matrix-homeserver/16662/6 "2021-08-09T21:10:35Z")

</div>

Closed on August 9, 2021, 9:10pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
