-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
1.52.0 fails to start with prometheus_client
version error
#11942
Comments
yeah, treq 20.4.0 and earlier are incompatible with recent versions of twisted (twisted/treq#288). You'll need to upgrade that as well. |
I just realised that @olmari is reporting this as a problem with the matrix.org debian packages, which should include up-to-date versions of both Twisted and treq, so this is very much unexpected. |
Strongly suspect @olmari's issue is unrelated to treq. We'll need logs to investigate further. If nothing is written to the log file, it is almost certain something will have been written to stderr. Assuming you're using systemd for process management, you should find something from |
Indeed, might not be
|
Sounds like #11832? |
Ah, I misspoke. #11834 introduced the change. |
I do wonder what ought to make deb-packaged setup go this way.. Especially as I don't think I'm only one using metrics :) I know I could go run that pip install command inside the deb provided venv, but I feel restless running anything that messes with things that would/should/could normally be deb-package to provide... |
I'm a bit mystified. Could you share the result of |
prometheus_client
version error
We've seen this issue on FreeBSD with
This is also mentioned in this older Bug from RedHat, which even mentions The Update Instructions suggest to update After explicitly updating |
@richvdh @ version 1.51.0:
|
@olmari and to confirm, this is matrix-synapse-py3_1.52.0+bullseye1_amd64.deb ? It looks like you've installed at least |
Like mentioned, 1.51.0, as 1.52.0 does not run on production server until resolution is reached.. Edit: no specific logs seem to be generated by pip, such console output is weeks away gone, as nothing suspicious happened in immediate result.. Edit2: Instructions followed from: https://github.com/devture/matrix-synapse-shared-secret-auth and command itself was I suppose I could update the synapse to 1.52.0 again and run the |
Currently I'm inclined to consider this a bug in If you'd like to pursue it here, could you install 1.52.0 and |
Mm, I do have to admit I didn't even though age old pip install of tool would have this effect after long time (and thus that specifically wanting new prometheus client if it even did). There's also theoretical possibility me running some other command that makes such effect, while I can't remember doing so... Foremostly I'd love to resolve this such that stuff would work in future too, be the rootcause in any software definitions or my own actions. I'll poke "devture" to see this report and maybe figure if that was even it, and so on... I'll test now that fix command for immediate test, and worry the additional test later, will report will that work ASAP. |
since |
At least that
Well here I know definately that only command ran was apt update and apt upgrade, no pip shenanigans in between 1.51.0 running happily and apt upgrade whereafter kaboom. |
well, that's simply not the way For example, on a clean bullseye container, I install matrix-synapse-py3 1.45.1:
Note the old version of prometheus_client. If I now upgrade to 1.52.0:
Given this is unreproducible and you've solved your problem, I'm going to close this. If you can give us reproduction steps, we can reopen. |
All I can think if at this stage is that will dpkg / apt / deb downgrade the prometheus_client if it already is newer than is included in .deb? Reasoning here that whatever reason I've managed to land newer prometheus_client, and then 1.52.0 apparently included the earlier mentioned prometheus_client version nailing that 1.51.0. didn't have, rel #11834 |
yes. dpkg doesn't know anything about python package versions. It just removes the files in the old debian package and installs the ones in the new one. |
1.52.0 Debian Bullseye matrix.org repo, HS hacklab.fi
Upgrading workerized synapse to 1.52.0 and synapse won't start, nothing on logs either so very early fail at least without debug logs enabled. I emergency downgraded our HS to 1.51.0 and it started right up again.
While I promised to provide strace too on #synapse:matrix.org, I did promise it later when I can afford to halt our ~100 user homeserver. However there is few others who experienced similar isue, with venv pip installation too, and culplrit is likely needing to have also updated
treq
package alongside newtwist
.So there is very likely rootcause there.
I did make issue now as early as possible for all to know, will fill strace later if not confirmed before.
The text was updated successfully, but these errors were encountered: