-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
yarn kbn bootstrap failed, behind a corporate proxy! #20965
Comments
Hi @azulay7 can you try with yarn 1.6.0 and see if the problem goes away. |
Here are some reference links I found: yarnpkg/yarn#5876 and yarnpkg/yarn#6016 on this problem with yarn 1.7.0. |
If you did a yarn kbn clean and then tried yarn kbn bootstrap again, does that work ? |
"self signed certificate in certificate chain" seems a little bonkers... never seen that before, have you ever seen that before when trying to install node modules @azulay7? |
@liza-mae yarn kbn clean didn't help |
Hi @azulay7 ,good to see you here.
|
@ytzlax didn't work :( |
@azulay7 Are you running behind a proxy? That error usually means, someone (like a corporate proxy) is intercepting your SSL traffic and resigning it with their own certificate. |
@timroes You are right! Yes I'm behind a corporate proxy but even when I get it back to true, I get same failure :( i have tried on other machine on AZURE, without the proxy, and it worked. |
@azulay7 That's nothing that we could solve on the Kibana side, but since I've been in the same situation in the past, lemme shortly explain what happens here: tl;dr: Modern web development is NOT possible behind corporate proxies. The main problem here, is that there is no global "node" proxy settings or something like Quiet some packages (in that case it seems to be chromedriver) use that mechanism to execute a script, that downloads a platform dependent binary for that specific OS and architecture. The script executed is often just another Node JavaScript script, that will be executed and uses e.g. the node HTTP API to download the binary. And there we'll now hit the problem, that there is no such thing as a global Node proxy. This request won't even use the proxy, if that postinstall script isn't intentionally looking up some proxy settings (most reasonable from the npm config, but maybe also Is there any possible solution? There are potential solutions around the problem that a script completely ignores a proxy. For different platforms there are tools like Proxifier (OS X and Windows) or redsocks (Linux), which basically collect all the traffic outgoing from the system and forward it to a proxy configured in that tool. That way you could potentially forward all traffic from a system (no matter a postinstall script is using npm proxy setting or not) onto the proxy. But that won't help you at all for the proxy intercepting SSL. So the only thing you can do there is: open a PR against every package that fails, so that they will read out the The only other way you can truly workaround that: You need to make clear, that modern web development doesn't work behind a corporate proxy breaking SSL, since even if npm supports such settings to ignore SSL errors (and let's not even talk about that danger of setting that flag), you never know if you won't hit a postinstall script that doesn't manually read out those settings and use them (in lack of a central "node proxy and SSL setting"). In companies I've seen in the past, the only actual workaround was: don't break SSL at your proxy or get a separated developer network, that doesn't try to intercept requests. In case you are jailed behind that corporate proxy breaking SSL, I fear nothing you can do will truly solve the problem, just make it potentially working for now ... until any library you/we are using adds a new postinstall script ignoring that settings again. |
@timroes WOW!! thank you for the detailed answer! |
Hello, where is node_modules directory located? |
dear friend, You are absolutely right, but I do not understand why a proxy can not replace free internet |
Hi all :)
when I run kibana dev mode from source code.
"yarn kbn bootstrap".
I get an errors:
OS: windows 10
node: v8.11.3
yarn: 1.7.0
Thank you all in Advance!
The text was updated successfully, but these errors were encountered: