Self-hosted documentation failes on Debian 10
I tried following the guide for self-hosted syncstorage-rs in the README here: https://github.com/mozilla-services/syncstorage-rs
First I installed these packages: libcurl4-openssl-dev cmake build-essential golang libssl-dev make pkg-config libmariadb-dev-compat protobuf-compiler-grpc rustc
Then I ran: git clone https://github.com/mozilla-services/syncstorage-rs.git
Then I installed MariaDB and created a database and user for sync.
Then I ran "make run".
This failed with this output:
` error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for pyfxa
Running setup.py clean for pyfxa
Running setup.py bdist_wheel for cffi ... error
Complete output from command /home/tdn/tmp/sync-server/syncstorage-rs/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/user/1000/pip-install-ak0tucnh/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/user/1000/pip-wheel-ixc662za --python-tag cp37:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for cffi
Running setup.py clean for cffi
Running setup.py bdist_wheel for PyBrowserID ... error
Complete output from command /home/tdn/tmp/sync-server/syncstorage-rs/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/user/1000/pip-install-ak0tucnh/PyBrowserID/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/user/1000/pip-wheel-_vz9g4g7 --python-tag cp37:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for PyBrowserID
Running setup.py clean for PyBrowserID
Failed to build pyfxa cffi PyBrowserID
Installing collected packages: pycparser, cffi, cryptography, urllib3, idna, charset-normalizer, certifi, requests, PyBrowserID, PyJWT, webob, hawkauthlib, six, pyfxa, tokenlib
Running setup.py install for cffi ... done
Running setup.py install for PyBrowserID ... done
Running setup.py install for pyfxa ... done
Successfully installed PyBrowserID-0.14.0 PyJWT-2.4.0 certifi-2022.6.15 cffi-1.15.1 charset-normalizer-2.1.0 cryptography-3.4.8 hawkauthlib-2.0.0 idna-3.3 pycparser-2.21 pyfxa-0.7.7 requests-2.28.1 six-1.16.0 tokenlib-2.0.0 urllib3-1.26.11 webob-1.8.7
PATH="./venv/bin:/home/tdn/gopath/bin:/home/tdn/go/bin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/scripts:/usr/bin/X11:/usr/games:/home/tdn/bin" RUST_LOG=debug RUST_BACKTRACE=full cargo run -- --config config/local.toml
error: failed to parse manifest at `/home/tdn/tmp/sync-server/syncstorage-rs/syncstorage-db-common/Cargo.toml`
Caused by:
failed to parse the `edition` key
Caused by:
supported edition values are `2015` or `2018`, but `2021` is unknown
make: *** [Makefile:47: run] Error 101
`
It seems that either the current version checked out by git clone does not work - or the documentation in README is missing some details.
┆Issue is synchronized with this Jira Task
Thanks for this.
A quick look seems to indicate that you may not be running a recent release of rust (1.56.0 or greater). We'll need to update the docs to indicate that.
You can check what version of rust you're using by running
rustc --version
As of today (04-Aug-2022), the official rust stable version is 1.62.1 (e092d0b6b 2022-07-16)
You should be able to run rustup update to update to the latest version.
(You may also want to run rustup show to make sure you're active toolchain is set to stable as default.
For instance, on my machine:
> rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/jrconlin/.rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (default)
nightly-2020-01-09-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu
1.55.0-x86_64-unknown-linux-gnu
active toolchain
----------------
stable-x86_64-unknown-linux-gnu (default)
rustc 1.62.1 (e092d0b6b 2022-07-16)
)