YunoHost-Apps / synapse_ynh

Matrix server (synapse) package for YunoHost
https://matrix.org/
GNU General Public License v3.0
79 stars 43 forks source link

Synapse restore with error #381

Closed sthaydn closed 1 year ago

sthaydn commented 1 year ago

Hi there,

I upgraded to the latest synapse version, but there was an error. I then deleted synapse and wanted to restore the backup. Now I can't restore or install a new version.

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

Regards,

Stefan

isAAAc commented 1 year ago

same here, last upgrade this morning is failling. In fact, cli said upgrade complete, but element can't connect to any server. should i open a dedicated issue ? i'm on a vps, upgrade done in cli: https://krashboyz.org/zerobin/?9e867f348b756a0a#2gm97Ex7Fmxe7k9ua5SQMq6VWpCfwaBTLUazeuSXWPEn (for 1 week)

yunohost --version
yunohost: 
  repo: stable
  version: 11.1.20
yunohost-admin: 
  repo: stable
  version: 11.1.9.4
moulinette: 
  repo: stable
  version: 11.1.4
ssowat: 
  repo: stable
  version: 11.1.4
Josue-T commented 1 year ago

same here, last upgrade this morning is failling. In fact, cli said upgrade complete, but element can't connect to any server. should i open a dedicated issue ? i'm on a vps, upgrade done in cli: https://krashboyz.org/zerobin/?9e867f348b756a0a#2gm97Ex7Fmxe7k9ua5SQMq6VWpCfwaBTLUazeuSXWPEn (for 1 week)

yunohost --version
yunohost: 
  repo: stable
  version: 11.1.20
yunohost-admin: 
  repo: stable
  version: 11.1.9.4
moulinette: 
  repo: stable
  version: 11.1.4
ssowat: 
  repo: stable
  version: 11.1.4

Fixed by b1968a55cb1ab413e5c4a7e2b1082760a7fae6d9

sthaydn commented 1 year ago

My issue may be slighly different to the one from iSAAAc. I don't have synapse installed anymore, as I wanted to roll back with the backup I have made. The backup does not work, so a new install also doesn't work. What can I do?

sthaydn commented 1 year ago

This is when trying to install testing: https://paste.yunohost.org/raw/oxotoxujar

sthaydn commented 1 year ago

Ok, I am also not able to install a fresh version with another domain name...

Josue-T commented 1 year ago

This is when trying to install testing: https://paste.yunohost.org/raw/oxotoxujar

2023-05-30 22:56:51,150: DEBUG - + yunohost user create synapse -F 'Synapse Application' -d radschn.maindomain.tld -p **********
2023-05-30 22:56:51,333: WARNING - The password needs to be at least 12 characters long and contain a digit, upper, lower and special characters
2023-05-30 22:56:51,333: DEBUG - You are now about to define a new user password. The password should be at least 8 characters long—though it is good practice to use a longer password (i.e. a passphrase) and/or to a variation of characters (uppercase, lowercase, digits and special characters).

It's an issue with password constraint. As synapse create a user (with a password) the password proposed by synapse should be accepted.

sthaydn commented 1 year ago

Do I have to config something or is this a bug?

EDIT: I have the password thing reconfigured. Now I have this when recovering synapse: https://paste.yunohost.org/raw/hehepipayu

A new install is working now, but having the backup restored would be preferred. :-)

isAAAc commented 1 year ago

Fixed by b1968a5

i upgraded, but no fix for now:

root@krashboyz:/var/www/synapse# yunohost app info synapse
description: Instant messaging server which uses Matrix
domain_path: synapse.krashboyz.org/_matrix
name: Synapse
version: 1.84.1~ynh1

netstat –tulnp |grep 8448 answers nothing

i checked the port, all should be ok:

Warning: Port 8448 is already opened for IPv4 connections
Warning: Port 8448 is already opened for IPv6 connections
Warning: Port 8448 is already opened for IPv4 connections
Warning: Port 8448 is already opened for IPv6 connections
Success! Firewall reloaded

journactl tells in webadmin:

juin 02 13:02:30 systemd[1]: Starting Synapse Matrix homeserver...
juin 02 13:02:33 systemd[1]: Started Synapse Matrix homeserver.
juin 02 13:02:35 python[79054]: Error in configuration at 'a.p.p._.s.e.r.v.i.c.e._.c.o.n.f.i.g._.f.i.l.e.s':
juin 02 13:02:35 python[79054]:   Expected 'None' to be a list of AS config files:
juin 02 13:02:35 systemd[1]: matrix-synapse.service: Main process exited, code=exited, status=1/FAILURE
juin 02 13:02:35 systemd[1]: matrix-synapse.service: Failed with result 'exit-code'.
juin 02 13:02:35 systemd[1]: matrix-synapse.service: Consumed 5.101s CPU time.

i don't know how to fix this,

@Josue-T : I'm sorry for squatting here, but I can open another if you prefer.

isAAAc commented 1 year ago

fixed with today's upgrade:

version: 1.85.0~ynh1

thx for your work @Josue-T <3