Matrix Messaging

Quick message from a yunhost user to say that I am more and more interested in the Matrix project, and that I would really enjoy testing a yunohost app for that :). Or even two apps (one server instance, one Riot instance).

1 Like

I would love also to see them as Yunohost app, in my case it is not integrated in Yunohost (LDAP,ā€¦) but it works well.

Just to clarify :

  • (one of) the server is synapse (like Metronome or Prosody for XMPP)
  • (one of) the client to connect is Riot (like Jappix, Movim or Gajim for XMPP)

You need both to have a self-hosted solution.
In my case, I use desktop and mobile version of Riot, so I havenā€™t installed Riot on Yunohost. But I think you should be able to do it with https://github.com/YunoHost-Apps/multi_webapp_ynh

Hello,

Iā€™m really interested to build a yunohost app for that but I think itā€™s a big job for this app and actually the problem is with arm arch. I think actually they are not debian arm package. https://github.com/matrix-org/synapse/issues/1165
So if nobody want to do it could try February but donā€™t want to do it if an other person is already doing that.

1 Like

@croulibri Congrats, very nice self-made solution ! :wink:
good news: the IPV6 issue should be resolved very soon https://github.com/twisted/twisted/pull/649

@Josue Thanks for considering making an app for matrix/synapse :slight_smile:
There is a discussion about ARM here https://github.com/matrix-org/synapse/issues/390

good news: the IPV6 issue should be OK in the next version of the Matrix server (Synapse) :slight_smile: https://github.com/matrix-org/synapse/issues/1002#issuecomment-273437751

and according the matrix devs, synapse should just work on armhf

@swift11 it seems my IPV6 issue is more linked to my Debian install than Yunohost config. But this is really a good news.

@Josue you imagine I am very interested in your future work on Matrix package for Yunohost. I have very limited IT skills myself and so I would greatly benefit form your work.

After 2 weeks use, I am very happy about my install. Everything works as expected. Matrix is really a great messaging / voice and video solution.

I still need to implement @CaptainSqrt2 's advices and particularly implement sustainable solution for LE certificate links (symbolic slinks and change group owner of Matrix progam. But I havenā€™t found yet how to do the last. )

Iā€™ll see that in 2 week but I have an armhf box so I need built it before ā€¦ Itā€™s the other problem with that.

Matrix presentations at Fosdem, next Sunday:
https://fosdem.org/2017/schedule/event/encrypting_matrix/
https://fosdem.org/2017/schedule/event/matrix_future/

There is also a new version of the Matrix server (Synapse) which should work with IPv6 :wink:
https://matrix.org/blog/2017/02/04/synapse-0-19-is-here-just-in-time-for-fosdem/

Hey there,

the talk was awesome, especially all the bits of reflection around decentralized/distributed identity, reputation and trust, which is a pretty important topic for decentralized internet. Definitely looking forward to trying more of Matrix and hearing more about it !

1 Like

I have made I yunohost app this last week. I will publish it but I need to fix some bug before. I could say when it will be available.

2 Likes

@CaptainSqrt2 agreed, the fosdem talk was great :slight_smile:
the video recordings and slides are available here btw: https://matrix.org/blog/2017/02/06/fosdem-2017-report/

@Josue wow, thanks ! canā€™t wait ! :smile:

@Josue awesome! I have managed a manual installation, but did not take time to connect it to the ldap, so looking forward to this :). Also, how have you managed the need for debian backports for 0.19? does your app add it to the sources.lists?

1 Like

The dependences are the problem with this app but Iā€™m working onā€¦ For ldap itā€™s ok it work. I have just to debug some things about repo, package and dependence. But today at midnight the matrix repos have been updated so maybe I donā€™t need the backport repo. It might be necessary only for armhf.

2 Likes

I am happy to read that @Josue you are developing a package for Matrix !

I am using my simple Matrix install for more than a month without any problem. My small server (an old eeepc 1005HA) is running very well, even with only 1Gb RAM. My weak ADSL connexion is sometimes limiting when sending files / photos, but does not impact calls as they are peer to peer.

As you mentioned, thatā€™s true I have to activate the backports for the last update 0.19.1

When you finalize your package, I will have to look how backup my current install and restore in the new package. I will be happy to have Matrix integrated with the rest of my Yunohost server (LDAP, Certificate,ā€¦).

Good luck for your work !

1 Like

@Josue OK! Quick other question: do you plan to also automatically install and configure coturn as a TURN server for synapse (as explained here in the synapse doc)? Since coturn is available for jessie, it should not be too hard. This would make VoIP more reliable out-of-the-box. I can maybe help with that once you have finished and published a first version of the ynh package.

1 Like

Yes itā€™s done

1 Like

Hello,

My app are available here :
The server : https://github.com/YunoHost-Apps/synapse_ynh
And the (web) client : https://github.com/YunoHost-Apps/riot_ynh

Normaly it should run. All comment are welcome.

Great job. Iā€™ll have a look in the weekend.

Installation failed for me:
Attempt 1: It goes near the very end:
Warning: Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
then it attempts to roll-back and remove the package, but it also fails to remove it cleanly.
So far, Iā€™ve found:

  • the Synapse icon left on the homepage (should we have an icon at all for a service? we donā€™t have any other server)
  • the matrix file entry in sources.list.d

I found out that it had nothing to do with matrix, but nginx fails because of the hubzilla package I also have.
Since I didnā€™t figure out much about hubzilla yet, I removed the package (yes, I know, I shoud submit a bug for that as well, butā€¦ one battle a time!).

Attempt 2:

journactl gives me the following:
Warning: Job for matrix-synapse.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
then it rolls back and remove the package, this time up to the sources.list.d file, but the Synapse icon is still there

Using journalctl, I found back this when the synapse server attempts to start:
with open(tls_private_key_path, ā€œwā€) as private_key_file:
IOError: [Errno 13] Permission denied: '/etc/yunohost/certs/[domain.tld]/key.pem

I replaced the domain name, but you got it.

Now, this may be a problem on my side, since Iā€™ve setup letsencrypt before the release of yunohost 2.5, but why would synapse try to change the encryption key??
Or is it assumed that the server runs on a subdomain? (then it should be documentedā€¦)

Thanks!

Hi, thanks for the integration!
The installation went perfectly. I use two different domains for Synapse & Riot as somewhat suggested.
I can successfully login (not through SSO, though), using YunoHost existing user credentials. Nice work!

  • Does the Home server correspond to that with Synapse? => If so, I might have done something wrong because rooms created by one user does not show up on another userā€™s session (not sure if this is clear). In fact, on any user (even for the user who created a room), ā€œNo rooms to showā€ is displayed in Room directory, for both [m] Matrix and my.domain.tld.
  • I am not sure what Identity server to useā€¦? => OK, see here for whoever wasnā€™t sure as I was.