[Synapse] Instant messaging server matrix network

ping @Josue & maintainers

Someone hacked matrix.org : https://news.ycombinator.com/item?id=19642554

The hackers has made of list of security flaws and suggestions : https://github.com/matrix-org/matrix.org/issues/created_by/matrixnotorg

I don’t have much time but I’ll gladly help out for testing if needed

Cheers

Is it good idea to stop the server for time being?

For what I understood, there was no problem with synapse or riot but with the way their servers were configured.
I think that it’s ok for us.

New Testing available for Synapse

  • 03 May 2019 #115
    • Upgrade to 0.99.3
1 Like

Server upgraded to testing version and working fine :+1:

While upgrade the synapse encounter error and the restore failed. Now I want to add this https://github.com/YunoHost-Apps/synapse_ynh/issues/121#issuecomment-489625546 commit manually to the baked up synapse tar.gz for the fix.
How can I achieve this?

Can´t log in to matrix with my yunohot – the matrix-synapse is not running

If I look in yunohost under services – first it says martix-synapse is “acitve” but if I look up for details it shows “activating”

if I click on Log it does not show anything

I´m Unable to upgrade synapse by

yunohost app install https://github.com/YunoHost-Apps/synapse_ynh/

please look at the error log

https://paste.yunohost.org/raw/ajetuvipev

if I try:

yunohost app upgrade synapse -u https://github.com/YunoHost-Apps/synapse_ynh/tree/testing

I get this:

https://paste.yunohost.org/raw/gujafuweli

I´m on YunoHost 3.5.2.2 (stable).

Thanks for help

It look like that postgresql is broken or your install is corrupt. Was synapse working one day ?

New Testing available for Synapse

  • 11 May 2019 #120
    • Upgrade to 0.99.3.2

Thansk for your support

YES synapse was working one day…
But I had a similar problem 2 month ago… than i did a reinstall an it worked again for a while…
now what shell i do ?
i don´t want to lose all my configurations all the time by a reinstall

Ok, and was an upgrade working one day ?

yes I belive so

So, what is the result of this command:

dpkg -l | grep postg
root@my:~# dpkg -l | grep postg                                                                              
ii  postgresql            9.6+181+deb9u2  all             object-relational SQL database (supported versi    
ii  postgresql-9.6        9.6.13-0+deb9u1 armhf           object-relational SQL database, version 9.6 ser    
ii  postgresql-client-9.6 9.6.13-0+deb9u1 armhf           front-end programs for PostgreSQL 9.6              
ii  postgresql-client-com 181+deb9u2      all             manager for multiple PostgreSQL client versions    
ii  postgresql-common     181+deb9u2      all             PostgreSQL database-cluster manager                
ii  postgresql-contrib    9.6+181+deb9u2  all             additional facilities for PostgreSQL (supported    
ii  postgresql-contrib-9. 9.6.13-0+deb9u1 armhf           additional facilities for PostgreSQL               
ii  postgresql-server-dev 9.6.13-0+deb9u1 armhf           development files for PostgreSQL 9.6 server-sid    
ii  postgresql-server-dev 181+deb9u2      all             extension build tool for multiple PostgreSQL ve

What is the result of this command:

su '--command=pg_dump matrix_synapse' postgres | head -n 20
root@my:~# su '--command=pg_dump matrix_synapse' postgres | head -n 20                                       
could not change directory to "/root": Permission denied                                                     
pg_dump: [archiver (db)] connection to database "matrix_synapse" failed: could not connect to server: No such
 file or directory                                                                                           
        Is the server running locally and accepting                                                          
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

And:

systemctl status postgresql
root@my:~# systemctl status postgresql                                                                       
● postgresql.service - PostgreSQL RDBMS
   Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)                  
   Active: active (exited) since Mon 2019-05-06 12:14:30 UTC; 6 days ago
 Main PID: 2108 (code=exited, status=0/SUCCESS)                                                              
    Tasks: 0 (limit: 4915)                                                                                   
   CGroup: /system.slice/postgresql.service                                                                  
                                                                                                             
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

And ls /var/run/postgresql/.s.PGSQL.5432 ?

root@my:~# ls /var/run/postgresql/.s.PGSQL.5432

ls: cannot access '/var/run/postgresql/.s.PGSQL.5432': No such file or directory