Comments (11)
@tublitzed - yes. I'll close this issue now.
@pjenvey - Ah. Okay, I'll put that in a PR.
from tokenserver.
@jrconlin Have you seen anything like this before when you were trying to get the tokenserver running with changes before?
from tokenserver.
@fzzzy Not with cffi specifically, but I've seen stuff like this. The problem is that there are some other crates that may be bringing in a conflicting version of cffi
. I solved mine by locking the version in my Cargo.toml, but you may need to use cargo tree
to identify which crate is making the explicit request and either back versioning that crate or bumping up the local version of cffi
.
(As you know, but others may not, cffi
is a really thorny crate for things like this, since it handles communicating with libraries outside of rust. Minor version bumps can bring huge changes. Other libraries that are like this include libssl
, protobuf
, and a handful of others. If you live a mostly clean life or are particularly lucky, you can get away with doing the version specification I noted. Other times, well, it's not a lot of fun, at all.)
from tokenserver.
This is in the python version...
from tokenserver.
Ah, sorry, missed that. Let me see if I can replicate locally and see what's up. Honestly, what I said above might even be more so, since a lot of python packages are growing less and less able to run under python2.7. So we have to nail down all sorts of sub-dependencies.
from tokenserver.
So, a few things I'm seeing at least locally.
-
I'm not hitting the
cffi
issue doing local builds, but pulling the docker image definitely hits it. I'm going to guess that it's probably either a build problem on the remote machines or an unfixed dependency issue. I added
gunicorn == 19.10.0
to myrequirements.txt
file because the local build docker image didn't find it. That got me a bit further, but then... -
Looks like alpine might have switched from
libmysqlclient-dev
tomariadb-dev
, and it's causing some problems with interpolation. Looking at what's going on in there.
Yay! this stuff is a mess and only getting worse.
from tokenserver.
Can we pin alpine to an old version to avoid this? (What's alpine? :)
from tokenserver.
Alpine is the root OS for the pypy:2.7-jesse container. (At least as I understand. When I built the docker locally, that's the core that was brought in, and what I got dumped into when I did a docker run -it --entrypoint sh tokenserver
.
It's very minimal, so I'm sure that some other docker is probably building out the db dependencies, but the effect is the same. There's definitely bit rot going on in here.
from tokenserver.
See #189
from tokenserver.
@jrgm - can you confirm this was resolved here, or should we keep this one open?
from tokenserver.
pypy ships w/ its own cffi, so any version differing from what it provides will trigger a conflict. A more future proof way to avoid this is to only require cffi on cpython, e.g. in requirements.txt:
cffi==1.13.2 ; platform_python_implementation == "CPython"
from tokenserver.
Related Issues (20)
- How to further fix to purge_old_records task (?) HOT 11
- Consider switching UID generation to random number rather than autoincrement value HOT 1
- Convert TokenServer to rust
- Upgrade PyFxA and add tests to confirm that fxa-generation fields are correctly handled. HOT 1
- Cannot build loadtest on 1.5.6 HOT 3
- CryptographyDeprecationWarning for openssl
- Create a new release with only the pypy upgrade HOT 6
- Figure out caching story for OAuth JWK request HOT 2
- Use sane metric library HOT 1
- Browser id removal - confirm what caused the CPU spike. HOT 2
- Figure out how to include JWT OAuth tokens in the loadtest
- Modify CircleCI config to avoid rate limiting. HOT 1
- Allow specifying the Makefile's python interpreter
- Add Sentry Configuration HOT 2
- Upgrade docker to debian buster
- Travis CI free usage ends Dec 3; mozilla repos should switch to other CI platforms
- Update requirement for Python 3.10
- Makefile:40: local/.install.stamp] Error 137
- how to run docker mozilla/tokenserver?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tokenserver.