-
Notifications
You must be signed in to change notification settings - Fork 212
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
[fxa-email-service] fail to install #1569
Comments
@karansapolia - are you using Rust nightly? It's easy to miss in the list of dependencies and use the Release version of Rust. |
Did a 'rustup update' yesterday to see if it works with the latest nightly |
Any word on this? This is still an issue. I work using 'npm run start-remote' in the fxa-content-server folder because that's where I mostly contribute to. But 'npm i' on fxa always fails, even though I use rust nightly. |
After quite some time trying to get this to work I think the root of the problem is dependency breakdowns between different older versions of rust libraries and OpenSSL. Anyone with more recent versions of OpenSSL is at risk of running into issues. For example I am running
There was an issue a while back with This problem was fixed when However, I tried forking this project and upgrading reqwest but there are still many dependencies which cause |
@wavepack3t I too have openssl version 1.1.1 installed. So as a workaround, should I install an older version of openssl on my system? version 0.9.24? |
I guess you could try downgrading to
Downgrading def feels like the greater of two evils from a personal security standpoint... Let me know if it works though! :) Of course the ideal fix is to update the |
Somewhat related to #921 (comment), where I started work on a branch that updates our ancient version of Rust and all of the dependencies, then tried to work through all of the knock-on issues that fell out from there. That effort got shelved because it was taking me a while to work through all the issues from updating everything, but presumably it's good to pick up again if this is actually blocking people from working locally now. |
/cc @clouserw, I've assigned this to myself and moved it to "in progress" but let me know if that's wrong. |
Thanks @philbooth . Please fill in the complexity estimate so we can figure out timing in our schedule. |
In one of my other PR's I disabled the build of email-service due to this. I think it will require an update before it can be built again in a docker container as well, since the underlying issue is that it cannot build against the latest openssl until those Rust crate dependencies are updated. |
Just noting that the build problems are all resolved in the Ref: rwf2/Rocket#1040 |
@philbooth I notice that you have updated Here's a broken branch of mine where I have updated reqwest but have not updated rocket... maybe it will help as a reference in some way? Needed to do some style changes in |
Nope, I did update it, see the diff: + "reqwest 0.9.18 (registry+https://github.com/rust-lang/crates.io-index)", However, looks like 0.8 is still in the lockfile as a dependency of |
My mistake, I am new to Rust and got confused since the As far as updating socketlabs / mozsvc-common... that's where I gave up.
I forked both packages and forced them to use https://github.com/wavepack3t/socketlabs-rs Unfortunately I had to publish those under different crate names because I am not the crate owner. Don't really know how this sort of thing is handled in the Rust community. In any case, I do get a successful build when I use my two janky renamed crates and rename their corresponding import statements in the code!
Advice: do not use these crates :) Anyway just posting for your info. Thank you for devoting attention to this issue! I would very much like to get my own fxa server running off of |
We maintain socketlabs with @brizental , new version will be published in 1-2 days |
This is still an issue.
Complete output at: https://pastebin.com/5VZaJxqT |
This is interesting:
IIUC, it looks like the value of |
@karansapolia, looks like you might be running into sfackler/rust-openssl#1030. Did you build |
I uninstalled the openssl-devel package and installed version 1.0.1 from source along @wavepack3t 's suggestion:
I must've messed up somethings while installing. Maybe that's why I am seeing the installation error. |
Yeah, worth trying to do a clean installation from your package manager, hopefully that will get you back up and running. |
Hey @philbooth, so I did a clean install of the openssl-devel package and tried 'npm install' in the 1569-old-openssl branch locally. Still fails with the same errors. I think cargo is still receiving the openssl version as "(" :
Complete log: https://pastebin.com/sTaB688u |
@karansapolia, I wonder if your system is in the same state as the one from this thread: sfackler/rust-openssl#1037 (comment) i.e., the headers in (and I'm explicitly not telling you to delete anything in particular, because people telling other people to delete things from their computer is dangerous 😕) |
Fwiw, @bbangert mentioned in Slack that #1654 seemed to fix this for him, which is nice (but we can still keep this open while we get to the bottom of @karansapolia's issue). |
@philbooth seems like the issue is solved. I resolved the headers issue. The fxa-email-service build is completing now on master itself. The complete install is failing due to other reasons now, I believe. |
Great, thanks @karansapolia, I'll close this.
Looks like Docker isn't running? |
Everytime I try 'npm install' in fxa, it fails on:
I have openssl-devel and pkg-config installed. Any workarounds?
The text was updated successfully, but these errors were encountered: