!cApDlsILLZkmAyVoxe:matrix.org

Matrix on Debian

204 Members
https://wiki.debian.org/Matrix77 Servers

Load older messages


SenderMessageTime
15 Feb 2019
@max:kamax.ioMaximus uhoreg: i'll move it 23:31:20
@max:kamax.ioMaximushttps://github.com/matrix-org/synapse/issues/465623:34:05
@lindalap:matrix.orgLinda
$ grep -ir "report_stats" debian/
debian/matrix-synapse-py3.postinst:CONFIGFILE_REPORTSTATS="/etc/matrix-synapse/conf.d/report_stats.yaml"
debian/matrix-synapse-py3.postinst:        echo "report_stats: $RET" > $CONFIGFILE_REPORTSTATS
debian/build_virtualenv:# remove the report_stats setting, which is set in a separate file
debian/build_virtualenv:/^# report_stats:/ and $_ = "";

This is not how to configure that stuff...

23:42:44
@lindalap:matrix.orgLinda

Oh, sorry

23:43:10
@lindalap:matrix.orgLinda
$ grep -ir "report-stats" debian/
debian/matrix-synapse-py3.postinst:    db_get matrix-synapse/report-stats
debian/config:db_input high matrix-synapse/report-stats || true
debian/templates:Template: matrix-synapse/report-stats
Template: matrix-synapse/report-stats
Type: boolean
Default: false
23:43:35
@lindalap:matrix.orgLinda

Maximus: Looks like you answered "true" in fact, at least according to this +sid1 version.

23:45:22
@lindalap:matrix.orgLinda

But debian/config isn't configured to check the value from a previous configuration, so it can default to "false" even if it was previously true if debconf(1) cache has been purged.

23:46:28
@lindalap:matrix.orgLinda

Fucking Matrix.org packages, smh.

23:46:33
@max:kamax.ioMaximus Linda: back in 2018 I already opened an issue about this, because this is a system I never replied yes 23:50:26
@max:kamax.ioMaximusI always replied no23:50:42
@lindalap:matrix.orgLinda

Maximus: Which distribution version?

23:51:19
@max:kamax.ioMaximusmaybe the dpkg-reconfigure config is wrong, but that's not my problem as the package user. I never replied yes, and I don't expect the value to change if the file already exists, or to ever default to true whatever the situation is23:51:27
@max:kamax.ioMaximusdebian stable23:51:36
@max:kamax.ioMaximusthis is a known issue to the synapse's devs23:51:54
@max:kamax.ioMaximusthis never happened with the previous debian packages per example, even after updating23:52:27
@lindalap:matrix.orgLinda

Right, I see the issue

23:53:31
@lindalap:matrix.orgLinda
db_get matrix-synapse/report-stats
if [ "$RET" ]; then
    echo "report_stats: $RET" > $CONFIGFILE_REPORTSTATS
fi

I think that's meant to check if $RET is "true", not every time the input is checked.

23:54:07
@max:kamax.ioMaximusmeanwhile, do you know a way for me to fix the template of dpkg?23:54:37
@lindalap:matrix.orgLinda
db_get matrix-synapse/report-stats
if [ "$RET" = "true" ]; then
    echo "report_stats: $RET" > $CONFIGFILE_REPORTSTATS
fi

sudo dpkg-reconfigure matrix-synapse-py3.

23:55:16
@max:kamax.ioMaximus just dpkg-reconfigure matrix-synapse-py3 ? 23:55:43
@lindalap:matrix.orgLinda

I can explain the issue in detail, too

23:55:39
@max:kamax.ioMaximusor rather, how can I just totally delete those template files? not sure where they are stored23:56:38
@lindalap:matrix.orgLinda
  1. If there is no answer to the question, it asks. You choose no.
  2. The answer is "false" this time. report_stats is not enabled, debconf(1) remembers this question in its cache.
  3. Next time you upgrade or reconfigure matrix-synapse-py3, debconf(1) checks its cache for answer. If it is there, $RET will exit with a status code 10 or higher. Or effectively "true".

You can see where this goes.

23:57:40
16 Feb 2019
@lindalap:matrix.orgLinda

Maximus: Btw, the file is /etc/matrix-synapse/conf.d/report_stats.yaml.

00:03:36
@max:kamax.ioMaximusDid I report it wrong in the issue? it looks right to me00:04:23
@max:kamax.ioMaximus Linda: thank you for finding out why this goes back to true 00:05:06
@max:kamax.ioMaximusand this will trigger GDPR issues again.... :/ now I need to re-check all my servers00:05:41
@lindalap:matrix.orgLinda

It's kind of correct. It just doesn't consider caches, and seems to always ask that question again if the debconf cache is missing (even if you had it configured already).

00:06:21
@max:kamax.ioMaximusand go report for the breach to the officier00:06:19
@lindalap:matrix.orgLinda

which is nonsense

00:06:32

Show newer messages


Back to Room ListRoom Version: