Distro version | echo $G_DISTRO_NAME $G_RASPBIAN bullseye
Kernel version | uname -aLinux DietPi 5.15.84-v7l+ #1613
SBC model | echo $G_HW_MODEL_NAME RPi 4 Model B (armv7l)
Power supply used | Original
SD card used | SanDisk ultra
Additional Information (if applicable)
Software title | (Matrix-synapse
Was the software title installed freshly or updated/migrated? fresh
Can this issue be replicated on a fresh installation of DietPi? don’t have another rpi to try, this one is prod
← If you sent a “dietpi-bugreport”, please paste the ID here →
Bug report ID | echo $G_HW_UUID
Steps to reproduce
After installing from dietpi-software, errors appearing and can’t install synapse
Actual behaviour
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
/tmp/pip-build-env-jghhjt58/overlay/lib/python3.9/site-packages/setuptools /command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'cryptogr aphy.hazmat.bindings._rust' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'cryptography.hazmat.bindings._rust' as an importabl e package,
but it is not listed in the `packages` configuration of setuptools.
'cryptography.hazmat.bindings._rust' has been automatically added to t he distribution only
because it may contain data files, but this behavior is likely to chan ge
in future versions of setuptools (and therefore is considered deprecat ed).
Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setupt ools
documentation page.
!!
check.warn(importable)
copying src/cryptography/py.typed -> build/lib.linux-armv7l-cpython-39/cry ptography
copying src/cryptography/hazmat/bindings/_openssl.pyi -> build/lib.linux-a rmv7l-cpython-39/cryptography/hazmat/bindings
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_r ust
copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.l inux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux -armv7l-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux -armv7l-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/pkcs7.pyi -> build/lib.linu x-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux -armv7l-cpython-39/cryptography/hazmat/bindings/_rust
running build_ext
running build_rust
=============================DEBUG ASSISTANCE========================= ====
If you are seeing a compilation error please try the following steps t o
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for m ost
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation/ for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq/
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation/#rust
Python: 3.9.2
platform: Linux-5.15.84-v7l+-armv7l-with-glibc2.31
pip: n/a
setuptools: 67.1.0
setuptools_rust: 1.5.2
rustc: n/a
=============================DEBUG ASSISTANCE========================= ====
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during i nstallation. Alternatively, rustup (available at https://rustup.rs) is the recom mended way to download and update the Rust compiler toolchain.
This package requires Rust >=1.48.0.
[end of output]
note: This error originates from a subprocess, and is likely not a problem wit h pip.
ERROR: Failed building wheel for cryptography
Failed to build matrix-synapse bcrypt cryptography
ERROR: Could not build wheels for matrix-synapse, bcrypt, cryptography, which is required to install pyproject.toml-based projects
---------------------------------------------------------------------
[FAILED] DietPi-Software | Unable to continue, DietPi-Software will now terminate
Tried to update pip:
pip install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (23.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
also installed rust without errors:
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path
Hi Jappe, thanks for your reply.
I’m trying to install the matrix-synapse only through dietpi-software
I’ve tried the mentioned steps and this is what I am receiving, I really don’t know, what I am doing wrong.
root@DietPi:~# curl -sSfL 'https://sh.rustup.rs' -o rustup-init.sh
root@DietPi:~# chmod +x rustup-init.sh
root@DietPi:~# ./rustup-init.sh -y --profile minimal
info: downloading installer
info: profile set to 'minimal'
info: default host triple is armv7-unknown-linux-gnueabihf
warning: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: default toolchain set to 'stable-armv7-unknown-linux-gnueabihf'
stable-armv7-unknown-linux-gnueabihf unchanged - rustc 1.67.0 (fc594f156 2023- 01-24)
Rust is installed now. Great!
To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).
To configure your current shell, run:
source "$HOME/.cargo/env"
root@DietPi:~# rm rustup-init.sh
root@DietPi:~# source "$HOME/.cargo/env"
root@DietPi:~# pip3 install cryptography
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Collecting cryptography
Using cached cryptography-39.0.0.tar.gz (603 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting cffi>=1.12
Using cached https://www.piwheels.org/simple/cffi/cffi-1.15.1-cp39-cp39-linux_ armv7l.whl (364 kB)
Collecting pycparser
Using cached https://www.piwheels.org/simple/pycparser/pycparser-2.21-py2.py3- none-any.whl (119 kB)
Building wheels for collected packages: cryptography
Building wheel for cryptography (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cryptography (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [248 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-cpython-39
creating build/lib.linux-armv7l-cpython-39/cryptography
copying src/cryptography/utils.py -> build/lib.linux-armv7l-cpython-39/cry ptography
copying src/cryptography/fernet.py -> build/lib.linux-armv7l-cpython-39/cr yptography
copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-cpython-3 9/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-armv7l-cpython-39/ cryptography
copying src/cryptography/__about__.py -> build/lib.linux-armv7l-cpython-39 /cryptography
creating build/lib.linux-armv7l-cpython-39/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-cpython-39/ cryptography/x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-cpython-39 /cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-cpython-39 /cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-cp ython-39/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-cpyt hon-39/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.lin ux-armv7l-cpython-39/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-cpython-39 /cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-armv7l-cpytho n-39/cryptography/x509
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-cpython- 39/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv7l-cpyt hon-39/cryptography/hazmat
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux- armv7l-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-a rmv7l-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-a rmv7l-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv 7l-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-ar mv7l-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.l inux-armv7l-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv 7l-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib. linux-armv7l-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/li b.linux-armv7l-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.lin ux-armv7l-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux- armv7l-cpython-39/cryptography/hazmat/primitives
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-ar mv7l-cpython-39/cryptography/hazmat/bindings
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-ar mv7l-cpython-39/cryptography/hazmat/backends
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib. linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib. linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/ lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/l ib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build /lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> buil d/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/ lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/__init__.py -> bu ild/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.lin ux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linu x-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linu x-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux -armv7l-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux- armv7l-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.l inux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.li nux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.l inux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.li nux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/ lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.li nux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/li b.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib .linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/l ib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/li b.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/li b.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib. linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/ lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/li b.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/ lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.l inux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib. linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.l inux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build /lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/op enssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.l inux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/ lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib. linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/op enssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linu x-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.li nux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.lin ux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux -armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib. linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linu x-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.li nux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.lin ux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.l inux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux- armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux -armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux- armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/l ib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linu x-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.l inux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.l inux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linu x-armv7l-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib. linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'vectors'
warning: no previously-included files matching '*' found under directory ' vectors'
warning: no previously-included files matching '*' found under directory ' .github'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'dev-requirements.txt '
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'mypy.ini'
warning: no previously-included files matching '*' found under directory ' .circleci'
adding license file 'LICENSE'
adding license file 'LICENSE.APACHE'
adding license file 'LICENSE.BSD'
adding license file 'LICENSE.PSF'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
/tmp/pip-build-env-w4581y3c/overlay/lib/python3.9/site-packages/setuptools /command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'cryptogr aphy.hazmat.bindings._rust' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'cryptography.hazmat.bindings._rust' as an importabl e package,
but it is not listed in the `packages` configuration of setuptools.
'cryptography.hazmat.bindings._rust' has been automatically added to t he distribution only
because it may contain data files, but this behavior is likely to chan ge
in future versions of setuptools (and therefore is considered deprecat ed).
Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setupt ools
documentation page.
!!
check.warn(importable)
copying src/cryptography/py.typed -> build/lib.linux-armv7l-cpython-39/cry ptography
copying src/cryptography/hazmat/bindings/_openssl.pyi -> build/lib.linux-a rmv7l-cpython-39/cryptography/hazmat/bindings
creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_r ust
copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.l inux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux -armv7l-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux -armv7l-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/pkcs7.pyi -> build/lib.linu x-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux -armv7l-cpython-39/cryptography/hazmat/bindings/_rust
running build_ext
running build_rust
cargo rustc --lib --message-format=json-render-diagnostics --manifest-path src/rust/Cargo.toml --release -v --features pyo3/abi3-py36 pyo3/extension-modul e -- --crate-type cdylib
Updating crates.io index
Downloading crates ...
Downloaded asn1_derive v0.13.0
Downloaded ouroboros_macro v0.15.5
Downloaded proc-macro2 v1.0.49
Downloaded pyo3-build-config v0.15.2
Downloaded proc-macro-hack v0.5.20+deprecated
Downloaded indoc-impl v0.3.6
Downloaded aliasable v0.1.3
Downloaded Inflector v0.11.4
Downloaded pyo3-macros-backend v0.15.2
Downloaded once_cell v1.14.0
Downloaded unindent v0.1.11
Downloaded proc-macro-error v1.0.4
Downloaded parking_lot_core v0.8.6
Downloaded unicode-ident v1.0.6
Downloaded paste v0.1.18
Downloaded autocfg v1.1.0
Downloaded smallvec v1.10.0
Downloaded num-integer v0.1.45
Downloaded lock_api v0.4.9
Downloaded iana-time-zone v0.1.53
Downloaded num-traits v0.2.15
Downloaded base64 v0.13.1
Downloaded chrono v0.4.23
Downloaded version_check v0.9.4
Downloaded quote v1.0.23
Downloaded syn v1.0.107
Downloaded scopeguard v1.1.0
Downloaded pyo3 v0.15.2
Downloaded libc v0.2.139
Downloaded proc-macro-error-attr v1.0.4
Downloaded parking_lot v0.11.2
Downloaded instant v0.1.12
Downloaded cfg-if v1.0.0
Downloaded pyo3-macros v0.15.2
Downloaded pem v1.1.0
Downloaded paste-impl v0.1.18
Downloaded asn1 v0.13.0
Downloaded ouroboros v0.15.5
Downloaded indoc v0.3.6
Compiling proc-macro2 v1.0.49
Compiling unicode-ident v1.0.6
Compiling quote v1.0.23
Compiling autocfg v1.1.0
Matrix is a Python application that needs to be compiled first. To save time and resource, we use piwheels.org as data source on 32bit systems. This should provide pre-compiled wheels for matrix-synapse as well. However, last builds are failing piwheels - matrix-synapse. It’s the same issue you have, the missing Rust compiler.
I will need to have a look what is needed to get this working.
Unfortunately it is not working… I’ve spent already too much hours with it and I think I will go with docker solution. The rust compiler is a complete mess.
ok one last point. You can stay on this DietPi dev version for now as we will release a new public version soon. But let’s set back branch to master. This way you will get all necessary DietPi code update.
One more question.
I’m not quite sure, how to get the matrix-synapse server behind reverse-proxy. (http://mydomain:8008)
Fot another web-servers, I am using apache2, where it is working through .configs, but this seems a little strange to me and cannot find the way, how.
I can’t find any tips here on the forum.
Thanks for your support.
Ok, sorry for that, I was searching for this and only 3 forums appeared
root@DietPi:/etc/ssl# a2ensite [mydomain].conf
Enabling site [mydomain].
To activate the new configuration, you need to run:
systemctl reload apache2
root@DietPi:/etc/ssl# systemctl reload apache2
root@DietPi:/etc/ssl#
Broadcast message from systemd-journald@DietPi (Tue 2023-02-07 12:43:51 CET):
apache2[25205]: [ssl:emerg] [pid 25205:tid 3069575616] AH02572: Failed to configure at least one certificate and key for [mydomain]:443
Broadcast message from systemd-journald@DietPi (Tue 2023-02-07 12:43:51 CET):
apache2[25205]: [ssl:emerg] [pid 25205:tid 3069575616] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecti ng: DH PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
Broadcast message from systemd-journald@DietPi (Tue 2023-02-07 12:43:51 CET):
apache2[25205]: [ssl:emerg] [pid 25205:tid 3069575616] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecti ng: EC PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
Broadcast message from systemd-journald@DietPi (Tue 2023-02-07 12:43:51 CET):
apache2[25205]: [ssl:emerg] [pid 25205:tid 3069575616] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no ce rtificate assigned
I’m using this apache2 configuration:
<VirtualHost *:443>
SSLEngine on
ServerName [mydomain]
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
AllowEncodedSlashes NoDecode
ProxyPreserveHost on
ProxyPass /_matrix http://127.0.0.1:8008/_matrix nocanon
ProxyPassReverse /_matrix http://127.0.0.1:8008/_matrix
ProxyPass /_synapse/client http://127.0.0.1:8008/_synapse/client nocanon
ProxyPassReverse /_synapse/client http://127.0.0.1:8008/_synapse/client
</VirtualHost>
<VirtualHost *:8448>
SSLEngine on
ServerName [mydomain]
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
AllowEncodedSlashes NoDecode
ProxyPass /_matrix http://127.0.0.1:8008/_matrix/static nocanon
ProxyPassReverse /_matrix http://127.0.0.1:8008/_matrix
</VirtualHost>
You need to include SSL certificate information. Did you already created SSL certificates using dietpi-letsencrypt? If yes, you should find the configuration within /etc/apache2/sites-available/000-default-le-ssl.conf
DietPi-LetsEncrypt
─────────────────────────────────────────────────────
Mode: Running Certbot
[ OK ] DietPi-LetsEncrypt | Apache webserver detected
[ OK ] DietPi-LetsEncrypt | Desired setting in /etc/apache2/sites-available/000-default.conf was already set: ServerName chat.[mydomain].com
[ OK ] DietPi-LetsEncrypt | systemctl restart apache2
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Requesting a certificate for chat.[mydomain].com
Performing the following challenges:
http-01 challenge for chat.[mydomain].com
Cleaning up challenges
Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.
[FAILED] DietPi-LetsEncrypt | Certbot failed, please check its above terminal output. Aborting...
When I am firstly trying to enable the config this is what I get:
I am clueless what is wrong, I am using .conf file mentioned above - but apache is failing.
Feb 07 15:43:30 DietPi apache2[7930]: [ssl:emerg] [pid 7930:tid 3069751744] AH02572: Failed to configure at least one certificate and key for chat.[mydomain].com: 443
Feb 07 15:43:30 DietPi apache2[7930]: [ssl:emerg] [pid 7930:tid 3069751744] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: DH PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
Feb 07 15:43:30 DietPi apache2[7930]: [ssl:emerg] [pid 7930:tid 3069751744] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: EC PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
Feb 07 15:43:30 DietPi apache2[7930]: [ssl:emerg] [pid 7930:tid 3069751744] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certifica te assigned
Feb 07 15:43:30 DietPi apachectl[7927]: Action 'start' failed.
Feb 07 15:43:30 DietPi apachectl[7927]: The Apache error log may have more information.
Feb 07 15:43:30 DietPi systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
I am able to reach the website through http://chat.[mydomain].com:8008