Synapse won't start if no package metadata is found for "matrix-synapse" #12565
Comments
Is there a difference between how the main process and the workers are started? |
This:
|
there shouldnt be. I am just using the systemd target based setup from the contrib folder. didnt check if that changed though since I did set it up. (well it moved to https://github.com/matrix-org/synapse/tree/develop/docs/systemd-with-workers/system it seems) |
Just to make sure the start command for workers is |
I have no idea how Synapse is installed in the gentoo ecosystem, but it looks like To confirm this: what happens if you run the following in the same environment that synapse would run in? import importlib.metadata as m
d = m.distribution("matrix-synapse")
print(d)
print(d.metadata) I'm really surprised that you don't see this on the main process, because AFAICS they should both import |
@MTRNord, your ebuild is broken. Don't use the deprecated method of converting poetry to a setup.py, use this: https://gitlab.com/deepbluev7/neko/-/blob/master/net-im/matrix-synapse/matrix-synapse-1.58.0_rc2.ebuild#L7 |
Ah oh. Google suggested the line 6 of yours but not line 7. :o yeah that seems like the cause. |
Having said that, there is a I'm reluctant to disable the checks that the dependencies have appropriate versions, because they're meant to help admins who've installed from source but missed necessary dependency upgrades. If the proposed ebuild fix doesn't work then maybe we can have some kind of opt-out mechanism, but I'd like to see if it's possible to fix the packaging first. |
(Could do something like the change proposed in bdb00ee) |
The issue indeed was the packaging. Nico helped me to get it working. :) Issue is fixed with that. |
Great stuff, thanks for confirming @MTRNord! |
Description
The workers all fail wit this error while the main process works:
Steps to reproduce
Version information
If not matrix.org:
Version:v1.58.0rc2
Install method:
gentoo ebuild
Platform:
Gentoo "bare-metal"/on host
The text was updated successfully, but these errors were encountered: