[Pkg-matrix-maintainers] Bug#1006947: matrix-synapse: synapse_port_db ignores options from /etc/matrix-synapse/conf.d/
Nikolay Shaplov
dhyan at nataraj.su
Tue Mar 8 19:30:08 GMT 2022
Package: matrix-synapse
Version: 1.53.0-1~bpo11+1
Severity: normal
X-Debbugs-Cc: dhyan at nataraj.su
On debian bullseye I install matrix-synapse as usual:
sudo apt-get install python3-frozendict/bullseye-backports
sudo apt-get install matrix-synapse/bullseye-backports
and then trying to upgrade it from SQLite to postgresql as said here:
https://matrix-org.github.io/synapse/latest/postgres.html#porting-from-sqlite
But when I run
synapse_port_db --sqlite-database /var/lib/matrix-synapse/homeserver.db \
--postgres-config /etc/matrix-synapse/homeserver.yaml
I get error:
Traceback (most recent call last):
File "/usr/bin/synapse_port_db", line 1217, in <module>
config.parse_config_dict(hs_config, "", "")
File "/usr/lib/python3/dist-packages/synapse/config/_base.py", line 731, in parse_config_dict
self.invoke_all(
File "/usr/lib/python3/dist-packages/synapse/config/_base.py", line 357, in invoke_all
res[config_class.section] = getattr(config, func_name)(*args, **kwargs)
File "/usr/lib/python3/dist-packages/synapse/config/server.py", line 252, in read_config
self.server_name = config["server_name"]
KeyError: 'server_name'
But if I add "server_name" to the homeserver.yaml
cat /etc/matrix-synapse/conf.d/server_name.yaml >> \
/etc/matrix-synapse/homeserver.yaml
synapse_port_db starts working as it should.
My guess, synapse_port_db is not aware of /etc/matrix-synapse/conf.d/
confings, thus we are having problems
-- System Information:
Debian Release: 11.0
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_CRAP
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages matrix-synapse depends on:
ii adduser 3.118
ii debconf [debconf-2.0] 1.5.77
ii init-system-helpers 1.60
ii libjs-jquery 3.5.1+dfsg+~3.5.5-7
ii libpython3-stdlib 3.9.2-3
ii lsb-base 11.1.0
ii perl 5.32.1-4+deb11u2
ii python3 3.9.2-3
ii python3-attr 20.3.0-1
ii python3-bcrypt 3.1.7-4
ii python3-bleach 3.2.1-2.1
ii python3-canonicaljson 1.4.0-1
ii python3-cryptography 3.3.2-1
ii python3-distutils 3.9.2-1
ii python3-frozendict 1.2-3~bpo11+1
ii python3-idna 2.10-1
ii python3-ijson 3.1.4-1
ii python3-jinja2 2.11.3-1
ii python3-jsonschema 3.2.0-3
ii python3-lxml 4.6.3+dfsg-0.1+deb11u1
ii python3-matrix-common 1.1.0-1~bpo11+1
ii python3-msgpack 1.0.0-6+b1
ii python3-nacl 1.4.0-1+b1
ii python3-netaddr 0.7.19-5
ii python3-openssl 20.0.1-1
ii python3-phonenumbers 8.12.1-1
ii python3-pil 8.1.2+dfsg-0.3
ii python3-prometheus-client 0.9.0-1
ii python3-psycopg2 2.8.6-2
ii python3-pyasn1 0.4.8-1
ii python3-pyasn1-modules 0.2.1-1
ii python3-pymacaroons 0.13.0-4
ii python3-service-identity 18.1.0-6
ii python3-signedjson 1.1.1-2
ii python3-sortedcontainers 2.1.0-2
ii python3-systemd 234-3+b4
ii python3-treq 18.6.0-0.2
ii python3-twisted 20.3.0-7
ii python3-typing-extensions 3.7.4.3-1
ii python3-unpaddedbase64 1.1.0-5
ii python3-yaml 5.3.1-5
Versions of packages matrix-synapse recommends:
ii matrix-synapse-ldap3 0.1.4+git20201015+a3c7a9f-1
ii python3-pympler 0.9+dfsg1-2
Versions of packages matrix-synapse suggests:
pn python3-authlib <none>
pn python3-jwt <none>
-- Configuration Files:
/etc/matrix-synapse/homeserver.yaml changed [not included]
-- debconf information excluded
More information about the Pkg-matrix-maintainers
mailing list