[Pkg-matrix-maintainers] Bug#1009773: matrix-synapse: updating the package rewrites /etc/matrix-synapse/conf.d/server_name.yaml with wrong domain name

Alessandro Polverini alex at polverini.org
Sun Apr 17 09:16:59 BST 2022


Package: matrix-synapse
Version: 1.55.0-1~bpo11+1
Severity: important

The installer on every update rewrites the content of the file
/etc/matrix-synapse/conf.d/server_name.yaml setting server_name with the
host name of the server it's running.

This can be right most of times, but not when we use server delegation,
i.e. when for example we run synapse on matrix.domain.ext for users of
domain.ext

In this case the file get created with the content:
server_name: matrix.domain.ext

while it should be:
server_name: domain.ext

So every time I upgrade the package I need to stop synapse (since it
restart with the wrong settings and gives error), manually modify the
file and restart it again.

I don't know what the right fix for this is, maybe just avoid
re-creating the file if it already exists?

Thanks for mantaining this package!


-- System Information:
Debian Release: 11.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable'), (90, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-0.bpo.3-amd64 (SMP w/24 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

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  python3                    3.9.2-3
pn  python3-attr               <none>
pn  python3-bcrypt             <none>
pn  python3-bleach             <none>
pn  python3-canonicaljson      <none>
ii  python3-cryptography       3.3.2-1
ii  python3-distutils          3.9.2-1
pn  python3-frozendict         <none>
ii  python3-idna               2.10-1
pn  python3-ijson              <none>
pn  python3-jinja2             <none>
pn  python3-jsonschema         <none>
pn  python3-lxml               <none>
pn  python3-matrix-common      <none>
pn  python3-msgpack            <none>
pn  python3-nacl               <none>
pn  python3-netaddr            <none>
ii  python3-openssl            20.0.1-1
pn  python3-packaging          <none>
pn  python3-phonenumbers       <none>
pn  python3-pil                <none>
pn  python3-prometheus-client  <none>
pn  python3-psycopg2           <none>
pn  python3-pyasn1             <none>
pn  python3-pyasn1-modules     <none>
pn  python3-pymacaroons        <none>
pn  python3-service-identity   <none>
pn  python3-signedjson         <none>
pn  python3-sortedcontainers   <none>
pn  python3-systemd            <none>
pn  python3-treq               <none>
pn  python3-twisted            <none>
pn  python3-typing-extensions  <none>
pn  python3-unpaddedbase64     <none>
ii  python3-yaml               5.3.1-5

Versions of packages matrix-synapse recommends:
pn  matrix-synapse-ldap3  <none>
pn  python3-pympler       <none>

Versions of packages matrix-synapse suggests:
pn  python3-authlib  <none>
pn  python3-jwt      <none>



More information about the Pkg-matrix-maintainers mailing list