New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | Synapse: Fix install due to Rust integration #5778
Conversation
Dammit, previously there was only a single wheel for all architectures and system versions. With the implementation of Rust there are now a bunch of individual wheels required, and of course only x86 ones are available for now... So yes for ARM we need Rust, currently. We can report this to piwheels and contribute to requests for aarch64 wheels on PyPI as well, and see if/how fast this is done. |
Let's see: matrix-org/synapse#13938, piwheels/packages#327 However, the aarch64 wheels at least won't be added before our next release, so good to keep this PR open. Just wrap Rust (un)install steps into ARM condition. |
Ok I will have a look and add ARM condition + verify memory requirements. |
ok on ARMv7 it requires gcc now and wheel |
This issue I reported (matrix-org/synapse#14001) to upstream is related as I'm running Synapse on DietPi aarch64 |
Your issue seems unrelated as you have a completely different behaviour. You seems to be missing
Did you tried DietPi install tools or the whole process manually by yourself? |
I originally installed it with DietPi-software, but that was almost a year ago. I've been keeping synapse updated fine using pip until this recent 1.68.0 failed, the one that "requires rust" |
I tried following along with this DietPi forum post solution, but it still fails for me building wheels when after running |
An error message would be helpful |
@Joulinar same as in issue matrix-org/synapse#14001, but will paste it below too
|
As already stated above, your issue is different. At least from error message
|
sigh I already have that installed...
I've been running the DietPi Synapse package & setup for a year now. It is only this latest release that won't upgrade, the version that requires rust. I just tried updating pip to the latest and get the following, so same issue:
Then I tried "updating" setuptools by running |
How much memory your SBC has? At least 2 GB ram? If yes, as a workaround you could try to switch your system to this branch and try to install matrix-synapse.
|
@Joulinar I'm not sure if I've ever used a SBC with less than 4GB RAM, but I don't want to test on my production matrix server, so instead I have followed your suggested instructions (with When I first ran this, it failed and complained about my xterm-kitty terminal, which I filed as separate Issue #5800 When I tried running the install again in a different terminal emulator, alacritty, it was successful. This new server is federating according to https://federationtester.matrix.org/ My question now is, how to do this on a production system without borking it? |
you could wait on our next release. Atm we are waiting on matrix-org/synapse and piwheels to created missing wheels upstream. If they don't succeed, we will implement an own solution. |
9fde6c1
to
cb9e815
Compare
@MichaIng |
You're right, easier to do this as new PR than reworking this one. |
@Joulinar Question: On a production server, the command I was successfully able to run that command on my DietPi test Matrix Synapse and it upgraded it from 1.68.0 to 1.69.0, so wanted to ask my above question as the test server has no users and no data on it, but my production server is being used by people right now. |
Theoretically it should not touch any database data. But as we are on IT, I can't put my hand into the fire 😉 |
I mark this PR as closed. aarch64 builds will be available soon: matrix-org/synapse#14212 |
@jahway603 |
STATUS - wip
DietPi-Software | Synapse - add rust as it seems to be required by install process now
@MichaIng
something we need to have a look into. We have a report on our forum about failing install due to missing
rust
install.https://dietpi.com/forum/t/matrix-synapse-fails-to-update/14460
It's not 100% clear to me if this is now required or not because there is a statement that it is not required using PyPI.
https://matrix-org.github.io/synapse/v1.68/upgrade.html#rust-requirement-when-building-from-source
But there is no version for aarch64 on PyPI https://pypi.org/project/matrix-synapse/1.68.0/#files
On PiWheels build is failing as well https://www.piwheels.org/project/matrix-synapse/
Question is, should we add rust or hope it will be fixed upstream?? I just did a basic implementation without checking ram usage and other checks like architecture.