[Synapse] Instant messaging server matrix network

Hi,

I’m struggling at configuring the app service https://github.com/tulir/mautrix-whatsapp/ on my internet cube lime 2.
Are there some plans to package some app services together with synapse? Or should the whatsapp bot be packaged as an independent app?

Cheers

My idea is to make one idependant app for each synapse “gateway”.

Also, if you’re brave enough, there is an Ansible playbook that let you install bot and bridge on an existing synapse installation. But I don’t know how well it blend with the yunohost update and stuff…

I managed to have mautrix-whatsapp running on my homeserver as a service. I guess that would be the first step to package it as an app. I’m not a programmer, but I’m interested in trying it.
@nouts I’m not sure the docker packaging is compatible with yunohost. And this would be too much for a first try. However I might find some sources in this ansible playbook.
@Josue do you have some hints where I should start reading/forking ?

Bonjour,
je ne sais pas si je post au bon endroit car mon problème ne me semble pas spécifique à Synapse… quoiqu’il en soit voici… j’ai tenté une install de synapse qui ne s’est pas bien passée (je sais plus pk)… je l’ai donc desinstallée et réinstallée… sauf qu’impossible, j’ai un message d’erreur que j’ai du mal à comprendre (voir ci dessous les logs.

En faisant une sauvegarde de mon yunohost, je me suis rendu compte que le dossier synapse est toujours existant (dans mon admin web)
je précise que j’ai tenté une installation vers un sous domaine pointant vers mon domaine principal.

2019-08-25 11:53:20,722: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-08-25 11:53:20,723: DEBUG - + set +x
2019-08-25 11:53:20,723: DEBUG - + ynh_app_setting set synapse__2 synapse_db_pwd **********
2019-08-25 11:53:20,723: DEBUG - + ACTION=set
2019-08-25 11:53:20,723: DEBUG - + APP=synapse__2
2019-08-25 11:53:20,723: DEBUG - + KEY=synapse_db_pwd
2019-08-25 11:53:20,723: DEBUG - + VALUE=**********
2019-08-25 11:53:20,723: DEBUG - + python -
2019-08-25 11:53:20,723: DEBUG - + ynh_psql_test_if_first_run
2019-08-25 11:53:20,723: DEBUG - + ‘[’ -f /etc/yunohost/psql ‘]’
2019-08-25 11:53:20,723: DEBUG - + echo ‘PostgreSQL is already installed, no need to create master password’
2019-08-25 11:53:20,723: DEBUG - PostgreSQL is already installed, no need to create master password
2019-08-25 11:53:20,723: DEBUG - + ynh_psql_create_user matrix_synapse__2 **********
2019-08-25 11:53:20,724: DEBUG - + user=matrix_synapse__2
2019-08-25 11:53:20,724: DEBUG - + pwd=**********
2019-08-25 11:53:20,724: DEBUG - + su ‘–command=psql -c"CREATE USER matrix_synapse__2 WITH PASSWORD ‘'’**********’'‘"’ postgres
2019-08-25 11:53:20,824: DEBUG - + ynh_exit_properly
2019-08-25 11:53:20,824: WARNING - psql: could not connect to server: No such file or directory
2019-08-25 11:53:20,824: DEBUG - + local exit_code=2
2019-08-25 11:53:20,825: WARNING - Is the server running locally and accepting
2019-08-25 11:53:20,825: DEBUG - + ‘[’ 2 -eq 0 ‘]’
2019-08-25 11:53:20,825: WARNING - connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?
2019-08-25 11:53:20,825: DEBUG - + trap ‘’ EXIT
2019-08-25 11:53:20,825: DEBUG - + set +eu
2019-08-25 11:53:20,825: DEBUG - + sleep 0.5
2019-08-25 11:53:21,327: DEBUG - + ynh_print_err ‘–message=!!\n synapse__2’'‘s script has encountered an error. Its execution was cancelled.\n!!’
2019-08-25 11:53:21,327: WARNING - e[91me[1m[ERR]e[0m !!
2019-08-25 11:53:21,328: DEBUG - + local legacy_args=m
2019-08-25 11:53:21,328: WARNING - synapse__2’s script has encountered an error. Its execution was cancelled.
2019-08-25 11:53:21,329: DEBUG - + args_array=([m]=message=)
2019-08-25 11:53:21,329: WARNING - !!
2019-08-25 11:53:21,329: DEBUG - + declare -Ar args_array
2019-08-25 11:53:21,330: WARNING -
2019-08-25 11:53:21,330: DEBUG - + local message
2019-08-25 11:53:21,330: DEBUG - + ynh_handle_getopts_args ‘–message=!!\n synapse__2’'‘s script has encountered an error. Its execution was cancelled.\n!!’
2019-08-25 11:53:21,331: DEBUG - + set +x
2019-08-25 11:53:21,331: DEBUG - + ynh_print_log ‘\e[91m\e[1m[ERR]\e[0m !!\n synapse__2’'‘s script has encountered an error. Its execution was cancelled.\n!!’
2019-08-25 11:53:21,331: DEBUG - + echo -e ‘\e[91m\e[1m[ERR]\e[0m !!\n synapse__2’'‘s script has encountered an error. Its execution was cancelled.\n!!’
2019-08-25 11:53:21,331: DEBUG - + ‘[’ api == cli ‘]’
2019-08-25 11:53:21,331: DEBUG - + type -t ynh_clean_setup
2019-08-25 11:53:21,332: DEBUG - + ynh_die
2019-08-25 11:53:21,332: DEBUG - + local legacy_args=mc
2019-08-25 11:53:21,332: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-08-25 11:53:21,332: DEBUG - + declare -Ar args_array
2019-08-25 11:53:21,333: DEBUG - + local message
2019-08-25 11:53:21,333: DEBUG - + local ret_code
2019-08-25 11:53:21,333: DEBUG - + ynh_handle_getopts_args
2019-08-25 11:53:21,333: DEBUG - + set +x
2019-08-25 11:53:21,333: DEBUG - + echo ‘’
2019-08-25 11:53:21,334: DEBUG - + exit 1

merci de votre aide

Bonjour,
Tu aurais du, en effet, créer un nouveau sujet.
Mais si tu veux regarder ce sujet, il contient peut-être la solution.
Bonne journée.

Ah oui, zut,
bon ben désolé… merci pour le lien, je vais voir ce sujet… je ne l’avais pas vu en faisant des recherches

I started packaging mautrix-whatsapp here

I opened a new topic here

1 Like

New Testing available for Synapse

  • 10 September 2019 #145
    • Upgrade to 1.3.1

New Testing available for Synapse

  • 30 October 2019 #119
    • Choose server_name at installation
  • 31 October 2019 #118
    • Normalization from example_ynh
1 Like

New Testing available for Synapse

  • 8 November 2019 #155
    • Fix log rotation
  • 8 November 2019 #148
    • Add a hook which restart synapse when the certificate was renewed
1 Like

Testing release working great on my production server! :+1:

New Testing available for Synapse

  • 12 November 2019 #153
    • Upgrade to synapse 1.5.1

Hello,

New version available for synapse:

  • 10 September 2019 #145
    • Upgrade to 1.3.1
  • 30 October 2019 #119
    • Choose server_name at installation
  • 31 October 2019 #118
    • Normalization from example_ynh
  • 8 November 2019 #155
    • Fix log rotation
  • 8 November 2019 #148
    • Add a hook which restart synapse when the certificate was renewed
  • 12 November 2019 #153
    • Upgrade to synapse 1.5.1
2 Likes

New Testing available for Synapse

  • 1 December 2019 #160
    • Upgrade to synapse 1.6.1
  • 1 December 2019 #136
    • Add .well-known support
1 Like

Hi,

Upgrade to 1.6.1 without any trouble :slight_smile:

Thanks !

New Testing available for Synapse

  • 14 December 2019 #148
    • Block public rooms options and fix security issues
1 Like

New Testing available for Synapse

  • 18 December 2019 #162
    • Upgrade to synapse 1.7.0
1 Like

New Testing available for Synapse

  • 22 December 2019 #163
    • Fix config panel and action
  • 22 December 2019 #165
    • Upgrade to synapse 1.7.2

Hi,

I switch to the testing, and upgrade from the 1.6.1 without any trouble :slight_smile:

Best